Following up on my earlier post (https://bbs.archlinux.org/viewtopic.php?id=155791), https://aur.archlinux.org/packages/rigsofrods-hg/ still has problems, although I'm using the correct revsion of mygui:
[ 57%] Building CXX object source/main/main_sim/CMakeFiles/RoR.dir/__/gui/Console.cpp.o /home/martin/aur/rigsofrods-hg/src/codehg/source/main/gui/Console.cpp: In Elementfunktion »void Console::eventButtonPressed(MyGUI::Widget*, MyGUI::KeyCode, MyGUI::Char)«: /home/martin/aur/rigsofrods-hg/src/codehg/source/main/gui/Console.cpp:192:14: Error: »struct MyGUI::KeyCode« has no element called »toValue«
So if anyone knows a way to fix this, I'd be grateful.
Last edited by Morn (2013-01-07 15:46:16)
A link to the earlier post would be good so we can see the history of what has been done. Can you find the structure declaration for MyGUI::KeyCode?
Also, where is mygui from? I just found a "mygui" package on sourceforge, downloaded it and grep'ed through it - there is no "KeyCode" anywhere in it, so I'm assuming it is the wrong "mygui" project.
I've found the defintion, it looks like this should be solved with
sed -i "s/.toValue/.getValue/" "$srcdir/$_hgrepo/source/main/gui"/*.cpp
in the PKGBUILD. It's still compiling though, so it's too early to declare success.
It almost works now. It fails during linking:
[ 96%] Building CXX object source/main/main_sim/CMakeFiles/RoR.dir/main.cpp.o Linking CXX executable ../../../bin/RoR /usr/bin/ld: CMakeFiles/RoR.dir/__/audio/SoundManager.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' /usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib/libboost_system.so.1.50.0 so try adding it to the linker command line /usr/lib/libboost_system.so.1.50.0: could not read symbols: Invalid operation
Some problem with boost apparently?
P.S. I really don't get why it thinks it needs boost for an OpenAL-related module. Maybe an older version of OpenAL is required? http://www.rigsofrods.com/wiki/pages/Co … _libraries
Last edited by Morn (2013-01-07 17:05:48)
As it turns out, the OGRE/boost linker issue is covered here: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=71037
Unfortunately none of their suggested fixes seems to work for RoR. But maybe I'm using cmake wrong, I don't know that build system very well.
I've tried to add
sed -i "s/libboost_date_time-vc100-mt-1_48/libboost_date_time-vc100-mt-1_48;libboost_system-vc100-mt-1_48/"\ "$srcdir/$_hgrepo/CMakeDependenciesConfig.txt" echo "set(OGRE_BOOST_COMPONENTS system filesystem date_time)" >> "$srcdir/$_hgrepo/CMakeLists.txt"
to the PKGBUILD. But for some reason the linker still doesn't want to link against /usr/lib/libboost_system.so.
Well, ogre-hg from AUR doesn't even compile, so I think I'm giving up on RoR for today. Perhaps it will magically work when the main repo updates ogre and boost. Looks like the current version of ogre is bad, if I understand the error messages and bug reports correctly.
ogre-hg is compiling now, although it stops earlier then normal ogre (10% instead 63%).
If that helps:
[ 10%] Building CXX object source/main/main_sim/CMakeFiles/RoR.dir/__/gameplay/CharacterFactory.cpp.o
In file included from /home/gabriel/Downloads/Linux/Arch/JogosArch/Rigs/aur-rigsofrods-hg/src/codehg/source/main/gameplay/Character.h:25:0,
make: *** [source/main/main_sim/CMakeFiles/RoR.dir/__/gameplay/Savegame.cpp.o] Error 1
If any thoughts happen will be glad to help.
"Nothing is impossible, impossible just takes longer"