Page 1 of 1

Compile error - recipe for target failed.

Posted: Mon Sep 26, 2016 5:45 pm
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

Re: Compile error - recipe for target failed.

Posted: Mon Sep 26, 2016 6:37 pm
by adrian_broher
Should be fixed with 755f13e.

Re: Compile error - recipe for target failed.

Posted: Mon Sep 26, 2016 9:55 pm
by AndrewW
adrian_broher wrote:Should be fixed with 755f13e.
Compiles fine now, thanks.