-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Can't link with btWorldImporter #20
Comments
Output of cmake with find debug mode on is here: log.txt I find it weird that it first uses the |
If I remember right, I didn't use doubles for bullet so yes I advice to disable double precision in docs here. |
I added message line for module path before finding bullet # fix 5 bullet
message(STATUS "module path: " ${CMAKE_MODULE_PATH})
find_package( Bullet REQUIRED ) and it prints # fix 5 bullet
message(STATUS "module path: " ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/" ${CMAKE_MODULE_PATH})
find_package( Bullet REQUIRED ) Now the file is still not found, but if I copy |
Aah, so it builds okay now? |
It still cannot link static libraries in. When I compile bullet as shared libraries, it gives warnings
and produces an executable linked to both bullet 3.26 in my bullet3-install/ dir and my system bullet 3.20. Game works now but idk which one it uses. |
After I changed
Yes, I think. And make sure this file is found by cmake. If Also I don't know how to deal with this: add_external_lib(
BULLET
bullet3/3.24
REQUIRED
FIND_PACKAGE
CONAN_OPTIONS bullet3:extras=True bullet3:network_support=True
INTERFACE_NAME Bullet::Bullet
) This reports Invalid value "OFF" for option SR_USE_BULLET if you rename FindBULLET.cmake->FindBullet.cmake. I just commented this out. |
Okay, yeah current cmake config is somewhat butchered by me to work. |
This question was probably asked several times, but I haven't found a working solution.
I configure bullet (latest git version) like this
cmake -DCMAKE_INSTALL_PREFIX=/home/herman/prog/build/bullet3-install/ -DBUILD_EXTRAS=ON -DUSE_DOUBLE_PRECISION=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Release ..
. I didn't want to install it to /usr/local/ so it does not interfere with system package manager-installed bullet used for building openmw, that does require double precision, so I chose another location. So there are installed a bunch of .a files in bullet3-install/lib, including libBulletWorldImporter.aI configure sr3 (latest git version) like this
cmake -DCMAKE_BUILD_TYPE=Release -DBULLET_ROOT=/home/herman/prog/build/bullet3-install/ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
However this error appears
Do I need to disable double precision in bullet? Do I need some changes in its cmake file? Do I need it to use shared libs instead of static? Another bullet version mb? Please help.
The text was updated successfully, but these errors were encountered: