Pedro Massobrio wrote:
[]
> c++ -dynamiclib -init _wxWindowsDylibInit -o lib/libwx_gtk_gl-2.3.dylib.1.0.0 
>glcanvas.o -L/sw/lib -lwx_gtk-2.3 -L/sw/lib -L/sw/lib -L/usr/X11R6/lib -lgtk -lgdk 
>-lgmodule -lgthread -lglib -lpthread -ldl -lintl -lXext -lX11 -lm -lpng -ljpeg -ltiff 
>-lfreetype -lz -lpthread -liconv -lm -lGL -lGLU -install_name 
>/sw/lib/libwx_gtk_gl-2.3.dylib.1.0.0
> /usr/bin/libtool: can't locate file for: -lwx_gtk-2.3

OK, found it. 

It's one of those chicken-and-egg packages that you can only compile if
you have it already installed. The reason is a bug in the patch file. It
contains a patch for Makefile.in with the 2 lines

-       $(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o -L$(build_libdir)
@WXCONFIG_LIBS@ $(EXTRALIBS) $(OPENGLLIBS)
+       $(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o -L$(libdir)
@WXCONFIG_LIBS@ $(EXTRALIBS) $(OPENGLLIBS) -install_name 
@PREFIX@/lib/@WX_LIBRARY_NAME_SHARED_
GL@

If you change the -L$(libdir) in the second line back to
-L$(build_libdir), wxgtk builds fine.

-- 
Martin

_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to