# SteveDeFacto

Member Since 08 Jan 2011
Offline Last Active Dec 26 2012 10:59 AM

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

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.

### SDL 2.0 fullscreen mode won't work?

13 August 2012 - 03:28 PM

When I try to go full screen the resolution changes but that is about it. The window border still shows and when I exist my application my desktop is still in that resolution. Is this because SDL 2.0 is not finished or do I have to do something else to make my window expand to fullscreen / manually exit fullscreen?

EDIT: Probably need to give more information. I'm using Ubuntu 12.04 and I've tried many things to fix the problem but nothing seems to work. I noticed that when the resolution of my desktop is already set to the resolution of the window the window will properly expand to fullscreen. Here is my how I create the window:

	SDL_Init(SDL_INIT_VIDEO);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_Window* window = SDL_CreateWindow("ContextWindow", 0, 0, 1024, 768, SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN);