Martin Fuchs | 2 Nov 2002 13:36
Picon
Gravatar

Qt 3.1.0

Hi!

I've tried to compile the Qt 3.1.0 beta under cycwin.
Starting with the original version from Trolltech I had to tweak it a bit.
Attached is a diff file with the adjustments.
I could sucessfully compile it in the "-static" mode.
However I have problems to link it as shared object (aka DLL).
For example, when linking the image format plugins, the cygwin ld complains 
about missing functions like QString::upper() and some more...
Although this functions ARE compiled and present in the qstring.o object file. 
The problem is: They are not propperly exported from the DLL. I also found 
the "__declspec dllexport"-declarations in class QString. So - what's the 
problem here - why doesn't export ld this functions?!

Since you have manged to successfully build Qt 2 (and may be 3.0.4 ?), I'm 
asking for some help here.

P.S.:
I've tried to additionally specify "Q_EXPORT" in qstring.cpp. This seems to 
solve the problem for this few functions. But there are much more...

--

-- 
Martin Fuchs
martin-fuchs <at> gmx.net
Attachment (qt310-cygwin.diff): text/x-diff, 7316 bytes
Ralf Habacker | 4 Nov 2002 14:14
Picon
Favicon

RE: Qt 3.1.0

> I've tried to compile the Qt 3.1.0 beta under cycwin.
> Starting with the original version from Trolltech I had to tweak it a bit.
> Attached is a diff file with the adjustments.
> I could sucessfully compile it in the "-static" mode.
> However I have problems to link it as shared object (aka DLL).
> For example, when linking the image format plugins, the cygwin ld complains
> about missing functions like QString::upper() and some more...
> Although this functions ARE compiled and present in the qstring.o
> object file.
> The problem is: They are not propperly exported from the DLL. I also found
> the "__declspec dllexport"-declarations in class QString. So - what's the
> problem here - why doesn't export ld this functions?!
>
> Since you have manged to successfully build Qt 2 (and may be 3.0.4 ?),
> asking for some help here.

qt 3.0.4 is alread ported to cygwin and the easiest way I can see seems to be
like the following:

1. check out the recent qt-3 source from the kde-cygwin cvs area.
2. Create a diff file between the original 3.1.0 and 3.0.4 sources and apply
this diff on top of the checked out sources. (Note: The original 3.0.4 sources
are already in the kde-cygwin cvs area)

BTW: If you have got this running, let us know.

Regards

Ralf
(Continue reading)

Martin Fuchs | 4 Nov 2002 23:18
Picon
Gravatar

Re: Qt 3.1.0

Hi Ralf!

> qt 3.0.4 is alread ported to cygwin and the easiest way I can see seems to
> be like the following:
>
> 1. check out the recent qt-3 source from the kde-cygwin cvs area.
> 2. Create a diff file between the original 3.1.0 and 3.0.4 sources and
> apply this diff on top of the checked out sources. (Note: The original
> 3.0.4 sources are already in the kde-cygwin cvs area)

I get a really big diff file of 35 MB.
May be it's easier to diff between originbal 3.0.4 and kde version?
This one is "only" aproximately 1 MB in size.

But I've got a few problems with the CVS content:
- When trying to compile qmake, uic, ... the compiler complaints, it could not 
find certain include files. Hower, they exist, but the include path is not 
set to their directories.
Do you get the same errors?

- When updating I everytime see errors for the files in directory 
doc/man/man3/. CVS says: "move file ... away". Is this problem on mine or on 
your side?

Tanks,

	Martin

--
Martin Fuchs
(Continue reading)

Fly | 5 Nov 2002 07:01

kvt problem

I installed Cygwin+KDE for the first time on my XP machine. Works great so far.
 
The only problem I have is when I fire up a kvt session I get this:
 
\[\033]0;\w\007
\033[32m\]\u <at> \h \[\033[33m\w\033[0m\]
 
Looks like it's not interpreting ANSI. I've tried various color modes and none seem to work.
 
Any ideas?
 
Fly
fly <at> lockzero.com
Ralf Habacker | 5 Nov 2002 09:23
Picon
Favicon

RE: Qt 3.1.0

> > qt 3.0.4 is alread ported to cygwin and the easiest way I can see seems to
> > be like the following:
> >
> > 1. check out the recent qt-3 source from the kde-cygwin cvs area.
> > 2. Create a diff file between the original 3.1.0 and 3.0.4 sources and
> > apply this diff on top of the checked out sources. (Note: The original
> > 3.0.4 sources are already in the kde-cygwin cvs area)
>
> I get a really big diff file of 35 MB.

That means, qt 3.1 contains many changes

> May be it's easier to diff between originbal 3.0.4 and kde version?
> This one is "only" aproximately 1 MB in size.

Perhaps you can apply this diff file to your 3.1.0 sources

> But I've got a few problems with the CVS content:
> - When trying to compile qmake, uic, ... the compiler complaints, it
> could not
> find certain include files. Hower, they exist, but the include path is not
> set to their directories.
> Do you get the same errors?

Do you have configured with config.cygwin ? Please use it

cd <some_path>/qt-3
export QTDIR=$PWD
./config.cygwin
make

> - When updating I everytime see errors for the files in directory
> 	doc/man/man3/. CVS says: "move file ... away". Is this problem on mine or on
> your side?
>
I have recognized this too, I assume this is a problem with the cvs release on
the server, you can ignore this.

> Tanks,
>
> 	Martin
>
> --
> Martin Fuchs
> martin-fuchs <at> gmx.net
>
>
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin <at> mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-cygwin
>
Ralf Habacker | 5 Nov 2002 09:28
Picon
Favicon

RE: kvt problem

Set
 
$ export SHELL=/bin/bash
 
before starting kde.
 
Regards
Ralf
 
 
 
-----Original Message-----
From: kde-cygwin-admin <at> mail.kde.org [mailto:kde-cygwin-admin <at> mail.kde.org]On Behalf Of Fly
Sent: Tuesday, November 05, 2002 7:01 AM
To: kde-cygwin <at> mail.kde.org
Subject: kvt problem

I installed Cygwin+KDE for the first time on my XP machine. Works great so far.
 
The only problem I have is when I fire up a kvt session I get this:
 
\[\033]0;\w\007
\033[32m\]\u <at> \h \[\033[33m\w\033[0m\]
 
Looks like it's not interpreting ANSI. I've tried various color modes and none seem to work.
 
Any ideas?
 
Fly
fly <at> lockzero.com
Martin Fuchs | 5 Nov 2002 22:48
Picon
Gravatar

Re: Qt 3.1.0

> > > qt 3.0.4 is alread ported to cygwin and the easiest way I can see seems
> > > to be like the following:
> > >
> > > 1. check out the recent qt-3 source from the kde-cygwin cvs area.
> > > 2. Create a diff file between the original 3.1.0 and 3.0.4 sources and
> > > apply this diff on top of the checked out sources. (Note: The original
> > > 3.0.4 sources are already in the kde-cygwin cvs area)
> >
> > I get a really big diff file of 35 MB.
>
> That means, qt 3.1 contains many changes

Yes. For example many comment changes and license headers.
But that's not all.

Trolltech seems to have almost ported it themselve to cygwin.
(At least some changes in the diff from my frist mail are missing to make it 
complete.)

> Do you have configured with config.cygwin ? Please use it
>
> cd <some_path>/qt-3
> export QTDIR=$PWD
> ./config.cygwin
> make

I did'nt. But my main problem was, I should have used 'make -f Makefiel.cvs'.
This generates the missing symbolic links to the header files.
Now it compiles. But it doesn't link. I get the same error like with qt 3.1.0:
ld cannot find library libdl.so. (-> option '-ldl')
However there is no such library in my installation. Do you have such a thing?
Seems, there is a problem in my compiler installation, though it's the 
original cygwin installation?

If I remove the -ldl option, it links the qt-dll.
But not more: uic linked with this library only generates a core dump.

BTW: You don't use configure option -thread?!
I thought, kde would need it.

--

-- 
Martin Fuchs
martin-fuchs <at> gmx.net
Ralf Habacker | 5 Nov 2002 23:20
Picon
Favicon

RE: Qt 3.1.0

> Trolltech seems to have almost ported it themselve to cygwin.
> (At least some changes in the diff from my frist mail are missing to make it
> complete.)
>
Then there should be a platform file mkspecs/cygwin-g++ or so

>
> > Do you have configured with config.cygwin ? Please use it
> >
> > cd <some_path>/qt-3
> > export QTDIR=$PWD
> > ./config.cygwin
> > make
>
> I did'nt.

At least If you like to compile the cygwin port you need to choose the cygwin
platform.

> But my main problem was, I should have used 'make -f Makefiel.cvs'.
> This generates the missing symbolic links to the header files.

> Now it compiles. But it doesn't link. I get the same error like with qt 3.1.0:
> ld cannot find library libdl.so. (-> option '-ldl')
> However there is no such library in my installation. Do you have such a thing?

The sources does not contain the patches we have made for the cygwin port to fix
such issues.

> Seems, there is a problem in my compiler installation, though it's the
> original cygwin installation?
>
> If I remove the -ldl option, it links the qt-dll.
> But not more: uic linked with this library only generates a core dump.
>
>
> BTW: You don't use configure option -thread?!
> I thought, kde would need it.
Currently I have compiled a running qt-3.0.4 binary with activated threading.

Ralf
Martin Fuchs | 5 Nov 2002 23:27
Picon
Gravatar

Re: Qt 3.1.0

> > Trolltech seems to have almost ported it themselve to cygwin.
> > (At least some changes in the diff from my frist mail are missing to make
> > it complete.)
>
> Then there should be a platform file mkspecs/cygwin-g++ or so

Yes there is!
And the configure script accepts cygwin-g++ as a valid platform.

> > Now it compiles. But it doesn't link. I get the same error like with qt
> > 3.1.0: ld cannot find library libdl.so. (-> option '-ldl')
> > However there is no such library in my installation. Do you have such a
> > thing?
>
> The sources does not contain the patches we have made for the cygwin port
> to fix such issues.

Can you please say me, where I could find this patches or a suiting 
installation?

Tanks,

	Martin
Martin Fuchs | 5 Nov 2002 23:39
Picon
Gravatar

Re: Qt 3.1.0

> > The sources does not contain the patches we have made for the cygwin port
> > to fix such issues.
> 
> Can you please say me, where I could find this patches or a suiting 
> installation?

OK, I found the "cygwin-packages" on sourceforge.
I think, that's it?  ;-)

Martin

Gmane