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

Try to add to iOS project using proj refs, get "duplicate symbol _af_dummy_script_class" #5

Open
claybridges opened this issue Sep 9, 2010 · 5 comments

Comments

@claybridges
Copy link

I tried to duplicate the project settings in BasicDemo, but whatever I do, I still get this linker error:

ld: duplicate symbol _af_dummy_script_class in /Users/clay/ftgles/Xcode/ftgles/build/Debug-iphonesimulator/libFTGLES.a(autofit.o) and /Users/clay/ftgles/Xcode/ftgles/build/Debug-iphonesimulator/libFTGLES.a(afdummy.o)

Does this ring a bell with anyone?

@cdave1
Copy link
Owner

cdave1 commented Nov 22, 2010

I can't be sure without more info, but it sounds like there might be two instances of the static library in your Xcode project.

I recently added some install instructions here:

https://github.com/cdave1/ftgles/blob/master/INSTALL.md

Maybe you could try these install instructions with a blank project to see if you get the same error.

@mdeletrain
Copy link

We do have the exact same problem, which can be solved by removing linker's -all_load option.
Our problem is that we indeed need this option to be present to build our application, so we're stuck right now. Any solution ?

@claybridges
Copy link
Author

I had a similar problem unrelated to FTGLES, after converting to Xcode 4. I solved it by "loading" only specific libraries for which it was intended, instead of a sledgehammer -all_load. Other linker flags (for all configs) might look like, e.g.

-ObjC -force_load "$(BUILT_PRODUCTS_DIR)/libMyLib.a"

@mdeletrain
Copy link

Yes thanks, it did the trick !
Actually I was already trying to do it this way but I had difficulties to
give library's path. The $(BUILT_PRODUCTS_DIR) macro was the bit I was
missing.
Thanks again !

Mathieu

2011/4/29 diffengr <
[email protected]>

I had a similar problem unrelated to FTGLES, after converting to Xcode 4. I
solved it by "loading" only specific libraries for which it was intended,
instead of a sledgehammer -all_load. Other linker flags (for all configs)
might look like, e.g.

-ObjC -force_load "$(BUILT_PRODUCTS_DIR)/libMyLib.a"

Reply to this email directly or view it on GitHub:
#5 (comment)

@claybridges
Copy link
Author

Yes, that took much wailing and gnashing of teeth to find.

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