r3966 OS X errors

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

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

r3966 OS X errors

#1 Post by Bigjoe5 » Sat Feb 05, 2011 4:14 pm

As you can see, there are tons of these: "error: a function-definition is not allowed here before '{' token" and several other errors.

Code: Select all

Build Common of project FreeOrion with configuration Debug

...

/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp: In member function 'void TechTreeWnd::LayoutPanel::SetScale(double)':
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1344: warning: unused variable 'old_scale'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp: In member function 'void TechTreeWnd::LayoutPanel::Layout(bool)':
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1699: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1730: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1737: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1742: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1751: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1756: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1763: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1768: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1775: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1783: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1788: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1796: error: declaration of 'struct TechTreeWnd::TechListBox' in 'void TechTreeWnd::LayoutPanel::Layout(bool)' which does not enclose 'class TechTreeWnd'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1850: error: 'struct TechTreeWnd::TechListBox::TechRow' has not been declared
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1850: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1856: error: 'struct TechTreeWnd::TechListBox::TechRow' has not been declared
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1857: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1877: error: 'struct TechTreeWnd::TechListBox::TechRow' has not been declared
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1877: error: expected primary-expression before 'w'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1877: error: expected primary-expression before 'const'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1877: error: 'TechRow' was not declared in this scope
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1877: error: expected `;' before ':' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: incomplete type 'TechTreeWnd::TechListBox' used in nested name specifier
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: expected primary-expression before 'x'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: expected primary-expression before 'y'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: expected primary-expression before 'w'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: expected primary-expression before 'h'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1925: error: expected `;' before ':' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1964: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1969: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1974: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1979: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1984: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2031: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2039: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2049: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2058: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2066: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2074: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2083: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2091: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2100: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2120: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2128: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2140: error: type 'TechTreeWnd' is not derived from type 'TechTreeWnd::LayoutPanel'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2142: error: expected primary-expression before '(' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2142: error: expected primary-expression before 'w'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2142: error: expected primary-expression before 'h'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2142: error: expected `;' before ':' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2201: error: no matching function for call to 'TechTreeWnd::TechTreeWnd()'
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.h:24: note: candidates are: virtual TechTreeWnd::~TechTreeWnd()
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2202: error: expected `;' before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2208: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2213: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2218: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2223: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2228: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2234: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2241: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2247: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2264: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2277: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2293: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2305: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2316: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2327: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2336: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2345: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2356: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2365: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2374: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2386: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2396: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2406: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2411: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2425: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2430: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2436: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2441: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2448: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:2590: error: expected `}' at end of input


Build FreeOrionServer of project FreeOrion with configuration Debug

Ld build/Debug/freeoriond normal i386
cd /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib -L"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib" -F/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug -F/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/Frameworks -filelist /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/FreeOrion.build/Debug/FreeOrionServer.build/Objects-normal/i386/freeoriond.LinkFileList -mmacosx-version-min=10.4 -framework CoreFoundation -lboost_filesystem-xgcc40-mt -lboost_python-xgcc40-mt -lboost_serialization-xgcc40-mt -lboost_signals-xgcc40-mt -lboost_system-xgcc40-mt -lboost_thread-xgcc40-mt -lCommon -lGG -llog4cpp -lboost_regex-xgcc40-mt -o /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/freeoriond

ld: warning: directory '"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib"' following -L not found
Undefined symbols:
  "ClientApp::EmpireID() const", referenced from:
      (anonymous namespace)::SubstituteAndAppend::operator()(char const*, char const*) const                                                      in libCommon.a(VarText.o)
  "ClientApp::GetApp()", referenced from:
      (anonymous namespace)::SubstituteAndAppend::operator()(char const*, char const*) const                                                      in libCommon.a(VarText.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status


Build FreeOrionAI of project FreeOrion with configuration Debug

Ld build/Debug/freeorionca normal i386
cd /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib -L"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib" -L"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib" -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib -L/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib -F/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug -F/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/Frameworks -F/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/Frameworks -filelist /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/FreeOrion.build/Debug/FreeOrionAI.build/Objects-normal/i386/freeorionca.LinkFileList -mmacosx-version-min=10.4 -framework Python -framework CoreFoundation -lboost_filesystem-xgcc40-mt -lboost_python-xgcc40-mt -lboost_serialization-xgcc40-mt -lboost_signals-xgcc40-mt -lboost_system-xgcc40-mt -lboost_thread-xgcc40-mt -lClientCommon -lCommon -lGG -llog4cpp -lboost_regex-xgcc40-mt -o /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/freeorionca

ld: warning: directory '"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib"' following -L not found
ld: warning: directory '"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/lib"' following -L not found


Build FreeOrion of project FreeOrion with configuration Debug

PBXCp build/Debug/FreeOrion.app/Contents/MacOS/FreeOrion build/Debug/FreeOrion
cd /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/FreeOrion /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/FreeOrion.app/Contents/MacOS

pbxcp: FreeOrion: No such file or directory

PBXCp build/Debug/FreeOrion.app/Contents/Executables/freeoriond build/Debug/freeoriond
cd /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/freeoriond /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/build/Debug/FreeOrion.app/Contents/Executables

pbxcp: freeoriond: No such file or directory
Warning: Antarans in dimensional portal are closer than they appear.

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

Re: r3966 OS X errors

#2 Post by Geoff the Medio » Sat Feb 05, 2011 7:16 pm

Bigjoe5 wrote:

Code: Select all

/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp: In member function 'void TechTreeWnd::LayoutPanel::Layout(bool)':
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1699: error: a function-definition is not allowed here before '{' token
/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeWnd.cpp:1730: error: a function-definition is not allowed here before '{' token
I think you've got a messed up or out of date version of TechTreeWnd.cpp. Line 1699 is blank, and line 1730 is just a comment.

Code: Select all

ld: warning: directory '"/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/dep/local/lib"' following -L not found
Undefined symbols:
  "ClientApp::EmpireID() const", referenced from:
      (anonymous namespace)::SubstituteAndAppend::operator()(char const*, char const*) const                                                      in libCommon.a(VarText.o)
  "ClientApp::GetApp()", referenced from:
      (anonymous namespace)::SubstituteAndAppend::operator()(char const*, char const*) const                                                      in libCommon.a(VarText.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
The calls to EmpireID and GetApp are wrapped in preprocessor ifs, so shouldn't be compiled when building the FreeOrionServer project:

Code: Select all

#ifdef FREEORION_BUILD_SERVER
                std::string name_text = obj->Name();
#else
                int empire_id = ClientApp::GetApp()->EmpireID();
                std::string name_text = obj->PublicName(empire_id);
#endif
This suggets that FREEORION_BUILD_SERVER hasn't been defined for the OSX project files' FreeOrionServer project.

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

Re: r3966 OS X errors

#3 Post by Bigjoe5 » Tue Feb 08, 2011 1:52 am

After downloading and updating a fresh sdk, I just get several of the following errors:

Code: Select all

/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../GG/src/adobe/adam.cpp:543:0 /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../GG/src/adobe/adam.cpp:543: error: ambiguous overload for 'operator<<' in 'std::operator<< [with _Traits = std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char> >&)(+((const adobe::sheet_t::implementation_t::print_visitor*)this)->adobe::sheet_t::implementation_t::print_visitor::os_m)), ((const char*)"        ")) << (+ relation)->adobe::sheet_t::relation_t::name_m'
on lines 494, 500, 506, 512, 518, 527 and 543, in adam.cpp.

edit: wait, isn't that the one you said I could just remove from the build? I'll try that.

edit2: Did not help this time...
Warning: Antarans in dimensional portal are closer than they appear.

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

Re: r3966 OS X errors

#4 Post by Geoff the Medio » Tue Feb 08, 2011 2:34 am

Bigjoe5 wrote:edit: wait, isn't that the one you said I could just remove from the build? I'll try that.

edit2: Did not help this time...
You removed a file and still got build errors from it? That doesn't make sense...

Have you tried these XCode project files?

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

Re: r3966 OS X errors

#5 Post by Bigjoe5 » Tue Feb 08, 2011 2:15 pm

Sorry I didn't have time to post in more detail. The errors I got after deleting adam.cpp were apparently related to the TechTreeWnd, and weren't there before I deleted the file.

I just tried the one you linked me to. There are just 3 errors now:

Code: Select all

/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552:0 /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552: error: 'row_height' was not declared in this scope


/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552:0 /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552: error: 'column_width' was not declared in this scope


/Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552:0 /Users/isaac/Downloads/freeorion-sdk/FreeOrion/Xcode/../UI/TechTreeLayout.cpp:552: error: 'column_width' was not declared in this scope

Warning: Antarans in dimensional portal are closer than they appear.

rkupke
Space Floater
Posts: 19
Joined: Tue Feb 01, 2011 4:09 pm

Re: r3966 OS X errors

#6 Post by rkupke » Wed Feb 09, 2011 6:42 am

Try to comment the line out.

It is just an assert macro. Testing undeclared variables doesn't make sense anyway.

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

Re: r3966 OS X errors

#7 Post by Bigjoe5 » Wed Feb 09, 2011 10:24 pm

That was successful. Thank you.
Warning: Antarans in dimensional portal are closer than they appear.

Post Reply