Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgd-dev cannot be compiled on newer macs #37

Open
mynona opened this issue Jan 14, 2023 · 2 comments
Open

libgd-dev cannot be compiled on newer macs #37

mynona opened this issue Jan 14, 2023 · 2 comments

Comments

@mynona
Copy link

mynona commented Jan 14, 2023

Packagefile

.package(url: "https://github.com/twostraws/SwiftGD.git", from: "2.5.0")
.product(name: "SwiftGD", package: "SwiftGD")

Dockerfile

RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
&& apt-get -q update
&& apt-get -q dist-upgrade -y
&& apt-get -q install -y
ca-certificates
tzdata
libgd-dev
&& rm -r /var/lib/apt/lists/*

I can see in the logs that libgd-dev is properly installed but building doesn't work:

#0 8.035 Building for production...
#0 9.030 remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[1/918] Compiling SwiftSgml Attribute.swift
#0 14.19 remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[3/920] Compiling SwiftGD Color.swift
#0 14.86 :1:10: note: in file included from :1:
#0 14.86 #include "gd.h"
#0 14.86 ^
#0 14.86 /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:10: error: 'gd.h' file not found with include; use "quotes" instead
#0 14.86 #include <gd.h>
#0 14.86 ^
#0 14.86 :1:10: note: in file included from :1:
#0 14.86 #include "gd.h"
#0 14.86 ^
#0 14.86 /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:10: note: in file included from /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:
#0 14.86 #include <gd.h>
#0 14.86 ^
etc.

@mynona mynona changed the title libgd-dev not working libgd-dev cannot be compiled on newer macs Jan 14, 2023
@zhtut
Copy link

zhtut commented Apr 17, 2023

.package(url: "https://github.com/twostraws/SwiftGD.git", branch: "main"),
use main branch worked for me

@shial4
Copy link

shial4 commented Aug 31, 2023

It isn't working for me with Swift package manager & Vapor,
Neither Docker, nor MacOs

...SourcePackages/checkouts/SwiftGD/Sources/gd/swiftgd_gd.h:1:10 'gd.h' file not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants