..:: PCSX2 Forums ::..

Full Version: cmake: can't make with debug info
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
forgive me, but i'm not terribly fluent with cmake

cmake output:
Code:
moi@zodiark:~/pcsx2$ cmake . -DCMAKE_BUILD_TYPE=Devel -DCMAKE_BUILD_STRIP=FALSE
-- Use internal version of Soundtouch by default.
    Note: There have been issues in the past with sound quality depending on the version of Soundtouch
    Use -DFORCE_INTERNAL_SOUNDTOUCH=FALSE at your own risk
-- Install localization file in bin/Langs by default
-- Use internal pcsx2 SoundTouch library
-- Skip build of GSdx: miss some dependencies
-- check these libraries -> opengl, X11, pcsx2 SDL
-- Configuring done
-- Generating done
-- Build files have been written to: /home/moi/pcsx2

gdb output:
Code:
moi@zodiark:~/pcsx2/bin$ gdb pcsx2-dev
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/moi/pcsx2/bin/pcsx2-dev...(no debugging symbols found)...done.

(no debugging symbols found)
Hum that strange.
You can use this cmake option too "-DCMAKE_BUILD_STRIP=FALSE"

Note: launch gdb ./pcsx2-devel, otherwise it would take the one in your path which is maybe not the one you compile.
(06-08-2011, 07:56 AM)gregory Wrote: [ -> ]Hum that strange.
You can use this cmake option too "-DCMAKE_BUILD_STRIP=FALSE"

Note: launch gdb ./pcsx2-devel, otherwise it would take the one in your path which is maybe not the one you compile.

I did use -DCMAKE_BUILD_STRIP=FALSE though.

I inspected CMakeLists.txt in the pcsx2 subdir and discovered my error: only the debug build gets symbols (not the devel build). Looking back over the build guide on the wiki, I see it does say that. Sorry.

Symbols in hand, I will now post here

http://forums.pcsx2.net/Thread-Segmentation-Fault-Linux