Linux Dependencies (for Arch Linux) after SDL Integration

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Linux Dependencies (for Arch Linux) after SDL Integration

#1 Post by Chriss »

Could someone please have a look at the depencencies I use for Arch Linux?

depends=('boost' 'python2' 'sdl2' 'freealut' 'graphviz' 'libvorbis' 'libogg' 'glew')
makedepends=('subversion' 'cmake')

boost, python, sdl and glew I am quite sure about, subversion and cmake for compilation, too. ;)

libvorbis is for sound as there are a number of ogg files?

What about freealut and graphviz?

Since cmake configures OIS, is it needed? Do I need to add it as dependency? Anything else I'm missing?
Attached patches are released under GPL 2.0 or later.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#2 Post by Geoff the Medio »

Chriss wrote:graphviz?
Not used. (And hasn't been for over 4 years...)
freealut
Used on Win32, but I don't know about Arch.
Since cmake configures OIS, is it needed?
Not since the merge of the SDL/SDK branch in the last week, which removed all Ogre and Ogre-related stuff.

There are various other dependencies on Win32 like zlib, jpeg, libpng, freetype, possibly freeimage. I'm not sure whether or where these need to be listed as dependencies in Arch stuff, or whether Gigi and FreeOrion have distinct dependencies in that system.

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#3 Post by Chriss »

I'll try without freealut, graphviz, ois and ogre installed. What about these:

Code: Select all

freeorion-svn E: Dependency libjpeg-turbo detected and not included (libraries ['usr/lib/libjpeg.so.8'] needed in files ['usr/lib/freeorion/libGiGi.so'])
freeorion-svn E: Dependency openal detected and not included (libraries ['usr/lib/libopenal.so.1'] needed in files ['usr/bin/freeorion'])
freeorion-svn E: Dependency libtiff detected and not included (libraries ['usr/lib/libtiff.so.5'] needed in files ['usr/lib/freeorion/libGiGi.so'])
Attached patches are released under GPL 2.0 or later.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#4 Post by Geoff the Medio »

You probably need jpeg and openal... at least they are used on Windows. I don't think any tiffs are used in FreeOrion, but if Gigi won't build without it, then I suppose it's needed.

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#5 Post by Chriss »

I can confirm that I need tiff, openal and jpeg. Not OIS for runtime.

But the cmake build still seems to need OIS:

Code: Select all

[...]
-- Configuring freeorion
-- Found GLEW: /usr/include  
-- Found OpenAL: /usr/lib64/libopenal.so  
-- Found Ogg: /usr/lib64/libogg.so  
-- Found Vorbis: /usr/lib64/libvorbis.so  
-- Found Bullet: /usr/lib64/libBulletDynamics.so  
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
--   package 'OIS' not found
-- Could not locate OIS
CMake Error at GG/cmake/FindPkgMacros.cmake:117 (message):
  Required library OIS not found! Install the library (including dev
  packages) and try again.  If the library is already installed, set the
  missing variables manually in cmake.
Call Stack (most recent call first):
  GG/cmake/FindOIS.cmake:82 (findpkg_finish)
  client/human/CMakeLists.txt:23 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/chris/freeorion-workspace/freeorion-code/build/CMakeFiles/CMakeOutput.log".
See also "/home/chris/freeorion-workspace/freeorion-code/build/CMakeFiles/CMakeError.log".
Really needed, or not cleaned up yet?
Attachments
CMakeError.log
(3.66 KiB) Downloaded 174 times
CMakeOutput.log
(50.78 KiB) Downloaded 168 times
Attached patches are released under GPL 2.0 or later.

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#6 Post by Dilvish »

Chriss wrote:OIS...Really needed, or not cleaned up yet?
I'm pretty sure it's just not yet cleaned up. I did a first pass at updating the cmake files so that FO would compile without Ogre, but I didn't try to do a truly thorough cleanup. In the past it's been Marcel/Adrian doing our cmake upkeep, but it seems he's been too busy lately.

For Ogre, I just changed the relevant option to default to Off instead of On, and I think that might have been all it took (along with removing references to a few source files that were no longer present due to other changes in the sdl branch). There is probably a similar option for OIS. Are you game to take a crack at cleaning up the cmake files?
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#7 Post by Chriss »

I gave it a try, and I think it's still referenced in the human client. See patch and call stack. But that's really just search and guess - I have no clue whatsoever about cmake. ;)

That removes the issue with OIS, but it then fails because it can't find PythonUniverseGenerator.cpp:

Code: Select all

-- Configuring freeorion
-- Configuring done
CMake Error at CMakeLists.txt:261 (add_library):
  Cannot find source file:

    universe/PythonUniverseGenerator.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at server/CMakeLists.txt:54 (add_executable):
  Cannot find source file:

    ../universe/PythonUniverseGenerator.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Generating done
-- Build files have been written to: /home/chris/freeorion-workspace/freeorion-code/build
I think that's new and unrelated?
Attachments

[The extension patch has been deactivated and can no longer be displayed.]

Attached patches are released under GPL 2.0 or later.

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#8 Post by Chriss »

Yes, looks like Vezzra moved that stuff in 7985. See patch for new path. Seems to work with those 2 patches.
Attachments

[The extension patch has been deactivated and can no longer be displayed.]

Attached patches are released under GPL 2.0 or later.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#9 Post by Geoff the Medio »

Chriss wrote:Yes, looks like Vezzra moved that stuff in 7985. See patch for new path. Seems to work with those 2 patches.
committed

Also

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#10 Post by Chriss »

Thx.
Attached patches are released under GPL 2.0 or later.

Chriss
Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: Linux Dependencies (for Arch Linux) after SDL Integratio

#11 Post by Chriss »

cmake needs another patch to remove bullet references. Compiles and runs for me (3 turns quickstart...)

Patch see Compiling test version for Linux step by step
Attached patches are released under GPL 2.0 or later.

Post Reply