Compile error - recipe for target failed.

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Compile error - recipe for target failed.

#1 Post by AndrewW »

Any ideas?

Code: Select all

[100%] Building CXX object client/human/CMakeFiles/freeorion.dir/__/__/UI/TextBrowseWnd.cpp.o
/home/andrew/Games/freeorion/UI/TechTreeWnd.cpp: In member function ‘virtual void TechTreeWnd::LayoutPanel::TechPanel::PreRender()’:
/home/andrew/Games/freeorion/UI/TechTreeWnd.cpp:750:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
         if (const Empire* empire = GetEmpire(HumanClientApp::GetApp()->EmpireID()))
            ^
In file included from /home/andrew/Games/freeorion/UI/../client/human/../../util/OptionsDB.h:6:0,
                 from /home/andrew/Games/freeorion/UI/../client/human/HumanClientApp.h:7,
                 from /home/andrew/Games/freeorion/UI/TechTreeWnd.cpp:10:
/home/andrew/Games/freeorion/UI/../client/human/../../util/OptionValidators.h: In instantiation of ‘boost::any RangedStepValidator<T>::Validate(const string&) const [with T = double; std::string = std::basic_string<char>]’:
/home/andrew/Games/freeorion/UI/TechTreeWnd.cpp:2211:1:   required from here
/home/andrew/Games/freeorion/UI/../client/human/../../util/OptionValidators.h:121:40: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
         if (val < m_min || val > m_max ||
                                        ^
Linking CXX executable ../../freeorion

...

/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to `PyComplex_ImagAsDouble'
collect2: error: ld returned 1 exit status
client/human/CMakeFiles/freeorion.dir/build.make:1783: recipe for target 'freeorion' failed
make[2]: *** [freeorion] Error 1
CMakeFiles/Makefile2:468: recipe for target 'client/human/CMakeFiles/freeorion.dir/all' failed
make[1]: *** [client/human/CMakeFiles/freeorion.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Compile error - recipe for target failed.

#2 Post by adrian_broher »

Should be fixed with 755f13e.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: Compile error - recipe for target failed.

#3 Post by AndrewW »

adrian_broher wrote:Should be fixed with 755f13e.
Compiles fine now, thanks.

Post Reply