[vlc-devel] Re: Compile VLC for debugging

Damien Fouilleul damien.fouilleul at laposte.net
Wed May 23 11:28:57 CEST 2007


that's because 'vlc' is a libtool executable wrapper, bascially a shell 
script. the real executable is located under .libs in the same 
directory. the wrapper is created by libtool in order to help resolving 
library dependencies

Herman Schultz wrote:
> Hi,
>
> I ' ./configure --enable-debug' and then 'make',
> but when I run the final 'vlc', I get  'File format not recognized' error.
>
> $ gdb ./vlc
> GNU gdb 6.6-debian
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "i486-linux-gnu"...
> "/home/herman/src/vlc-trunk/vlc": not in executable format: File 
> format not recognized
>
> can you please help how can I run vlc under debugger?
>
> Thank you.
>
>
>
> On 5/20/07, *Felix Paul Kühne* < fkuehne.videolan at googlemail.com 
> <mailto:fkuehne.videolan at googlemail.com>> wrote:
>
>     Hello
>
>     Am 20.05.2007 um 17:24 schrieb Andrew Stone:
>     > I'd also like to know.
>     >
>     > ./configure --enable-debug --disable-optimizations
>     >
>     > doesn't disable optimizations for some reason.
>     That's correct. The debug flag works as expected (it adds debug info,
>     etc.), but -optimizations is a bit useless, as VLC's code is always
>     being optimised with our current build system without having the
>     possibility to change the level by hand. You can only specifically
>     disable the usage of AltiVec optimisations (for PowerPC CPUs) and
>     additionally, you may optimise for memory usage (--enable-optimize-
>     memory).
>
>
>     > ----- Original Message ----
>     > From: Herman Schultz <herman.schultz at gmail.com
>     <mailto:herman.schultz at gmail.com>>
>
>     > Can you please tell me how can i compile VLC for debugging and how
>     > can I run VLC to run under a debugger?
>
>     We recommend you to use gdb for debugging VLC. Simply running VLC in
>     it, is straight forward: "$ gdb ./vlc" (or similar; depending where
>     your VLC binary is actually located). Using gdb is a bit more
>     complicated, so please have a look at gdb's documentation.
>
>     Regards,
>     Felix
>
>
>     --
>     VideoLAN
>     Felix Paul Kühne
>     Co-Developer of VLC's Mac OS X port
>     http://www.videolan.org/vlc
>     --
>     This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>     To unsubscribe, please read http://developers.videolan.org/lists.html
>
>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list