Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librwengine.so: Could not resolve symbol #744

Open
robante15 opened this issue Jan 23, 2022 · 2 comments
Open

librwengine.so: Could not resolve symbol #744

robante15 opened this issue Jan 23, 2022 · 2 comments

Comments

@robante15
Copy link

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

@tsjost
Copy link
Member

tsjost commented Jan 23, 2022

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?

@robante15
Copy link
Author

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

imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants