openrw icon indicating copy to clipboard operation
openrw copied to clipboard

librwengine.so: Could not resolve symbol

Open robante15 opened this issue 3 years ago • 2 comments

Hello, I am trying to compile and run this project on an unsupported platform. I am trying it in Haiku, to achieve this I only had to make a modification in the code, and that is to stop using the glx.h library

Modifying the file rwcore/gl/gl_core_3_3.c, after that and using the options in CMake

-DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=On

I managed to compile the game, but when trying to run rwgame I get the following error code

runtime_loader: /boot/home/Desktop/openrw/build/rwengine/librwengine.so: Could not resolve symbol '_ZN16btRaycastVehicle8addWheelERK9btVector3S2_S2_ffRKNS_15btVehicleTuningEb'
resolve symbol "_ZN16btRaycastVehicle8addWheelERK9btVector3S2_S2_ffRKNS_15btVehicleTuningEb" returned: -2147478780
runtime_loader: /boot/home/Desktop/openrw/build/rwengine/librwengine.so: Troubles relocating: Symbol not found

I couldn't find any reference within the project code, so I'm posting it here, to see if anyone has an idea what could be the problem

imagen

robante15 avatar Jan 23 '22 03:01 robante15

btRaycastVehicle, addWheel, btVector3 and btVehicleTuning are all symbols of the Bullet physics library.

It seems the build system is able to find Bullet during compilation, but the runtime fails to?

tsjost avatar Jan 23 '22 04:01 tsjost

When i remove the option -DBUILD_SHARED_LIBS=On Then it throws me an error when linking the Bullet library

imagen

robante15 avatar Jan 23 '22 04:01 robante15