LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (http://www.linuxquestions.org/questions/arch-29/)
-   -   Rigs Of Rods: "package 'OGRE' not found" (http://www.linuxquestions.org/questions/arch-29/rigs-of-rods-package-ogre-not-found-805214/)

cantab 04-30-2010 02:31 PM

Rigs Of Rods: "package 'OGRE' not found"
 
Argh...trying to install Rigs Of Rods, not going well :-(

The PKGBUILD in the AUR doesn't work, so I downloaded the source. I then needed to download, build, and install ogre from source (since it too has a non-working PKGBUILD).

Ogre is installed, into /usr/local/. But cmake isn't picking it up, I get
Code:

[tw296@treno ror-trunk]$ cmake .
-- checking for module 'OGRE'
--  package 'OGRE' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  CMakeDependenciesConfig.txt:123 (PKG_CHECK_MODULES)
  CMakeLists.txt:10 (include)


-- Not enabled: MYGUI
-- Not enabled: OPENAL
-- Not enabled: LUA
-- Not enabled: SOCKETW
-- Not enabled: MOFILEREADER
-- Not enabled: PAGED
-- Not enabled: CAELUM
-- Not enabled: ANGELSCRIPT
-- Not enabled: HYDRAX
-- Not enabled: CRASHRPT
-- checking for module 'OGRE'
--  package 'OGRE' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  source/configurator/CMakeLists.txt:29 (PKG_CHECK_MODULES)


-- Configuring /home/tw296/aur/rigsofrods/ror-trunk/bin/ ...
-- Copying file plugins.cfg
-- Copying file rorconfig.sh
-- Copying file RoR.sh
-- Configuring incomplete, errors occurred!

How can I make cmake see ogre?

John VV 04-30-2010 02:39 PM

is /usr/local in your system path??
most of the time it is not used
i use --prefix=/usr for almost all programs i build

with /usr/local
the oger.pc file is in /usr/local/lib/pkgconfig and not in /usr/lib/pkgconfig
Quote:

The PKGBUILD in the AUR doesn't work,
what is the error ?
why is it not working ?

cantab 04-30-2010 03:19 PM

[tw296@treno joyutils]$ echo $PATH
/usr/local/bin:/opt/wine/bin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/grass/bin:/opt/kde/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin

I added the /usr/local/bin myself, but evidently it wasn't enough. I'd rather keep anything I build myself (ie, not from the AUR) separate from my 'main' system, which is what /usr/local is meant for I believe.

The PKGBUILD is no good because there is a file, languages.zip, that's no longer on the website it was on. (The software version is also not current). I believe someone is working on updating it.

EDIT: putting what you mentioned, /usr/local/lib/pkgconfig, into PKG_CONFIG_PATH fixed the orginal error. Still to build the whole thing though.

cantab 05-01-2010 09:41 AM

Alright, now the stable version errors out of make with
Code:

[ 87%] Building CXX object main/CMakeFiles/RoR.dir/source/CacheSystem.cpp.o
In file included from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/CacheSystem.cpp:24:0:     
/home/tw296/software/rigsofrods-source-0.36.2/build/main/source/ImprovedConfigFile.h: In constructor ‘Ogre::ImprovedConfigFile::ImprovedConfigFile()’:
/home/tw296/software/rigsofrods-source-0.36.2/build/main/source/ImprovedConfigFile.h:34:26: error: cannot call constructor ‘Ogre::ImprovedConfigFile::ConfigFile’ directly
/home/tw296/software/rigsofrods-source-0.36.2/build/main/source/ImprovedConfigFile.h:34:26: error:  for a function-style cast, remove the redundant ‘::ConfigFile’
In file included from /home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_ISubWidgetText.h:13:0,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Widget.h:15,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Gui.h:18,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI.h:10,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/gui_loader.h:24,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/CacheSystem.cpp:27:
/home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Colour.h: In member function ‘bool MyGUI::Colour::operator==(const MyGUI::Colour&) const’:
/home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Colour.h:65:28: warning: comparing floating point with == or != is unsafe
/home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Colour.h:65:53: warning: comparing floating point with == or != is unsafe
/home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Colour.h:65:79: warning: comparing floating point with == or != is unsafe
/home/tw296/software/rigsofrods-source-0.36.2/build/dependencies/mygui/include/MyGUI_Colour.h:65:105: warning: comparing floating point with == or != is unsafe
In file included from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/Beam.h:57:0,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/SoundScriptManager.h:24,
                from /home/tw296/software/rigsofrods-source-0.36.2/build/main/source/CacheSystem.cpp:29:
/home/tw296/software/rigsofrods-source-0.36.2/build/main/source/approxmath.h: In function ‘float sign(float)’:
/home/tw296/software/rigsofrods-source-0.36.2/build/main/source/approxmath.h:116:18: warning: comparing floating point with == or != is unsafe
make[2]: *** [main/CMakeFiles/RoR.dir/source/CacheSystem.cpp.o] Error 1
make[1]: *** [main/CMakeFiles/RoR.dir/all] Error 2
make: *** [all] Error 2
[tw296@treno build]$

While the source checked out from subversion complained about being unable to find a file listed in cmakelists.

Aperion 05-13-2010 10:58 PM

Linux maintainer (sortof) for RoR, I have not used ARCH linux before, does pkg-config not work there? I thin kOgre has a FindOgre.cmake module out there, I'll try to switch to that to be more cross platform compatible.

Also what version of MyGui are you using, RoR needs version 3.1 I believe, which has not been released yet, so it's available from CVS. have a look at this page for information on all the dependencies, it's kind of ugly so patients is appreciated.

bananaoomarang 06-10-2010 07:26 AM

HI
 
This is a field I have had success in. I used the ubuntu installer found here:

http://forum.rigsofrods.com/index.php?topic=28110.0


It required me to cd into the dependencies build directory, then to run make, I then copyed the files it asked for into /usr/lib and voila. I think the problem is just versions. The OGRE and Mygui libs it needs are clearly 'too' ip to date for arch. I can't quite remember what I did but I do remember having to run ./RoR.sh for it to start as ./rorconfig.sh crashes when you save the changes (but they save anyway). I hope this helps.

bananaoomarang


All times are GMT -5. The time now is 09:42 AM.