This is probably a really basic problem, but I can't get adonthell
built with debug symbols. My cmake output follows, but can anyone tell
me how they were able to get debug symbols in adonthell and worldtest
so that gdb is useful? :)

Here's what I tried (note the -O3 flag and the lack of the -g flag):


: josh@laurana; make clean
: josh@laurana; cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DDEVBUILD=1
../adonthell
-- Adonthell data directory: /usr/local/share/games/adonthell
-- SDL 1.2 has been found:
--      CFLAGS : /usr/include/SDL
--      LDFLAGS: -lSDL -lpthread
-- SDL Mixer has been found:
--      CFLAGS : /usr/include/SDL
--      LDFLAGS: /usr/lib64/libSDL_mixer.so
-- Python has been found:
--      CFLAGS : /usr/include/python2.7
--      LDFLAGS: /usr/lib64/libpython2.7.so
--      VERSION: python2.7
--      LDEXTRA: -lm;-lpthread -ldl  -lutil
--      SITEPKG: /usr/lib64/python2.7/site-packages
-- PNG has been found:
--      CFLAGS : /usr/include/libpng15
--      LDFLAGS: -lpng15
-- SWIG is present on the system.
-- LibXml2 has been found:
--      CFLAGS : /usr/include/libxml2
--      LDFLAGS: -lxml2
-- LibFreetype2 has been found:
--      CFLAGS : -I/usr/include/freetype2
--      LDFLAGS: -lfreetype
-- libglog has been found:
--      CFLAGS :

--      LDFLAGS: -lglog
-- libgtest has been found:
--      CFLAGS :

--      LDFLAGS: -lgtest
-- libgmock has been found:
--      CFLAGS :

--      LDFLAGS: -lgmock
-- Configuring done
-- Generating done
-- Build files have been written to: /home/josh/Documents/code/adonthell-build
: josh@laurana; make VERBOSE=1
/usr/bin/cmake -H/home/josh/Documents/code/adonthell
-B/home/josh/Documents/code/adonthell-build --check-build-system
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/josh/Documents/code/adonthell-build/CMakeFiles
/home/josh/Documents/code/adonthell-build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/josh/Documents/code/adonthell-build'
make -f src/base/CMakeFiles/adonthell_base.dir/build.make
src/base/CMakeFiles/adonthell_base.dir/depend
make[2]: Entering directory `/home/josh/Documents/code/adonthell-build'
cd /home/josh/Documents/code/adonthell-build && /usr/bin/cmake -E
cmake_depends "Unix Makefiles" /home/josh/Documents/code/adonthell
/home/josh/Documents/code/adonthell/src/base
/home/josh/Documents/code/adonthell-build
/home/josh/Documents/code/adonthell-build/src/base
/home/josh/Documents/code/adonthell-build/src/base/CMakeFiles/adonthell_base.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/josh/Documents/code/adonthell-build'
make -f src/base/CMakeFiles/adonthell_base.dir/build.make
src/base/CMakeFiles/adonthell_base.dir/build
make[2]: Entering directory `/home/josh/Documents/code/adonthell-build'
/usr/bin/cmake -E cmake_progress_report
/home/josh/Documents/code/adonthell-build/CMakeFiles 18
[  1%] Building CXX object src/base/CMakeFiles/adonthell_base.dir/base.cc.o
cd /home/josh/Documents/code/adonthell-build/src/base && /usr/bin/c++
 -Dadonthell_base_EXPORTS -DVERSION=\"0.4.0\" -DHAVE_CONFIG_H=1
-DGOOGLE_STRIP_LOG=1 -DDATA_DIR=\"/usr/local/share/games/adonthell\"
-DPKGLIBDIR=\"/usr/local/lib/adonthell\" -O3 -DNDEBUG -fPIC
-I/home/josh/Documents/code/adonthell-build
-I/home/josh/Documents/code/adonthell/src -I/usr/include/libxml2
-fno-strict-aliasing -o CMakeFiles/adonthell_base.dir/base.cc.o -c
/home/josh/Documents/code/adonthell/src/base/base.cc
[...]

_______________________________________________
Adonthell-devel mailing list
Adonthell-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/adonthell-devel

Reply via email to