Stephen Harris <[EMAIL PROTECTED]> writes:

> That did the trick, Qt3 configured! You are doing all the hard work!
> 
> There is a Cygwin icon in the upper left-hand corner of the command
> window. I left-click on it and it opens a drop-down menu. Then I
> choose Edit->mark and drag the mouse cursor over all those lines of
> ./configure options. Then I choose Edit->copy and paste those
> lines into Notepad and save the file. If on the off chance a configure
> run should fail, at a later date one can copy line by line from Notepad
> into the Cygwin command window, using Edit->paste to insert those
> lines of configure options. It saves typing for those of us who don't
> like typing. I figure some new users might not know this gadgetry.

If you use an rxvt window (look in the c:\cygwin\bin folder and
double click on rxvt.exe) copy and paste is much simpler.
In a windows application do a copy as usual and then in the rxvt
window simply press the middle mouse button to paste.
Conversely, in an rxvt window simply select what you want to copy
(it is automatically copied in the windows clipboard) and than
do a paste in a windows app.

> Well, I might as well get on with this and deliver a report. The make
> went a ways and then failed with this error message:
> 
> ream.o ./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o 
> ./moc_yac
> c.o ./qfile_unix.o ./qdir_unix.o 
> ./qfileinfo_unix.o     -lkernel32 -luser32 -lgd
> i32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm 
>  -l
> wsock32 -lwinspool -lopengl32
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot 
> open
>  linker script file /usr/lib/qt3/mkspecs/cygwin-g++-win32/i386pe.x-no-rdata: 
> No
> such file or directory
> collect2: ld returned 1 exit status
> make[2]: *** [../../bin/moc] Error 1
> make[2]: Leaving directory `/cygdrive/c/cygwin/usr/local/src/qt3/src/moc'
> make[1]: *** [src-moc] Error 2
> make[1]: Leaving directory `/cygdrive/c/cygwin/usr/local/src/qt3'

This is quite strange. Are you sure that you are not trying to build
a dynamic library? My instructions are for building a static Qt library.
I can't build a dynamic Qt because I only have 256 Mb of memory and
the build stops with an out of memory error. In this case I can't be of
much help...

Check that you use the -static switch to configure.

> SH: Do you have the same version, 3.4.4?

Yes, I have the latest gcc available in cygwin.

> Also I noticed that I don't have a path: /usr/lib/qt3 and I used the 
> default.
> I wasn't sure what file to edit so I copied /cygwin/lib which contains a qt3
> to be under /usr/lib/qt3/mkspecs  though I don't have
> cygwin-g++-win32/i386pe.x-no-rdata
> 
> What I have:
> 
>  Directory of C:\Cygwin\lib\qt3\mkspecs\cygwin-g++
> 
> 01/24/2006  10:21 AM    <DIR>          .
> 01/24/2006  10:21 AM    <DIR>          ..
> 08/11/2005  02:59 PM             2,194 qmake.conf
> 08/11/2005  02:59 PM             2,332 qplatformdefs.h
>                2 File(s)          4,526 bytes

Uh, oh... have you installed the cygwin Qt package by chance?

> But I do have a .../mkspecs/cygwin-g++-win32/i386pe.x.-no-rdat
> C:\Cygwin\usr\local\src\qt3\mkspecs
> 
> That file etc. didn't get copied over to the /lib directory by the script.
> So I made this .../i386pe.x.-no-rdat conform to the script, but no dice.
> Copied what I found to where the script said it looked and couldn't find.

Well, you should need to do no more and no less than what I put on
the wiki, otherwise it means that somenthing is going wrong...

> Next I notice
> C:\Cygwin\usr\lib\gcc\i686-pc-cygwin\3.4.4\include\c++\i686-pc-cygwin
> has no /bin and no ld. It just contains a directory called /bits
> So I made that conform to the script (mkdir bin and copied /bin files).
> Run /usr/bin/make confclean; set the Path and Qtdir again; run 
> link_includes;
> run configure again with all options; edit all: # line; then /usr/bin/make;
> 
> Returned same error:
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot 
> open
>  linker script file /usr/lib/qt3/mkspecs/cygwin-g++-win32/i386pe.x-no-rdata: 
> No
> such file or directory
> collect2: ld returned 1 exit status
> make[2]: *** [../../bin/moc] Error 1
> make[2]: Leaving directory `/cygdrive/c/cygwin/usr/local/src/qt3/src/moc'
> make[1]: *** [src-moc] Error 2
> make[1]: Leaving directory `/cygdrive/c/cygwin/usr/local/src/qt3'

I cannot understand from where that prefix "/usr/lib/qt3" comes from.
If you have installed the official cygwin Qt packages, perhaps this is
a symptom of a sort of clashing.

-- 
Enrico



Reply via email to