PDA

View Full Version : how to install LGPL version of Qt?



rajesh
21st May 2009, 08:30
how & from where to install LGPL version of Qt.
I want to install LGPL version of Qt4.3.1
can anybody please tell the process to install LGPL version of Qt?:mad:

Lykurg
21st May 2009, 09:11
I want to install LGPL version of Qt4.3.1

Well, you can't! Qt was put under the LGPL since 4.5.0, only this and later one can used under the terms of LGPL!

rajesh
21st May 2009, 09:39
ok, then how to install Qt 4.5 as LGPL ?

Lykurg
21st May 2009, 09:51
simply use the normal installer, there are no different versions for GPL or LGPL. It's just the question how do you license your program and that is independent of the installation.

EDIT: Note that applications published under the LGPL are not allowed to be linked static!

rajesh
21st May 2009, 10:16
but Qt4.3.1 open source code is available but how to use that?

Lykurg
21st May 2009, 11:18
but Qt4.3.1 open source code is available but how to use that?
Yeah, but that is only released under the GPL. So you can build the Qt lib and use it only under the GPL, because Trolltech has said so and that time has not allowed to use it under the LGPL. It only depends what Trolltech/Nokia says (for each release).

So there are only these options:
till 4.5.0: commercial or GPL
since 4.5.0: commercial, GPL or LGPL.

The base is all the same. (Only the commercial version has some gimmicks.)

rajesh
21st May 2009, 11:56
I have downloaded Qt4.3.1 code but unable to build, asking to config QMAKESPACE

Lykurg
21st May 2009, 12:46
I have downloaded Qt4.3.1 code but unable to build, asking to config QMAKESPACE

What look your ./configure ... like? Which compiler do you use? use option -spec...

rajesh
21st May 2009, 13:26
the code I have downloaded was not having configure.exe
then I copied from my license version installed Qt dir.

then I given configure cmd with required option and I got following message:

Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
See the README file for a list of supported operating systems and compilers.

Usage: configure [-buildkey <key>]


this Installing on win Xp , which has VC2005 express edition.

Lykurg
21st May 2009, 14:08
qt-win-opensource-src-4.3.1.zip (e.g. http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/) has a configure exe. So maybe your archive is broken or you have downloaded a binary package.

I am not sure but it could be possible that you have to use the mingw compiler for compiling the qt opensource on windows.

rajesh
22nd May 2009, 09:45
Lykurg,

I downloaded qt-win-opensource-src-4.3.1.zip (from http://ftp.iasi.roedu.net/mirrors/ft...com/qt/source/) and configured
see the result & error reports:



Qt is now configured for building. Just run mingw32-make.
To reconfigure, run mingw32-make confclean and configure.

C:\Qt\4.3.1>mingw32-make
cd src\winmain\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.3.1/src/winmain'
mingw32-make -f Makefile.Debug all
mingw32-make[2]: Entering directory `C:/Qt/4.3.1/src/winmain'
Makefile.Debug:116: *** multiple target patterns. Stop.
mingw32-make[2]: Leaving directory `C:/Qt/4.3.1/src/winmain'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.1/src/winmain'
mingw32-make: *** [sub-winmain-make_default-ordered] Error 2



what is the error here? how to fix?
before that I had installed mingw-5.1.4.

Lykurg
22nd May 2009, 10:15
I guess you are running also a commercial installation (or any other version) of Qt on your machine. Right? Then there might be some settings in your system variables (e.g. QMAKESPEC) which are pointing to that installation (vs instead of mingw). This confusing the build process. More I can't tell, because on that area I also am very inexperienced.

But I would suggest you to use virtual box (http://www.virtualbox.org/) (or any other visualization system) and install the other version there. This is also a good playground to experiment different setting without crashing your working Windows installation.