Jean-Marc Lasgouttes a écrit :
"Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:

Enrico> On Fri, May 12, 2006 at 05:31:45PM +0200, Jean-Marc Lasgouttes
Enrico> 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?

Enrico> That is going to depend on your build.

Normally, the X11 detecting code (when --without-x is not given) is
supposed to give you the right libraries for qt3-X11. Does it work?

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

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

I have something like that on mandrake 10.1.

Enrico> These last libs are much the same as those required by a
Enrico> native qt3-Win. I get a .prl file in this case but you said
Enrico> you don't have it.
I have a .prl, but it does not contain the libs.

What I had also is some pkgconfig support. I this supposed to exist
always?

fantomas: pkg-config --libs qt-mt
-L/usr/lib/qt3/lib -L/usr/X11R6/lib -lqt-mt -laudio -lXt -lmng -ljpeg -lpng -lz 
-lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext 
-lX11 -lm -lSM -lICE -ldl -lpthread

Enrico> I get a libtool when I compile a native qt3-Win but then I
Enrico> don't know if this is the result of using "g++ -mno-cygwin"
Enrico> together with all cygwin tools (I don't have neither mingw nor
Enrico> msys).

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

What is missing from the .la file in this case?

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

Is this what you called native qt3-Win?

Im am not sure what you are doing but please do not forget that the gcc mingw target work fine so please localize your change to the cygwin platform (including gcc -mno-cygwin).

Abdel.

Reply via email to