I'm sorry if this question isn't specific to CEGUI, but for some reason I'm unable to debug CEGUI code with gdb, and this is something I've not encountered before. For example, I put a breakpoint in CEGUI::OpenGL3ShaderManager::loadShader. When I hit that breakpoint, I get:
Code: Select all
Breakpoint 1, 0x00007ffff7bac3e0 in CEGUI::OpenGL3ShaderManager::loadShader(unsigned int, std::string, std::string)@plt ()
from /usr/local/cegui-0.8.4/lib/libCEGUIOpenGLRenderer-0.so.2
However, there's no indication of the source file name, and I can't see the code itself. I've built CEGUI 0.8.4 with:
Code: Select all
cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="/usr/local/cegui-0.8.4" ../../src/cegui-0.8.4
make -j4
sudo make install
And I built my sample program that uses CEGUI with:
Code: Select all
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+":"}/usr/local/cegui-0.8.4/lib/pkgconfig
c++ main.cpp -g -I/usr/include/GLFW `pkg-config --cflags --libs CEGUI-0-OPENGL3` -Wl,-rpath,/usr/local/cegui-0.8.4/lib -lglfw -lGLEW -lGL
I'm using Debian Linux 8.1 with GCC 4.9.2, GDB 7.7.1 and CMake 3.0.2.