FreeBSD compilation

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
xdevelnet
Posts: 3
Joined: 28 May 2014, 19:48

FreeBSD compilation

Post by xdevelnet »

Hi! I cant find any instructions or manual to build OpenMW under freebsd. It seems like freebsd is in supported os list, but here is no more info.
Can u help me?

I have nvidia gtx560 and other open source games runs perfectly. Tnx a lot ;)
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: FreeBSD compilation

Post by psi29a »

It should compile and work under FreeBSD, but there is currently no one on the development team to actively. We did have people earlier who have tried but they have been silent as of late.

Would you be willing to give it a go and document it?

It should be rather straight forward if you already know how to develop on FreeBSD.

1) download and install supporting libs and their devel files (for list, just look at linux docs)
2) git OpenMW
3) cmake openmw
4) make
5) profit
xdevelnet
Posts: 3
Joined: 28 May 2014, 19:48

Re: FreeBSD compilation

Post by xdevelnet »

I installed all needed libs to build
But i cant compile it:

Code: Select all

$ cmake openmw
-- Configuring OpenMW...
-- Looking for OGRE...
-- Found Ogre Ghadamon (1.9.0)
-- Found OGRE: optimized;/usr/local/lib/libOgreMain.so;debug;/usr/local/lib/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/local/lib/libOgrePaging.so;debug;/usr/local/lib/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/local/lib/libOgreTerrain.so;debug;/usr/local/lib/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Could not locate OGRE_Property
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/local/lib/libOgreRTShaderSystem.so;debug;/usr/local/lib/libOgreRTShaderSystem.so
--  libraries : MyGUIEngine from /usr/local/lib
--  includes : /usr/local/include;/usr/local/include/MYGUI
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
CMake Error at CMakeLists.txt:389 (INSTALL):
  install PROGRAMS given directory "/home/xnet/src/openmwsrc/openmw" to
  install.


-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.6") 
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
--   thread
--   wave
-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.6") 
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
--   thread
--   wave
-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.6") 
-- Configuring incomplete, errors occurred!
See also "/home/xnet/src/openmwsrc/CMakeFiles/CMakeOutput.log".
See also "/home/xnet/src/openmwsrc/CMakeFiles/CMakeError.log"
Maybe it happend because default compiler under FreeBSD 10 is CLANG?
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: FreeBSD compilation

Post by psi29a »

Newp, that's not it. We've successfully used both gcc and clang without problems. This is something else.

Look around CMakeLists.txt:389

and see what it is doing and what it needs.
xdevelnet
Posts: 3
Joined: 28 May 2014, 19:48

Re: FreeBSD compilation

Post by xdevelnet »

BrotherBrick wrote:Newp, that's not it. We've successfully used both gcc and clang without problems. This is something else.

Look around CMakeLists.txt:389

and see what it is doing and what it needs.
starting from 388 line:

Code: Select all

        # Install binaries
        INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" )
        IF(BUILD_LAUNCHER)
            INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/omwlauncher" DESTINATION "${BINDIR}" )
        ENDIF(BUILD_LAUNCHER)
        IF(BUILD_BSATOOL)
            INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/bsatool" DESTINATION "${BINDIR}" )
        ENDIF(BUILD_BSATOOL)
        IF(BUILD_ESMTOOL)
            INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/esmtool" DESTINATION "${BINDIR}" )
        ENDIF(BUILD_ESMTOOL)
        IF(BUILD_MWINIIMPORTER)
            INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/mwiniimport" DESTINATION "${BINDIR}" )
        ENDIF(BUILD_MWINIIMPORTER)
        IF(BUILD_OPENCS)
            INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/opencs" DESTINATION "${BINDIR}" )
        ENDIF(BUILD_OPENCS)
seems like i have all required libs. Idk what to do
Locked