OS X Build Errors, 4187

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

OS X Build Errors, 4187

#1 Post by Bigjoe5 »

Code: Select all

Undefined symbols:
  "_condition3_p", referenced from:
      _condition3_p$non_lazy_ptr in libCommon.a(ConditionParser.o)
     (maybe you meant: _condition3_p$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Warning: Antarans in dimensional portal are closer than they appear.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: OS X Build Errors, 4187

#2 Post by Geoff the Medio »

Did you update your project files to include the recently-added ConditionParser3.cpp?

A .cpp file being added is usually the cause of these errors when you report them. I can't update the XCode project files, so you'll need to do it yourself, or get night to.

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: OS X Build Errors, 4187

#3 Post by Bigjoe5 »

I get the same results after adding the file to the project.

Edit: It's probably something obvious that I'm doing wrong, so I'll just try again later.
Warning: Antarans in dimensional portal are closer than they appear.

night
Space Kraken
Posts: 102
Joined: Sun Jun 12, 2011 1:21 pm

Re: OS X Build Errors, 4187

#4 Post by night »

I'm having this problem, too.
I tried to start with a fresh SDK and SVN compile from scratch, but no luck.
Maybe it's an anonymous namespace problem again.

EDIT: Sorry, I did not read Geoff's post properly :D I'll try to fix that soon.

Code: Select all

Undefined symbols for architecture i386:
  "_condition3_p", referenced from:
      (anonymous namespace)::Init()in libCommon.a(ConditionParser.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

night
Space Kraken
Posts: 102
Joined: Sun Jun 12, 2011 1:21 pm

Re: OS X Build Errors, 4187

#5 Post by night »

Please try the Xcode project I attached. If it works for you, I'll make a new version of the SDK.
Attachments
FreeOrion.xcodeproj.zip
Xcode Project with ConditionParser3.cpp
(148.58 KiB) Downloaded 117 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: OS X Build Errors, 4187

#6 Post by Geoff the Medio »

A new version of the SDK shouldn't be necessary to just update the project files to add a new file... I should be able to just update the project file in SVN. (I assume only project.pbxproj needs to be updated?)

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: OS X Build Errors, 4187

#7 Post by Bigjoe5 »

night wrote:Please try the Xcode project I attached. If it works for you, I'll make a new version of the SDK.
I have the same error as before. This time it only happens once, instead of 3 times, though. I also tried redownloading the sdk, updating, and replacing the XCode project, but I got the same result.
Warning: Antarans in dimensional portal are closer than they appear.

night
Space Kraken
Posts: 102
Joined: Sun Jun 12, 2011 1:21 pm

Re: OS X Build Errors, 4187

#8 Post by night »

Okay now everything should be working just fine.
Attachments
FreeOrion.xcodeproj.zip
Fixed project
(153.41 KiB) Downloaded 115 times

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: OS X Build Errors, 4187

#9 Post by Bigjoe5 »

This one works - thanks.
Warning: Antarans in dimensional portal are closer than they appear.

Post Reply