Error While Compiling On Linux


05-08-2008 20:03:55


I just decided to switch over to Linux (Ubuntu). I got Ogre from SVN, built it, and everything is perfect. I also got latest MyGUI. I did 'sh bootstrap' and './configure', but when I 'make', I get this output:-
nikki@nikki-laptop:~/Development/Libraries/ogre/my-gui$ make
Making all in MyGUIEngine
make[1]: Entering directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine'
Making all in src
make[2]: Entering directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine/src'
if /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"MYGUI\" -DPACKAGE_TARNAME=\"mygui\" -DPACKAGE_VERSION=\"2.1.0\ \" -DPACKAGE_STRING=\"MYGUI\ 2.1.0\ \" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"MYGUI\" -DVERSION=\"2.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/freetype2 -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I/usr/include/OIS -I../../MyGUIEngine/include -MT MyGUI_ActionController.lo -MD -MP -MF ".deps/MyGUI_ActionController.Tpo" -c -o MyGUI_ActionController.lo MyGUI_ActionController.cpp; \
then mv -f ".deps/MyGUI_ActionController.Tpo" ".deps/MyGUI_ActionController.Plo"; else rm -f ".deps/MyGUI_ActionController.Tpo"; exit 1; fi
g++ -DPACKAGE_NAME=\"MYGUI\" -DPACKAGE_TARNAME=\"mygui\" "-DPACKAGE_VERSION=\"2.1.0 \"" "-DPACKAGE_STRING=\"MYGUI 2.1.0 \"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"MYGUI\" -DVERSION=\"2.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/freetype2 -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I/usr/include/OIS -I../../MyGUIEngine/include -MT MyGUI_ActionController.lo -MD -MP -MF .deps/MyGUI_ActionController.Tpo -c MyGUI_ActionController.cpp -fPIC -DPIC -o .libs/MyGUI_ActionController.o
In file included from ../../MyGUIEngine/include/MyGUI_Types.h:15,
from ../../MyGUIEngine/include/MyGUI_Common.h:14,
from ../../MyGUIEngine/include/MyGUI_CroppedRectangleInterface.h:11,
from ../../MyGUIEngine/include/MyGUI_Widget.h:11,
from MyGUI_ActionController.cpp:9:
../../MyGUIEngine/include/TRect.h: In member function ‘bool types::TRect<T>::intersect(const types::TRect<T>&) const’:
../../MyGUIEngine/include/TRect.h:124: error: expected primary-expression before ‘>’ token
make[2]: *** [MyGUI_ActionController.lo] Error 1
make[2]: Leaving directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine'
make: *** [all-recursive] Error 1

This is what that function looks like:-
inline bool intersect(const TRect<T>& _value) const
return ( (_value.left <= right) && (_value.right => left) && ( <= bottom) && (_value.bottom >= top) );

What's wrong?


05-08-2008 22:47:37

Spent about 5 minutes to find mistake in one line :)
There was => instead >= (why MSVC compile this even without warnings?).

Also fixed some other compiling issues. Sorry, can't test is it work or not...


06-08-2008 06:31:45

Haha... I didn't find that mistake somehow. :)

I'll try compiling again.


06-08-2008 09:12:44

Ok, I did make again, after updating, but then I get this:-
make[2]: Leaving directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine/src'
Making all in include
make[2]: Entering directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine/include'
make[2]: *** No rule to make target `MyGUI_FrameListener.h', needed by `all-am'. Stop.
make[2]: Leaving directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine/include'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nikki/Development/Libraries/ogre/my-gui/MyGUIEngine'
make: *** [all-recursive] Error 1

It's also trying to compile the files in the 'include' directory! How can I stop that?


06-08-2008 11:04:11

Sorry. I forgot to update files list in
Now it's done.


06-08-2008 18:02:38

Hey, thanks! It works now! :)

Just asking, do you use Linux yourself?


06-08-2008 18:38:55

Well, I was at work and fixed compiling errors at remote machine using putty (just console, no X).
I use Linux at home, but last few month not often. I only checking that MyGUI compiles and runs in virtual box with ubuntu from time to time. don't use Linux at all.


06-08-2008 18:43:29

Ah, ok. Its working now. MyGUI rocks! :)