Having trouble compiling on Ubuntu 20.04

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
SivaMachina
Posts: 4
Joined: 18 May 2020, 06:52

Having trouble compiling on Ubuntu 20.04

Post by SivaMachina » 18 May 2020, 07:46

This is the list of commands I ran to compile it.
https://pastebin.com/76J1apc6

This is the output in the terminal.
https://pastebin.com/5HfNkEmY

testman
Posts: 82
Joined: 30 Nov 2015, 15:05

Re: Having trouble compiling on Ubuntu 20.04

Post by testman » 18 May 2020, 10:41

can you try if this works for you:

Code: Select all

$ git clone https://gitlab.com/OpenMW/openmw/
$ mkdir openmw/build
$ cd openmw/build
$ cmake ..
$ make
You can use "make -j 4" instead of just "make" if you want to use more cores and therefore compile the thing faster. Replace 4 with the number of the cores you want to use.

Do tell us if that compiles for you.

User avatar
psi29a
Posts: 4915
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Having trouble compiling on Ubuntu 20.04

Post by psi29a » 18 May 2020, 10:52

They'll need: -D DESIRED_QT_VERSION=5

no qt4 in 20.04

SivaMachina
Posts: 4
Joined: 18 May 2020, 06:52

Re: Having trouble compiling on Ubuntu 20.04

Post by SivaMachina » 18 May 2020, 11:45

psi29a wrote:
18 May 2020, 10:52
They'll need: -D DESIRED_QT_VERSION=5

no qt4 in 20.04
If you look at my first link I mean it with that. And I needed add gland or legacy. I used to be able to compile with the way I have it. I am not sure of an update broke something or I unintentionally did.

SivaMachina
Posts: 4
Joined: 18 May 2020, 06:52

Re: Having trouble compiling on Ubuntu 20.04

Post by SivaMachina » 22 May 2020, 20:30

testman wrote:
18 May 2020, 10:41
can you try if this works for you:

Code: Select all

$ git clone https://gitlab.com/OpenMW/openmw/
$ mkdir openmw/build
$ cd openmw/build
$ cmake ..
$ make
You can use "make -j 4" instead of just "make" if you want to use more cores and therefore compile the thing faster. Replace 4 with the number of the cores you want to use.

Do tell us if that compiles for you.
does not work even with -D DESIRED_QT_VERSION=5


it complains about

Code: Select all

/usr/bin/ld: ../../components/libcomponents.a(constrainedfilestream.cpp.o): undefined reference to symbol '[email protected]@GLIBCXX_3.4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line

zackogenic
Posts: 13
Joined: 21 Apr 2015, 21:17

Re: Having trouble compiling on Ubuntu 20.04

Post by zackogenic » 24 May 2020, 01:20

What packages do you need in 20.04?

I tried the list on https://wiki.openmw.org/index.php?title ... tup#Ubuntu

and 3 packages won't install:

Code: Select all

E: Package 'libopenscenegraph-3.4-dev' has no installation candidate
E: Package 'libqt4-dev' has no installation candidate
E: Unable to locate package libqt4-opengl-dev
I saw there's no libqt4 in 20.04, but I tried the same packages with 5 instead of 4, but those don't exist.

I also can't run the build i compiled with 19.10 with this error: openmw: error while loading shared libraries: libosg.so.131: cannot open shared object file: No such file or directory

User avatar
psi29a
Posts: 4915
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Having trouble compiling on Ubuntu 20.04

Post by psi29a » 24 May 2020, 13:33

Correct.. Qt4 doesn't exist anymore as of 20.04 and latest Debian. OSG 3.4 was also dumped... instead, you get a broken OSG 3.6.4 (openscenegraph-dev).

If you would like a working OSG 3.6 then give the PPA a try:
https://launchpad.net/~openmw/+archive/ubuntu/openmw

It has everything necessary to build from source. Give it a spin?

zackogenic
Posts: 13
Joined: 21 Apr 2015, 21:17

Re: Having trouble compiling on Ubuntu 20.04

Post by zackogenic » 24 May 2020, 13:50

I installed openscenegraph from that PPA, the only package in the repo for 20.04, and I also installed qtdeclarative5-dev to serve as qt5, and now I get these issues when trying to cmake ..

Code: Select all

-- Using Qt5
-- Found FFmpeg_AVCODEC 58.54.100
-- Found FFmpeg_AVFORMAT 58.29.100
-- Found FFmpeg_AVUTIL 56.31.100
-- Found FFmpeg_SWSCALE 5.5.100
-- Found FFmpeg_SWRESAMPLE 3.5.100
-- Found LIBUNSHIELD 
-- Could NOT find osgDB (missing: OSGDB_LIBRARY OSGDB_INCLUDE_DIR) 
-- Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR) 
-- Could NOT find osgText (missing: OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR) 
-- Could NOT find osgGA (missing: OSGGA_LIBRARY OSGGA_INCLUDE_DIR) 
-- Could NOT find osgParticle (missing: OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR) 
-- Could NOT find osgUtil (missing: OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR) 
-- Could NOT find osgFX (missing: OSGFX_LIBRARY OSGFX_INCLUDE_DIR) 
-- Could NOT find osgShadow (missing: OSGSHADOW_LIBRARY OSGSHADOW_INCLUDE_DIR) 
-- Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR) 
-- Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR) 
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OPENSCENEGRAPH_INCLUDE_DIR OSGDB_FOUND OSGVIEWER_FOUND OSGTEXT_FOUND
  OSGGA_FOUND OSGPARTICLE_FOUND OSGUTIL_FOUND OSGFX_FOUND OSGSHADOW_FOUND
  OSG_FOUND OPENTHREADS_FOUND) (Required is at least version "3.3.4")

SivaMachina
Posts: 4
Joined: 18 May 2020, 06:52

Re: Having trouble compiling on Ubuntu 20.04

Post by SivaMachina » 25 May 2020, 19:14

SivaMachina wrote:
22 May 2020, 20:30
testman wrote:
18 May 2020, 10:41
can you try if this works for you:

Code: Select all

$ git clone https://gitlab.com/OpenMW/openmw/
$ mkdir openmw/build
$ cd openmw/build
$ cmake ..
$ make
You can use "make -j 4" instead of just "make" if you want to use more cores and therefore compile the thing faster. Replace 4 with the number of the cores you want to use.

Do tell us if that compiles for you.
does not work even with -D DESIRED_QT_VERSION=5


it complains about

Code: Select all

/usr/bin/ld: ../../components/libcomponents.a(constrainedfilestream.cpp.o): undefined reference to symbol '[email protected]@GLIBCXX_3.4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line



so anyone able to help with this?

User avatar
psi29a
Posts: 4915
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Having trouble compiling on Ubuntu 20.04

Post by psi29a » 28 May 2020, 23:45

zackogenic wrote:
24 May 2020, 13:50
I installed openscenegraph from that PPA, the only package in the repo for 20.04, and I also installed qtdeclarative5-dev to serve as qt5, and now I get these issues when trying to cmake ..
Did you also install openscenegraph-dev ? You need those for the headers...

Post Reply