Stephen Harris <[EMAIL PROTECTED]> writes:

> 
> Stephen <at> textonyx /cygdrive/c/cygwin/usr/local/src/qt3
> $ ./configure -platform cygwin-g++-win32 -v -release -static -qt-imgfmt-png 
> etc.
> 
> So no it is not dynamic, I use this copy and paste every time
> which is free of typos. But, I do have Qt3-C++/-bin/-devel all installed.

So that's the problem. I investigated a bit and found that qt3-devel
is the culprit. It installs the following two files:

/etc/profile.d/qt3-devel.csh
/etc/profile.d/qt3-devel.sh

this files are automatically sourced when tcsh or sh are started, and
guess what? They define QTDIR to /usr/lib/qt3.
You need not uninstalling those packages, simply move out of the way
those two files by renaming them as

/etc/profile.d/qt3-devel.csh.no
/etc/profile.d/qt3-devel.sh.no

Really it suffices that the extension be different from .csh or .sh.
Time to update the wiki page, I guess...

> I am not sure anymore what is default and what I chose. Seems to me
> that I also installed some developer tools like bison and flex. So I will
> uninstall these three Qt3s and see what happens. Nope, didn't work.

You have to run "make confclean" and configure again as you have
/usr/lib/qt3 hardcoded in the Makefiles...
Also, make sure that you do not have those files above in /etc/profile.d

> There was no /usr/lib/qt3 before I recently created it to accomodate
> the script error report. I found it here:

Please, don't do that, fix the QTDIR problem, instead.

> $ sh link_includes
> link_includes: line 6: cd: /usr/lib/qt3/include: No such file or directory
> link_includes: line 20: cd: private: No such file or directory
> ln: creating symbolic link `./q*_p.h' to `../../src/*/q*_p.h': No such file 
> or
> directory

That is clearly an evidence that QTDIR is still set to /usr/lib/qt3

> But the current link_includes, cd "$QTDIR/include"
> 
> Maybe my environment is screwed up, I'll try printenv(print environment).
> 
> QTDIR=/usr/lib/qt3
> QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++

As I said above...

> I changed that to (because that was the configure switch)
> QMAKESPEC=/usr/local/src/qt3/mkspecs/cygwin-g++-win32
> and QTDIR=/usr/local/src/qt3
> I used tcsh for setenv QTDIR /usr/local/src/qt3 ?
> I better check the tcsh Path entry, none, I just added that with bash.
> 
> The make completed with a few warnings.

You can safely ignore them.

> ---------------------------------------------------------------
> 
> 2. libdir='/usr/local/qt3/src/lib'
> to libdir='/usr/local/qt-cygwin/lib'
> 
> Does line 2. have a transposition? should be .../src/qt3

Ops, you are right. I'll correct that.

> # Directory that this library needs to be installed in:
> libdir='/cygdrive/c/cygwin/usr/local/src/qt3/lib'
> 
> I found the above ^^^^^^^ and changed it to below, keeping the full path.
> # Directory that this library needs to be installed in:
> libdir='/cygdrive/c/cygwin/usr/local/qt-cygwin/lib'

I see that you use /cygdrive/c to access drive C:. If you issue the
following command (you need to do it only once as the results are
stored in a mount table):

mount -f C: /c

then you can write /c/path instead of /cygdrive/c/path to access the
windows C:\path. Also, you don't need to write
"/cygdrive/c/cygwin/usr/local/qt-cygwin/lib" but simply
"/usr/local/qt-cygwin/lib" because when a path starts with "/" it
refers to the cygwin root which is at /cygdrive/c/cygwin, in your case.

> ----------------------------------------------
> 
> Finished Qt3 and moving on to LyX

hurrah!

> 3. "Apply the following patch (fixes path_prefix handling):"
> SH: Are the changes supposed to be applied as a manual edit?

Yes, it is a so simple patch after all. Simply add the lines marked
with a starting + . As you see in the patch, you should look around
line 95 in the file src/support/environment.C.

Looking forward for a working LyX/Cygwin ;-)

-- 
Enrico




Reply via email to