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

Cant link in gd : Use of undeclared type #19

Open
adirburke opened this issue Jun 10, 2019 · 7 comments
Open

Cant link in gd : Use of undeclared type #19

adirburke opened this issue Jun 10, 2019 · 7 comments

Comments

@adirburke
Copy link

Every time I try to build, I get a bunch of Use of undeclared type. I have installed gd through brew
Cant seem to find the issue

Mojave 10.14.5

Screen Shot 2019-06-10 at 11 11 31 am

@adirburke
Copy link
Author

I fixed the issue by changing hte /gd/module.modulemap header line back to /usr/local/include from umbrella header

@aggsyb
Copy link

aggsyb commented Jul 1, 2019

@idi888 I am getting the exact same issue.

/gd/module.modulemap header line back to /usr/local/include from umbrella header

Can you let me know where / what the "umbrella" header is please, not having much joy!

Thanks.

@adirburke
Copy link
Author

@aggsyb SwiftGD/Sources/gd/module.modulemap

@jpimbert
Copy link

I fixed the issue in three steps :

  1. Add /usr/local/lib in Library Search Paths in the Build Settings of SwiftGD and App as indicated by @twostraws in Server Side Swift book

  2. Change .build/checkouts/SwiftGD/Sources/gd/module.modulemap

module gd {
        umbrella header "/usr/local/include/gd.h"
        link "gd"
}
  1. Add /usr/local/include RECURSIVE in Header Search Paths in the Build Settings of SwiftGD

@siemensikkema
Copy link

@jpimbert Do you know if there is a way that doesn't require performing these steps each time the Xcode project is regenerated?

@jpimbert
Copy link

@siemensikkema, yes I think there is a way but I presently don't know where to find it 😬
Perhaps by adding a Xcode configuration file, documented here : https://help.apple.com/xcode/mac/current/#/itcaec37c2a6 ?
Perhaps by fixing it in SwiftGD configuration ?

@andrew804
Copy link

Looks like this is fixed #20 @twostraws any chance you could merge?

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

5 participants