# [Solved] Strange problem with Bullet Physics when trying to build cmake project in debug

No replies to this topic

### #1SteveDeFacto

New Member

• Members
• 8 posts

Posted 11 December 2012 - 10:17 PM

I'm using QT creator with cmake for my project and it has worked great except now I'm trying to use the deb package that has recently been added to Ubuntu. Now it works fine when just building my project in release mode but when I try to build it with debugging information it says I have an undefined reference:


/usr/bin/ld: CMakeFiles/editor.dir/editor.cpp.o: undefined reference to symbol '_ZNK17btTypedConstraint9serializeEPvP12btSerializer'
/usr/bin/ld: note: '_ZNK17btTypedConstraint9serializeEPvP12btSerializer' is defined in DSO /usr/lib/libBulletDynamics.so.2.80 so try adding it to the linker command line
/usr/lib/libBulletDynamics.so.2.80: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [bin/editor] Error 1
make[1]: *** [editor/CMakeFiles/editor.dir/all] Error 2
make: *** [all] Error 2
16:57:55: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project Project (target: Desktop)
When executing step 'Make'


I am linking to bullet dynamics so this error is really confusing me?

EDIT: Never mind. It was a naming problem with my cmakelists file where it was automatically post fixing a "_d" for debug and I had later told it to add another "_d" which caused it to not actually link to the library.

#### 1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users