Page 2 of 2

Re: Raspberry Pi 4

Posted: 25 Aug 2019, 16:39
by langest
Capostrophic wrote: 24 Aug 2019, 14:48 You're using upstream master OSG
Yes, ok.
I tried all of the suggestions
Capostrophic wrote: 24 Aug 2019, 14:48 OpenSceneGraph-3.6 branch or OpenMW/osg 3.4 branch (fork of 3.4.1) or the official 3.4.1 stable release
https://github.com/OpenMW/osg/tree/3.4
https://github.com/openscenegraph/OpenS ... raph-3.4.1
https://github.com/openscenegraph/OpenS ... eGraph-3.6

But I still get the same error.

Code: Select all

Linking CXX executable ../../openmw
/usr/bin/ld: ../../components/libcomponents.a(navmeshtilescache.cpp.o): undefined reference to symbol '__atomic_fetch_sub_8@@LIBATOMIC_1.0'
/usr/bin/ld: //usr/lib/arm-linux-gnueabihf/libatomic.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [apps/openmw/CMakeFiles/openmw.dir/build.make:3947: openmw] Error 1
make[1]: *** [CMakeFiles/Makefile2:699: apps/openmw/CMakeFiles/openmw.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Re: Raspberry Pi 4

Posted: 13 Sep 2019, 04:12
by salvalie
This is my test guys.

Advices

1 compile open scenograph because the default one on the repo havent opengl enabled
2 use the rpi4 flags because raspbian gcc has retrocompatilibily with rpi1..or use another gcc from other distro.
3 update mesa, but dont install it on your system... use a home prefix and just preload the libgl lib, because it creates some troubles installing it on the system... it will break your system and put you on software renderer.

https://youtu.be/uXyjlZFEJuY

Re: Raspberry Pi 4

Posted: 13 Sep 2019, 14:25
by salvalie
The atomic thing tha you see on that error its related to retrocompatibility with armv6 rpi1, not openscenograph. Hope you achieve it to compioe! Set the rpi4 flags on cmake!

Re: Raspberry Pi 4

Posted: 13 Sep 2019, 14:46
by silentthief
We have another user who was compiling on Pi4, and they got it working.

Perhaps this thread can help? viewtopic.php?f=8&t=6134

ST the hopeful helper

Re: Raspberry Pi 4

Posted: 21 Jan 2020, 21:48
by langest
salvalie wrote: 13 Sep 2019, 14:25 The atomic thing tha you see on that error its related to retrocompatibility with armv6 rpi1, not openscenograph. Hope you achieve it to compioe! Set the rpi4 flags on cmake!
Thanks, I'll give it another try.
I'll update if I get any results.

Re: Raspberry Pi 4

Posted: 21 Jan 2020, 23:04
by langest
The RPi4 compile flags did the trick. Now it compiled successfully. I won't have time to test if it runs today though. More updates will come if I make progress.