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

FreeImage Linker errors with Xcode 6 Beta 4 #3098

Closed
admsyn opened this Issue Jul 22, 2014 · 7 comments

Comments

Projects
None yet
3 participants
@admsyn
Member

admsyn commented Jul 22, 2014

Building an OF project with the current Xcode 6 beta gets you a bunch of FreeImage link errors. Previous Xcode 6 betas (or at least the first one) worked just fine.

Interestingly, there's not any warnings ("Ignoring FreeImage..."), just linker errors. Error message here:

Undefined symbols for architecture i386:
  "_FT_New_Face", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FT_Set_Char_Size", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FT_Get_Char_Index", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FT_Load_Glyph", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FreeImage_Initialise", referenced from:
      ofInitFreeImage(bool) in openFrameworksDebug.a(ofImage.o)
  "_FT_Render_Glyph", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FreeImage_DeInitialise", referenced from:
      ofInitFreeImage(bool) in openFrameworksDebug.a(ofImage.o)
  "_FT_Init_FreeType", referenced from:
      ofTrueTypeFont::initLibraries() in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FT_Done_Face", referenced from:
      ofTrueTypeFont::loadFont(std::string, int, bool, bool, bool, float, int) in openFrameworksDebug.a(ofTrueTypeFont.o)
  "_FT_Done_FreeType", referenced from:
      ofTrueTypeFont::finishLibraries() in openFrameworksDebug.a(ofTrueTypeFont.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@admsyn admsyn added xcode labels Jul 22, 2014

@admsyn

This comment has been minimized.

Member

admsyn commented Jul 22, 2014

This seems to be because freeimage isn't being linked via OF_CORE_HEADERS. At least it's as simple as a tweak to CoreOF.xcconfig, and not something that has to be fixed per project.

Knowing this, I have no idea how this ever worked to be honest. 😕

PR incoming

@bakercp

This comment has been minimized.

Member

bakercp commented Jul 22, 2014

Hey Adam, to prevent more broken PRs perhaps you could PR against my existing xconfig PR and we can pull it all in together?

@admsyn

This comment has been minimized.

Member

admsyn commented Jul 22, 2014

Sure thing!

@bakercp

This comment has been minimized.

Member

bakercp commented Jul 22, 2014

It's #2919.

admsyn added a commit to admsyn/openFrameworks that referenced this issue Jul 22, 2014

@admsyn admsyn closed this in 9591eba Jul 23, 2014

@admsyn

This comment has been minimized.

Member

admsyn commented Jul 24, 2014

Worth noting is that this means OF 0.8.4 likely won't work with Xcode 6 (which looks like it's going to be the current Xcode fairly soon).

I'm not sure it quite warrants something like a hotfix but may be worth addressing if we're going to be fairly silent working on 0.9.0 for the coming few months.

The fix is pretty straightforward really, just a swap of CoreOF.xcconfig with the one that's currently on the github master.

ping @openframeworks/macos

@bilderbuchi

This comment has been minimized.

Member

bilderbuchi commented Jul 24, 2014

I don't understand. Your fix has already been merged to master, if I'm not mistaken, so when we release 0.8.4, it will be included?
I think the question is more: will we have a 0.8.4 (as we have already added quite a number of features already)?

@admsyn

This comment has been minimized.

Member

admsyn commented Jul 24, 2014

Ah yes apologies @bilderbuchi , that's what I meant (forgot that current = 0.8.3, not .4).

MartinHN pushed a commit to MartinHN/openFrameworks that referenced this issue Dec 16, 2014

Merge pull request openframeworks#2919 from openFrameworks-ofFont/bug…
…fix-osx-lib-project

Cleanup for CoreOF.xcconfig and project files.

Closes openframeworks#3098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment