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

gdImagePtr not found in 2.5.0, but found in 2.4.0 #24

Open
axello opened this issue Feb 21, 2020 · 9 comments
Open

gdImagePtr not found in 2.5.0, but found in 2.4.0 #24

axello opened this issue Feb 21, 2020 · 9 comments

Comments

@axello
Copy link

axello commented Feb 21, 2020

I have a strange regression bug. Version 2.5.0 gives tons of `use of undeclared type 'gdImagePtr' errors, but v2.4.0 does not.

steps taken:

  • SwiftGD 2.5.0 could not find gdImagePtr
  • brew reinstall gd
  • remove .build
  • clean project etc.
  • Double-check double setting of /usr/local/lib
  • downgraded to SwiftGD 2.4.0
  • In the end removing the xcodeproj was the only thing which worked

However, when I upgraded to SwiftGD 2.5.0 again, removing the xcodeproj and deep cleaning the build folder, and adding the library search paths did not work anymore.

  • Saved both build logs
  • downgraded to SwiftGD 2.4.0

The only discrepancy I see, is that the Format.swift file is in different positions:
2.4.0: checkouts/SwiftGD/Sources/Format.swift
2.5.0: checkouts/SwiftGD/Sources/SwiftGD/Format.swift

Also, it does link with the gd library, as you can see from the compile statement.

Build project5-Package_SwiftGD2.5.0.txt.zip
Build project5-Package_SwiftGD2.4.0.txt.zip

@twostraws
Copy link
Owner

Could you see if this problem exists with a fresh project? I just tried it (macOS Catalina) and had no problems on 2.5.0.

@axello
Copy link
Author

axello commented Feb 22, 2020 via email

@zcjhnsn
Copy link

zcjhnsn commented Mar 1, 2020

I get this bug whilst on a new project following Server-side Swift: Vapor (on Catalina)

@sinakhanjani
Copy link

I have same problem MacOSX 10.15.3
Screen Shot 1398-12-21 at 9 56 38 PM

@aryamansharda
Copy link

Having the same problem as well

@jklompje
Copy link

Having the same problem following the steps outlined for the project in Serverside Swift Vapor. Any solutions yet?

@matthew86matthew
Copy link

Same problem(((

@jcbriones
Copy link

jcbriones commented Nov 7, 2023

Same with me. Forward to 2023. 😟 Is there any other library support for both mac and linux? 😟 I'm guessing it has something to do with the architecture?

@mcritz
Copy link
Contributor

mcritz commented Nov 7, 2023

Troubleshooting ideas

  1. macOS: Make sure you have brew installed. Link
  2. Try manually installing
  3. Make sure your gd version is up to date.
    • macOS brew update gd
    • Ubuntu / deb - sudo apt-get upgrade libgd-dev
  4. If none of the above are working, try upgrading your package manager itself.
    • macOS brew upgrade
    • Ubuntu / deb - sudo apt-get update

Note

Apologies for posting off-topic. But I'm trying to address the frustrations I see posted here.

Additional details

The Package.swift file in this project has a dependency on the gd library which must be installed on your system for this to work at all. SwiftGD is a wrapper for the gd framework. For macOS users, this will mean installing with brew.

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

9 participants