fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Re: fluidsynth 1.1.3 debug build


From: Pedro Lopez-Cabanillas
Subject: [fluid-dev] Re: fluidsynth 1.1.3 debug build
Date: Sat, 12 Mar 2011 18:29:59 +0100
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.7-desktop; KDE/4.4.4; i686; ; )

On Saturday 12 March 2011, you wrote:
> 
>  Greetings Pedro --
> 
>  After many a year I have returned to my Linux audio hobby.
>  I've been on the list recently whining about 1.1.3 and jack 0.109.2.
>  I have not programmed in years, but hope to be able to contribute something 
> (not much).
>  The Cmake build looks very nice, BUT,
>  I can't get the debug option to work.
>  CMAKE_C_FLAGS_DEBUG does not seem to make from CMakeLists.txt 
>  to build/src/CMakeFiles/{lib}fluidsynth.dir ..
>  
>  Thanks for any edification --
> 
>  Dave 
  
To configure a debug build, run CMake with the following general argument:
$ cmake -DCMAKE_BUILD_TYPE=Debug
Or use the alternative argument "-Denable-debug=yes"

To see the current compiler flags while compiling:
$ make VERBOSE=1

This will show command lines like this one:
[100%] Building C object src/CMakeFiles/fluidsynth.dir/fluidsynth.c.o
cd /home/pedro/Projects/fluidsynth/build/src && /usr/bin/gcc  -DHAVE_LASH 
-DHAVE_CONFIG_H -g -DDEBUG -Wall -W -Wpointer-arith -Wbad-function-cast 
-Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused-parameter 
-Wno-cast-qual 
[...]

The relevant arguments are "-g -DDEBUG".

Regards,
Pedro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]