On Fri, May 12, 2006 at 05:31:45PM +0200, Jean-Marc Lasgouttes wrote:

> I do not ignore your patch, but I want to think more about it. Shall
> we add special guessing code and hope it will be enough (there may
> also be special qmake .prl file code, for example)?
> 
> What are the libraries that are missing if you do not do that?

That is going to depend on your build.

This is the relevant .la line in the official cygwin qt3:

dependency_libs=' -L/usr/X11R6/lib -lGL -lXmu -lXi -lXrender -lXrandr -lXcursor 
-lXft -lfreetype -lfontconfig -lXext -lX11 -lSM -lICE -lresolv -lz -lpthread'

This is what I get with my own built qt3-X11:

dependency_libs='-L/usr/X11R6/lib -lXrender -lXrandr -lXcursor -lXft -lfreetype 
-lfontconfig -lXext -lX11 '

And here are the dependency libs with my own built qt3-Win:

dependency_libs=' -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32
-lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool -lopengl32 '

These last libs are much the same as those required by a native qt3-Win.
I get a .prl file in this case but you said you don't have it.
I get a libtool when I compile a native qt3-Win but then I don't know
if this is the result of using "g++ -mno-cygwin" together with all
cygwin tools (I don't have neither mingw nor msys).

I tried the patch with a native qt3-Win, too, and it didn't hurt, but
didn't do the trick either, in the sense that I still had to specify
the required libraries in LDFLAGS.

IMO, the mingw case is an hopeless one and LDFLAGS should be used in
any case.

-- 
Enrico

Reply via email to