FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: Trouble compiling on Linux  (Read 4895 times)

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Trouble compiling on Linux
« on: March 15, 2013, 06:08:25 pm »

I got the latest source code from github.com and I tried to compile it using "scons ext" but it tries to move a file that doesn't exist. Here's the part that gives problems:

Making all in src
make[1]: Entering directory `/home/caleb/FIFE/fifengine/ext/guichan-0.8.2/src'
Making all in widgets
make[2]: Entering directory `/home/caleb/FIFE/fifengine/ext/guichan-0.8.2/src/widgets'
/bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -g -O2 -Wall -Wno-unused -DGUICHAN_BUILD -MT button.lo -MD -MP -MF .deps/button.Tpo -c -o button.lo button.cpp
mv -f .deps/button.Tpo .deps/button.Plo
mv: cannot stat `.deps/button.Tpo': No such file or directory
make[2]: *** [button.lo] Error 1
make[2]: Leaving directory `/home/caleb/FIFE/fifengine/ext/guichan-0.8.2/src/widgets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/caleb/FIFE/fifengine/ext/guichan-0.8.2/src'
make: *** [all-recursive] Error 1
os.chdir('/home/caleb/FIFE/fifengine')
scons: *** Error 2
Building failed: guichan
scons: *** [ext/ext_target] Explicit exit, status 1
scons: building terminated because of errors.


Anybody know whats going on? Any help would be appreciated.
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #1 on: March 15, 2013, 07:06:08 pm »

When I run "scons fife-python" I get this :

scons: Reading SConscript files ...
Checking for vorbisfile (using pkg-config)...(cached) yes
Checking for python2.7 (using pkg-config)...(cached) no
Checking for python2.7 (using python2.7-config)... (cached) yes
Checking for openal (using pkg-config)...(cached) yes
Checking for SDL (using pkg-config)...(cached) yes
Checking for SDL_ttf (using pkg-config)...(cached) no
Checking for SDL_ttf (using sdl_ttf-config)... (cached) no
Checking for C++ library SDL_ttf... (cached) yes
Checking for SDL_image (using pkg-config)...(cached) no
Checking for SDL_image (using sdl_image-config)... (cached) no
Checking for C++ library SDL_image... (cached) yes
Checking for guichan (using pkg-config)...(cached) no
Checking for guichan (using guichan-config)... (cached) no
Checking for C++ library guichan... (cached) yes
Checking for guichan_sdl (using pkg-config)...(cached) no
Checking for guichan_sdl (using guichan_sdl-config)... (cached) no
Checking for C++ library guichan_sdl... (cached) yes
Checking for boost_system (using pkg-config)...(cached) no
Checking for boost_system (using boost_system-config)... (cached) no
Checking for C++ library boost_system... (cached) yes
Checking for boost_filesystem (using pkg-config)...(cached) no
Checking for boost_filesystem (using boost_filesystem-config)... (cached) no
Checking for C++ library boost_filesystem... (cached) yes
Checking for boost_regex (using pkg-config)...(cached) no
Checking for boost_regex (using boost_regex-config)... (cached) no
Checking for C++ library boost_regex... (cached) yes
Checking for png (using pkg-config)...(cached) no
Checking for png (using png-config)... (cached) no
Checking for C++ library png... (cached) yes
Checking for Xcursor (using pkg-config)...(cached) yes
Checking for guichan_opengl (using pkg-config)...(cached) no
Checking for guichan_opengl (using guichan_opengl-config)... (cached) no
Checking for C++ library guichan_opengl... (cached) yes
Checking for tinyxml (using pkg-config)...(cached) yes
Building RELEASE binaries...
scons: done reading SConscript files.
scons: Building targets ...
swig -o build/engine/release/swigwrappers/python/fife_wrap.cc -outdir "engine/python/fife" -Ibuild/engine/release/core -Iengine/core -python -c++ -w511 engine/swigwrappers/python/fife.i
engine/core/model/metamodel/modelcoords.i:31: Warning 404: Template 'PointType3D< int32_t >' was already wrapped,
engine/core/util/structures/utilstructures.i:89: Warning 404: previous wrap of 'FIFE::PointType3D< int32_t >'.
engine/core/view/camera.i:32: Warning 404: Template 'PointType3D< int32_t >' was already wrapped,
engine/core/util/structures/utilstructures.i:89: Warning 404: previous wrap of 'FIFE::PointType3D< int32_t >'.
engine/core/loaders/native/map/imaploader.h:70: Warning 473: Returning a pointer or reference in a director method is not recommended.
engine/core/model/metamodel/ipather.i:41: Warning 473: Returning a pointer or reference in a director method is not recommended.
engine/core/model/metamodel/ipather.i:41: Warning 473: Returning a pointer or reference in a director method is not recommended.
engine/core/model/metamodel/ipather.i:41: Warning 473: Returning a pointer or reference in a director method is not recommended.
g++ -o build/engine/release/swigwrappers/python/py_fife_wrap.os -c -DPNG_SKIP_SETJMP_CHECK -O2 -Wall -Wno-unused -fno-strict-aliasing -O2 -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DTIXML_USE_STL -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SYSTEM_TINY_XML -DHAVE_OPENGL -DHAVE_ZIP -DLOG_ENABLED -I/opt/include -I/usr/include/vorbis -I/usr/include/SDL -I/usr/include/python2.7 -Iext/install/include -I/usr/local/include/python2.7 -Iengine/core build/engine/release/swigwrappers/python/fife_wrap.cc
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /usr/include/python2.7/Python.h:58:0,
                 from build/engine/release/swigwrappers/python/fife_wrap.cc:150:
/usr/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
build/engine/release/swigwrappers/python/fife_wrap.cc: In function ‘void handleDirectorException()’:
build/engine/release/swigwrappers/python/fife_wrap.cc:6402:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
build/engine/release/swigwrappers/python/fife_wrap.cc:6403:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
build/engine/release/swigwrappers/python/fife_wrap.cc:6404:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
scons: *** [build/engine/release/swigwrappers/python/py_fife_wrap.os] Error 1
scons: building terminated because of errors.
Logged

flutschfinger

  • Newbie
  • Posts: 14
    • View Profile
Re: Trouble compiling on Linux
« Reply #2 on: March 15, 2013, 07:21:35 pm »

That are two problems:

1. Guichan doesn't build, and theres no solution yet, so please use the guichan package of your system. The guichan dependecies will be replaced by fifechan in the near future anyway.

2. It seems like there is a problem with the python package of your distro, see https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/873007 for details.
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #3 on: March 23, 2013, 12:51:45 pm »

2. It seems like there is a problem with the python package of your distro, see https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/873007 for details.

I went there, but where do I run the
Code: [Select]
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild python2.7-minimal command at?
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #4 on: March 29, 2013, 03:09:49 pm »

I tried to compile fife on a 32-bit system since I couldn't fix python on my 64-bit system, and I got this error...

Code: [Select]
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlComment::Clone() const':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:1325: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlText::Clone() const':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:1372: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlNode::SetValue(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlDeclaration::Clone() const':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:1460: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlUnknown::Clone() const':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:1492: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:757: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_construct<char*>(char*, char*, std::allocator<char> const&, std::forward_iterator_tag)':
/usr/include/c++/4.6/bits/basic_string.tcc:140: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
/usr/include/c++/4.6/bits/basic_string.tcc:140: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlElement::SetAttribute(char const*, char const*)':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:734: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `TiXmlElement::Clone() const':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:862: undefined reference to `operator new(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `operator>>(std::basic_istream<char, std::char_traits<char> >&, TiXmlNode&)':
/home/caleb/FIFE/fifengine/engine/core/ext/tinyxml/tinyxml.cpp:1601: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `operator<< <char, std::char_traits<char>, std::allocator<char> >':
/usr/include/c++/4.6/bits/basic_string.h:2698: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
/usr/include/c++/4.6/bits/basic_string.h:1121: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)'
build/engine/release/core/ext/tinyxml/py_tinyxml.os: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char const*)':
/usr/include/c++/4.6/bits/basic_string.h:1000: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long)'
build/engine/release/core/gui/guichan/console/py_console.os:(.data.rel.ro._ZTVN4FIFE7ConsoleE[vtable for FIFE::Console]+0x188): undefined reference to `non-virtual thunk to gcn::BasicContainer::death(gcn::Event const&)'
build/engine/release/core/gui/guichan/console/py_console.os:(.data.rel.ro._ZTVN5boost6detail26lexical_stream_limited_srcIcSt15basic_streambufIcSt11char_traitsIcEES4_EE[vtable for boost::detail::lexical_stream_limited_src<char, std::basic_streambuf<char, std::char_traits<char> >, std::char_traits<char> >]+0x28): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::setbuf(char*, long)'
build/engine/release/core/gui/guichan/console/py_console.os:(.data.rel.ro._ZTVN5boost6detail26lexical_stream_limited_srcIcSt15basic_streambufIcSt11char_traitsIcEES4_EE[vtable for boost::detail::lexical_stream_limited_src<char, std::basic_streambuf<char, std::char_traits<char> >, std::char_traits<char> >]+0x30): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)'
build/engine/release/core/gui/guichan/console/py_console.os:(.data.rel.ro._ZTVN5boost6detail26lexical_stream_limited_srcIcSt15basic_streambufIcSt11char_traitsIcEES4_EE[vtable for boost::detail::lexical_stream_limited_src<char, std::basic_streambuf<char, std::char_traits<char> >, std::char_traits<char> >]+0x50): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::xsgetn(char*, long)'
build/engine/release/core/gui/guichan/console/py_console.os:(.data.rel.ro._ZTVN5boost6detail26lexical_stream_limited_srcIcSt15basic_streambufIcSt11char_traitsIcEES4_EE[vtable for boost::detail::lexical_stream_limited_src<char, std::basic_streambuf<char, std::char_traits<char> >, std::char_traits<char> >]+0x70): undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long)'
build/engine/release/core/gui/guichan/console/py_commandline.os:(.data.rel.ro._ZTVN4FIFE11CommandLineE[vtable for FIFE::CommandLine]+0x168): undefined reference to `non-virtual thunk to gcn::TextField::mousePressed(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/console/py_commandline.os:(.data.rel.ro._ZTVN4FIFE11CommandLineE[vtable for FIFE::CommandLine]+0x198): undefined reference to `non-virtual thunk to gcn::TextField::mouseDragged(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_utf8textbox.os:(.data.rel.ro._ZTVN3gcn11UTF8TextBoxE[vtable for gcn::UTF8TextBox]+0x180): undefined reference to `non-virtual thunk to gcn::TextBox::mousePressed(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_utf8textbox.os:(.data.rel.ro._ZTVN3gcn11UTF8TextBoxE[vtable for gcn::UTF8TextBox]+0x1b0): undefined reference to `non-virtual thunk to gcn::TextBox::mouseDragged(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x178): undefined reference to `non-virtual thunk to gcn::Button::mouseEntered(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x180): undefined reference to `non-virtual thunk to gcn::Button::mouseExited(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x188): undefined reference to `non-virtual thunk to gcn::Button::mousePressed(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x190): undefined reference to `non-virtual thunk to gcn::Button::mouseReleased(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x1b8): undefined reference to `non-virtual thunk to gcn::Button::mouseDragged(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x1e0): undefined reference to `non-virtual thunk to gcn::Button::keyPressed(gcn::KeyEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x1e8): undefined reference to `non-virtual thunk to gcn::Button::keyReleased(gcn::KeyEvent&)'
build/engine/release/core/gui/guichan/widgets/py_twobutton.os:(.data.rel.ro._ZTVN3gcn9TwoButtonE[vtable for gcn::TwoButton]+0x218): undefined reference to `non-virtual thunk to gcn::Button::focusLost(gcn::Event const&)'
build/engine/release/core/gui/guichan/widgets/py_utf8textfield.os:(.data.rel.ro._ZTVN3gcn13UTF8TextFieldE[vtable for gcn::UTF8TextField]+0x168): undefined reference to `non-virtual thunk to gcn::TextField::mousePressed(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_utf8textfield.os:(.data.rel.ro._ZTVN3gcn13UTF8TextFieldE[vtable for gcn::UTF8TextField]+0x198): undefined reference to `non-virtual thunk to gcn::TextField::mouseDragged(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x180): undefined reference to `non-virtual thunk to gcn::Button::mouseEntered(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x188): undefined reference to `non-virtual thunk to gcn::Button::mouseExited(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x190): undefined reference to `non-virtual thunk to gcn::Button::mousePressed(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x198): undefined reference to `non-virtual thunk to gcn::Button::mouseReleased(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x1c0): undefined reference to `non-virtual thunk to gcn::Button::mouseDragged(gcn::MouseEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x1e8): undefined reference to `non-virtual thunk to gcn::Button::keyPressed(gcn::KeyEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x1f0): undefined reference to `non-virtual thunk to gcn::Button::keyReleased(gcn::KeyEvent&)'
build/engine/release/core/gui/guichan/widgets/py_togglebutton.os:(.data.rel.ro._ZTVN3gcn12ToggleButtonE[vtable for gcn::ToggleButton]+0x220): undefined reference to `non-virtual thunk to gcn::Button::focusLost(gcn::Event const&)'
collect2: ld returned 1 exit status
scons: *** [build/engine/release/_fife.so] Error 1
scons: building terminated because of errors.
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: Trouble compiling on Linux
« Reply #5 on: March 29, 2013, 05:39:57 pm »

There seems to be a bug with scons..   See this ticket:  https://github.com/fifengine/fifengine/issues/619

Easy fix it so install a package version of tinyxml and delete the tinyxml files that ship with fife.
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #6 on: March 31, 2013, 01:47:09 pm »

Ok, I deleted all of the tinyxml files and it pops up an error because it can't find those files.
Logged

vtchill

  • Developer
  • Full Member
  • *
  • Posts: 206
    • View Profile
Re: Trouble compiling on Linux
« Reply #7 on: March 31, 2013, 05:13:13 pm »

CalebW,

If you delete the tinyxml files you have to install tinyxml through your package manager. FIFE still needs tinyxml but I believe prock was suggesting to install tinyxml through the package manager and remove the ones that come with FIFE.

However looking at the errors you are seeing I do not really think system vs local version of tinyxml is your problem.

Can you please post the entire build output you see after you try to build fife. What I am specifically interested in is the compile/link commands that are used. My suspicion based on the errors is that the c++ run time libraries are not being properly linked.
« Last Edit: March 31, 2013, 05:45:48 pm by vtchill »
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #8 on: April 02, 2013, 06:00:28 pm »

If you delete the tinyxml files you have to install tinyxml through your package manager. FIFE still needs tinyxml but I believe prock was suggesting to install tinyxml through the package manager and remove the ones that come with FIFE.

I have libtinyxml-dev and libtinyxml2.6.2 installed but when I deleted the files in the source tree it pops up an error because its looking for those files and can't find them.

Can you please post the entire build output you see after you try to build fife. What I am specifically interested in is the compile/link commands that are used.

So do you want me to post the entire output of "scons" or just the commands it executes? I can't post the entire output of "scons" for to reasons, 1. this forum won't allow posts that long and 2. I can't record the entire output because it's too long for my terminal (you can only scroll up so far) and when I try to print the output to a file using
Code: [Select]
scons | nano log or
Code: [Select]
scons | tee log it only records the commands that were used to the output of those commands.
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #9 on: April 02, 2013, 09:02:04 pm »

Here's the output of "scons | tee log"

Code: [Select]
scons: Reading SConscript files ...
Checking for vorbisfile (using pkg-config)...(cached) yes
Checking for openal (using pkg-config)...(cached) yes
Checking for SDL (using pkg-config)...(cached) yes
Checking for SDL_ttf (using pkg-config)...(cached) no
Checking for SDL_ttf (using sdl_ttf-config)... (cached) no
Checking for C++ library SDL_ttf... (cached) yes
Checking for SDL_image (using pkg-config)...(cached) no
Checking for SDL_image (using sdl_image-config)... (cached) no
Checking for C++ library SDL_image... (cached) yes
Checking for guichan (using pkg-config)...(cached) no
Checking for guichan (using guichan-config)... (cached) no
Checking for C++ library guichan... (cached) yes
Checking for guichan_sdl (using pkg-config)...(cached) no
Checking for guichan_sdl (using guichan_sdl-config)... (cached) no
Checking for C++ library guichan_sdl... (cached) yes
Checking for boost_system (using pkg-config)...(cached) no
Checking for boost_system (using boost_system-config)... (cached) no
Checking for C++ library boost_system... (cached) yes
Checking for boost_filesystem (using pkg-config)...(cached) no
Checking for boost_filesystem (using boost_filesystem-config)... (cached) no
Checking for C++ library boost_filesystem... (cached) yes
Checking for boost_regex (using pkg-config)...(cached) no
Checking for boost_regex (using boost_regex-config)... (cached) no
Checking for C++ library boost_regex... (cached) yes
Checking for png (using pkg-config)...(cached) no
Checking for png (using png-config)... (cached) no
Checking for C++ library png... (cached) yes
Checking for Xcursor (using pkg-config)...(cached) yes
Checking for guichan_opengl (using pkg-config)...(cached) no
Checking for guichan_opengl (using guichan_opengl-config)... (cached) no
Checking for C++ library guichan_opengl... (cached) yes
Checking for tinyxml (using pkg-config)...(cached) yes
Checking for glee (using pkg-config)...(cached) yes
Building RELEASE binaries...
scons: done reading SConscript files.
scons: Building targets ...
swig -o build/engine/release/swigwrappers/python/fife_wrap.cc -outdir "engine/python/fife" -Ibuild/engine/release/core -Iengine/core -python -c++ -w511 engine/swigwrappers/python/fife.i
g++ -o build/engine/release/_fife.so -shared build/engine/release/core/savers/native/map/py_mapsaver.os build/engine/release/core/view/py_layercache.os build/engine/release/core/view/py_visual.os build/engine/release/core/view/py_rendererbase.os build/engine/release/core/view/py_camera.os build/engine/release/core/view/py_renderitem.os build/engine/release/core/view/renderers/py_offrenderer.os build/engine/release/core/view/renderers/py_cellselectionrenderer.os build/engine/release/core/view/renderers/py_genericrenderer.os build/engine/release/core/view/renderers/py_targetrenderer.os build/engine/release/core/view/renderers/py_floatingtextrenderer.os build/engine/release/core/view/renderers/py_instancerenderer.os build/engine/release/core/view/renderers/py_coordinaterenderer.os build/engine/release/core/view/renderers/py_quadtreerenderer.os build/engine/release/core/view/renderers/py_gridrenderer.os build/engine/release/core/view/renderers/py_cellrenderer.os build/engine/release/core/view/renderers/py_lightrenderer.os build/engine/release/core/view/renderers/py_blockinginforenderer.os build/engine/release/core/loaders/native/audio/py_sounddecoder_ogg.os build/engine/release/core/loaders/native/audio/py_ogg_loader.os build/engine/release/core/loaders/native/video/py_imageloader.os build/engine/release/core/loaders/native/map/py_percentdonelistener.os build/engine/release/core/loaders/native/map/py_atlasloader.os build/engine/release/core/loaders/native/map/py_maploader.os build/engine/release/core/loaders/native/map/py_animationloader.os build/engine/release/core/loaders/native/map/py_objectloader.os build/engine/release/core/util/utf8/py_utf8stringeditor.os build/engine/release/core/util/log/py_logger.os build/engine/release/core/util/math/py_angles.os build/engine/release/core/util/base/py_stringutils.os build/engine/release/core/util/base/py_fifeclass.os build/engine/release/core/util/base/py_exception.os build/engine/release/core/util/resource/py_resource.os build/engine/release/core/util/time/py_timeevent.os build/engine/release/core/util/time/py_timer.os build/engine/release/core/util/time/py_timemanager.os build/engine/release/core/pathfinder/py_route.os build/engine/release/core/pathfinder/routepather/py_routepather.os build/engine/release/core/pathfinder/routepather/py_multilayersearch.os build/engine/release/core/pathfinder/routepather/py_singlelayersearch.os build/engine/release/core/pathfinder/routepather/py_routepathersearch.os build/engine/release/core/audio/py_soundemitter.os build/engine/release/core/audio/py_soundmanager.os build/engine/release/core/audio/py_soundclip.os build/engine/release/core/audio/py_soundclipmanager.os build/engine/release/core/controller/py_enginesettings.os build/engine/release/core/controller/py_engine.os build/engine/release/core/gui/guichan/py_guichanmanager.os build/engine/release/core/gui/guichan/base/py_gui_imageloader.os build/engine/release/core/gui/guichan/base/sdl/py_sdl_gui_graphics.os build/engine/release/core/gui/guichan/base/opengl/py_opengl_gui_graphics.os build/engine/release/core/gui/guichan/base/py_gui_image.os build/engine/release/core/gui/guichan/base/py_gui_font.os build/engine/release/core/gui/guichan/base/opengle/py_opengle_gui_graphics.os build/engine/release/core/gui/guichan/console/py_console.os build/engine/release/core/gui/guichan/console/py_commandline.os build/engine/release/core/gui/guichan/widgets/py_clicklabel.os build/engine/release/core/gui/guichan/widgets/py_utf8textbox.os build/engine/release/core/gui/guichan/widgets/py_icon2.os build/engine/release/core/gui/guichan/widgets/py_percentagebar.os build/engine/release/core/gui/guichan/widgets/py_twobutton.os build/engine/release/core/gui/guichan/widgets/py_utf8textfield.os build/engine/release/core/gui/guichan/widgets/py_togglebutton.os build/engine/release/core/video/py_cursor.os build/engine/release/core/video/py_renderbackend.os build/engine/release/core/video/py_image.os build/engine/release/core/video/sdl/py_sdlimage.os build/engine/release/core/video/sdl/py_sdlblendingfunctions.os build/engine/release/core/video/sdl/py_renderbackendsdl.os build/engine/release/core/video/opengl/py_renderbackendopengl.os build/engine/release/core/video/opengl/py_glimage.os build/engine/release/core/video/py_animation.os build/engine/release/core/video/fonts/py_fontbase.os build/engine/release/core/video/fonts/py_textrenderpool.os build/engine/release/core/video/fonts/py_imagefontbase.os build/engine/release/core/video/fonts/py_truetypefont.os build/engine/release/core/video/fonts/py_subimagefont.os build/engine/release/core/video/py_atlasbook.os build/engine/release/core/video/py_imagemanager.os build/engine/release/core/video/py_devicecaps.os build/engine/release/core/video/opengle/py_renderbackendopengle.os build/engine/release/core/video/opengle/py_gleimage.os build/engine/release/core/model/structures/py_cellcache.os build/engine/release/core/model/structures/py_layer.os build/engine/release/core/model/structures/py_renderernode.os build/engine/release/core/model/structures/py_cell.os build/engine/release/core/model/structures/py_instance.os build/engine/release/core/model/structures/py_map.os build/engine/release/core/model/structures/py_location.os build/engine/release/core/model/structures/py_instancetree.os build/engine/release/core/model/py_model.os build/engine/release/core/model/metamodel/py_action.os build/engine/release/core/model/metamodel/py_timeprovider.os build/engine/release/core/model/metamodel/grids/py_squaregrid.os build/engine/release/core/model/metamodel/grids/py_cellgrid.os build/engine/release/core/model/metamodel/grids/py_hexgrid.os build/engine/release/core/model/metamodel/py_object.os build/engine/release/core/eventchannel/py_eventmanager.os build/engine/release/core/vfs/py_vfs.os build/engine/release/core/vfs/zip/py_zipprovider.os build/engine/release/core/vfs/zip/py_zipfilesource.os build/engine/release/core/vfs/zip/py_ziptree.os build/engine/release/core/vfs/zip/py_zipnode.os build/engine/release/core/vfs/zip/py_zipsource.os build/engine/release/core/vfs/py_vfssource.os build/engine/release/core/vfs/py_vfssourceprovider.os build/engine/release/core/vfs/py_vfsdirectory.os build/engine/release/core/vfs/dat/py_dat1.os build/engine/release/core/vfs/dat/py_lzssdecoder.os build/engine/release/core/vfs/dat/py_rawdatadat1.os build/engine/release/core/vfs/dat/py_dat2.os build/engine/release/core/vfs/dat/py_rawdatadat2.os build/engine/release/core/vfs/py_directoryprovider.os build/engine/release/core/vfs/py_fife_boost_filesystem.os build/engine/release/core/vfs/raw/py_rawdatafile.os build/engine/release/core/vfs/raw/py_rawdatasource.os build/engine/release/core/vfs/raw/py_rawdata.os build/engine/release/core/vfs/raw/py_rawdatamemsource.os build/engine/release/core/ext/tinyxml/py_tinyxmlerror.os build/engine/release/core/ext/tinyxml/py_tinyxmlparser.os build/engine/release/core/ext/tinyxml/py_tinyxml.os build/engine/release/core/ext/tinyxml/py_tinystr.os build/engine/release/core/ext/glee/py_GLee.os build/engine/release/swigwrappers/python/py_fife_wrap.os -L/opt/lib -Lext/install/lib -L/usr/local/lib -L/usr/X11R6/lib -lstdc++ -lGL -lvorbisfile -lvorbis -lm -logg -lopenal -lSDL -lSDL_ttf -lSDL_image -lguichan -lguichan_sdl -lboost_system -lboost_filesystem -lboost_regex -lpng -lXcursor -lguichan_opengl -ltinyxml -lglee
scons: building terminated because of errors.
Logged

flutschfinger

  • Newbie
  • Posts: 14
    • View Profile
Re: Trouble compiling on Linux
« Reply #10 on: April 04, 2013, 10:31:58 am »

Please upload the config.log from the build folder.
And take into account that you have to delete the generated scons files before every further run of scons with scons -c.
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #11 on: April 05, 2013, 01:35:42 pm »

Thanks, fife builds fine now, after I ran scons -c
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #12 on: April 05, 2013, 02:28:19 pm »

I want to use Fife on 64-bit linux, I built it on 32-bit linux, but I can't build it on 64-bit because of python.
Code: [Select]
In file included from /usr/include/python2.7/Python.h:58:0, from build/engine/release/swigwrappers/python/fife_wrap.cc:150:
/usr/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

kill mentioned a fix but I didn't understand it. Could anyone explain on what I need to do?
Logged

CalebW

  • Newbie
  • Posts: 10
    • View Profile
Re: Trouble compiling on Linux
« Reply #13 on: April 08, 2013, 05:26:55 pm »

Anyone?
Logged

vtchill

  • Developer
  • Full Member
  • *
  • Posts: 206
    • View Profile
Re: Trouble compiling on Linux
« Reply #14 on: April 09, 2013, 11:33:10 am »

well you can build fife on 64-bit linux but you will have to install or build a 32-bit version of python. I have seen some people do this in a sandbox of sorts to avoid conflicting python libs between 64-bit and 32-bit versions.

If you google python 32-bit on 64-bit linux several results will come up detailing different approaches.
Logged