Skip to content

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

@axello

Description

@axello

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions