Page 1 of 1

Linux: Compile problems with rev 3963

Posted: Wed Feb 02, 2011 8:25 am
by RgnadKzin
It's been like this since odgf was removed:

Code: Select all

[bradbva@localhost FreeOrion]$ make                                              
[ 28%] Built target freeoriond
[ 58%] Built target freeorionca
[ 59%] Building CXX object client/human/CMakeFiles/freeorion.dir/__/__/UI/TechTreeWnd.cpp.o                                                                       
In file included from /usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:17:  
/usr/local/src/freeorion/FreeOrion/UI/TechTreeLayout.h:97: error: ‘>>’ should be ‘> >’ within a nested template argument list
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp: In constructor ‘TechTreeWnd::LayoutPanel::LayoutPanel(GG::X, GG::Y)’:
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:825: warning: ‘TechTreeWnd::LayoutPanel::m_zoom_out_button’ will be initialized after
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:812: warning:   ‘TechTreeLayout TechTreeWnd::LayoutPanel::m_graph’
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:1082: warning:   when initialized here
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp: In member function ‘void TechTreeWnd::LayoutPanel::SetScale(double)’:
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:1344: warning: unused variable ‘old_scale’
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp: At global scope:
/usr/local/src/freeorion/FreeOrion/UI/TechTreeWnd.cpp:34: warning: ‘<unnamed>::temp_bool’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/asio/error.hpp:251: warning: ‘boost::asio::error::system_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/asio/error.hpp:253: warning: ‘boost::asio::error::netdb_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/asio/error.hpp:255: warning: ‘boost::asio::error::addrinfo_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/asio/error.hpp:257: warning: ‘boost::asio::error::misc_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/asio/error.hpp:259: warning: ‘boost::asio::error::ssl_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/system/error_code.hpp:214: warning: ‘boost::system::posix_category’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/system/error_code.hpp:215: warning: ‘boost::system::errno_ecat’ defined but not used
/usr/local/src/boost/boost_1_44_0/boost/system/error_code.hpp:216: warning: ‘boost::system::native_ecat’ defined but not used
make[2]: *** [client/human/CMakeFiles/freeorion.dir/__/__/UI/TechTreeWnd.cpp.o] Error 1
make[1]: *** [client/human/CMakeFiles/freeorion.dir/all] Error 2
make: *** [all] Error 2
TechTreeWnd won't compile

Re: Linux: Compile problems with rev 3963

Posted: Wed Feb 02, 2011 8:40 am
by Geoff the Medio
RgnadKzin wrote:/UI/TechTreeWnd.cpp:17:
/usr/local/src/freeorion/FreeOrion/UI/TechTreeLayout.h:97: error: ‘>>’ should be ‘> >’ within a nested template argument list
Put a space between the >> on that line.

Re: Linux: Compile problems with rev 3963

Posted: Wed Feb 02, 2011 3:14 pm
by RgnadKzin
Compiles, but when run its a runaway.

Code: Select all

[bradbva@localhost .freeorion]$ ls                                               
AI_1.log  AI_3.log  AI_5.log  AI_7.log    freeoriond.log
AI_2.log  AI_4.log  AI_6.log  config.xml  save/
There is no ogre.log or freeorion.log
freeoriond.log is attached.

Re: Linux: Compile problems with rev 3963

Posted: Wed Feb 02, 2011 8:00 pm
by Geoff the Medio
RgnadKzin wrote:Compiles, but when run its a runaway.
I don't know what that means. Please restate explicitly?

Re: Linux: Compile problems with rev 3963

Posted: Thu Feb 03, 2011 7:50 am
by RgnadKzin
Geoff the Medio wrote:
RgnadKzin wrote:Compiles, but when run its a runaway.
I don't know what that means. Please restate explicitly?
It's an old mainframe term that means the program compiles and runs, but when you execute it, it gets stuck in a loop somewhere in the code and never gives control to the user. runaway.

Re: Linux: Compile problems with rev 3963

Posted: Thu Feb 03, 2011 8:03 am
by Geoff the Medio
Try deleting all the log files and config.xml and running "freeorion -h" and "freeorion -g" and seeing if the former produces text output, and if the latter generates a config.xml.

If not, I have no idea what the problem is...

I don't think recent changes would have anything to do with it, but I can't easily check them since the sourceforge SVN viewer is (still...) broken. You could try deleting the contents of TechTreeWnd::LayoutPanel::Layout (so it's an empty function).

Re: Linux: Compile problems with rev 3963

Posted: Thu Feb 03, 2011 8:19 am
by RgnadKzin
yeah, that was it. runs ok now.