Compile Qt LZO



Web site : http://qtlzo.sourceforge.net
Source code : https://sourceforge.net/projects/qtlzo/files/
Version : 2015-11-02


Table Of Contents



Qt LZO source directory


Place LZO library

If you are using Unix system, all you need is to compile LZO library in regular way and install into default location.  If you are using Windows, the it is a little bit more complicated.  You will need to pick the correct library of your platform, then place them in the correct directory.

Unix


Compile LZO library under Unix, all you need is to use cmake to configure and then compile, install to the default location.

cmake ..\lzo-2.09
make
make install

Windows


Windows will need different files on different platforms.


x64 Static

rename QtLzo\3rdparty\Windows\x64\Debug\lib\lzo2.lib into lzo2d.lib.

copy lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.

x64 Shared


rename QtLzo\3rdparty\Windows\x64\Debug\lib\lzo2.dll into lzo2d.dll.
rename QtLzo\3rdparty\Windows\x64\Debug\lib\lzo2.lib into lzo2d.lib.

copy lzo2.dll and lzo2d.dll into QtTargetDirectory\bin.

copy lzo2.ilk, lzo2.pdb, lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.


x86 Static


rename QtLzo\3rdparty\Windows\x86\Debug\lib\lzo2.lib into lzo2d.lib.

copy lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.

x86 Shared

rename QtLzo\3rdparty\Windows\x86\Debug\lib\lzo2.dll into lzo2d.dll.
rename QtLzo\3rdparty\Windows\x86\Debug\lib\lzo2.lib into lzo2d.lib.

copy lzo2.dll and lzo2d.dll into QtTargetDirectory\bin.

copy lzo2.ilk, lzo2.pdb, lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.


Compile QtLzo

After placing LZO library, you are ready to compile QtLzo.

You need to use Qt source code to compile QtLzo module, the location of QtLzo module as following :
Normally, compile Qt uses separate source and target directories, QtTargetDirectory is the target directory after Qt compiled, QtSourceDirectory is the Qt source code directory.

After you complete compiled Qt, do not make distclean or make clean, decompress QtLzo, place it into QtSourceDirectory directory, and rename it into QtLzo.

Unix

cd QtLzo
qmake
make
make install

Windows

cd QtLzo
qmake
nmake
nmake install

Or

cd QtLzo
qmake
jom
nmake install

This will do.


Generate QtLzo Qt Document

Move to directory QtLzo\doc\Qt :

cd QtLzo\doc\Qt
qhelpgenerator.exe QtLzo.qhp -o QtLzo.qch

Add document into Qt Creator


Open up Qt Creator, Tool -> Options -> Help -> Document -> Add, select QtLzo.qch.

Add document into Qt Assistant


Open up Qt Assistant, Edit -> Preference -> Document -> Add,select QtLzo.qch.


Neutrino International Inc. 2001~2015