FreeOrion

Forums for the FreeOrion project
It is currently Sat Nov 18, 2017 6:21 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Feb 26, 2015 10:30 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
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.


Top
 Profile  
 
PostPosted: Thu Feb 26, 2015 10:46 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
Chriss wrote:
graphviz?
Not used. (And hasn't been for over 4 years...)
Quote:
freealut
Used on Win32, but I don't know about Arch.
Quote:
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.


Top
 Profile  
 
PostPosted: Fri Feb 27, 2015 7:18 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
I'll try without freealut, graphviz, ois and ogre installed. What about these:

Code:
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.


Top
 Profile  
 
PostPosted: Fri Feb 27, 2015 7:32 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
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.


Top
 Profile  
 
PostPosted: Fri Feb 27, 2015 8:49 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
I can confirm that I need tiff, openal and jpeg. Not OIS for runtime.

But the cmake build still seems to need OIS:

Code:
[...]
-- 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 65 times
CMakeOutput.log [50.78 KiB]
Downloaded 64 times

_________________
Attached patches are released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 12:09 am 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4374
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


Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 11:09 am 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
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:
-- 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:
remove_ois_from_client.patch [646 Bytes]
Downloaded 68 times

_________________
Attached patches are released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 11:19 am 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
Yes, looks like Vezzra moved that stuff in 7985. See patch for new path. Seems to work with those 2 patches.


Attachments:
fix-moved-python-files.patch [934 Bytes]
Downloaded 63 times

_________________
Attached patches are released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 11:32 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
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


Top
 Profile  
 
PostPosted: Sat Feb 28, 2015 11:37 am 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
Thx.

_________________
Attached patches are released under GPL 2.0 or later.


Top
 Profile  
 
PostPosted: Sat Mar 07, 2015 8:30 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group