Linux: Compile problems with rev 3963

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Linux: Compile problems with rev 3963

#1 Post 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

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

Re: Linux: Compile problems with rev 3963

#2 Post 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.

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: Compile problems with rev 3963

#3 Post 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.
Attachments
freeoriond.log
(144.78 KiB) Downloaded 164 times

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

Re: Linux: Compile problems with rev 3963

#4 Post by Geoff the Medio »

RgnadKzin wrote:Compiles, but when run its a runaway.
I don't know what that means. Please restate explicitly?

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: Compile problems with rev 3963

#5 Post 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.

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

Re: Linux: Compile problems with rev 3963

#6 Post 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).

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: Compile problems with rev 3963

#7 Post by RgnadKzin »

yeah, that was it. runs ok now.

Post Reply