gtk-win32 lib not found by ld

Gildas Bazin gbazin at netcourrier.com
Thu Mar 14 23:55:30 CET 2002


On Thursday 14 March 2002 19:48, Bill Witman wrote:
> Hello,
> 
> I am having a problem cross-compiling VLC for win32. The linker
> is not finding the gtk-win32 libraries.. When I include the gtk
> option in my build, I get the following ld error during make:
> 
>  i386-mingw32msvc-gcc ... <long list of includes>...
> $LIB_GTK $LIB_AC3_SPDIF $LIB_SPU_DEC -lws2_32 -lnetapi32  -Wall -mwindows 
> -Xlinker  --force-exe-suffix 
> /usr/local/cross-tools/.../i386-mingw32msvc/bin/ld: cannot find -lgtk
> 
> It appears that ./configure finds and runs the gtk-win32/bin/gtk-config
> script properly, and Makefile.opts specifies the correct "-L" path for
> the gtk library:
> 
> LIB_GTK = -L/work/app/gtk-win32/lib -lgtk -lgdk -lglib-1.3 -liconv -lintl 
> -lgmodule-1.3
> 
> It seems like ld ... -lgtk should find the gtk-win32/lib per this setup.
> 

It seems really strange indeed.
It looks like you are trying to compile the gtk module as a builtin. Maybe 
you could try to do it as a plugin (there will be less confusion possible 
for ld as less $LIB_* will be included).
The only other thing I would suggest would be to use the strace command to 
see what's happening exactly (try strace -e trace=open)

--
Gildas

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list