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
- Compile QtLzo
- Generate QtLzo Qt Document
Qt LZO source directory
- QtLzo
- 3rdparty
- scripts
- sources
- Windows
- x64
- Debug
- dll
- lzo2.dll
- lzo2.def
- lzo2.ilk
- lzo2.lib
- lzo2.pdb
- lib
- Release
- dll
- lzo2.dll
- lzo2.def
- lzo2.ilk
- lzo2.lib
- lzo2.pdb
- lib
- x86
- Debug
- dll
- lzo2.dll
- lzo2.def
- lzo2.ilk
- lzo2.lib
- lzo2.pdb
- lib
- Release
- dll
- lzo2.dll
- lzo2.def
- lzo2.ilk
- lzo2.lib
- lzo2.pdb
- lib
- doc
- HTML
- ODT
- QtLZO.odt
- QtLZO-TW.odt
- QtLZO-CN.odt
- PDF
- QtLZO.pdf
- QtLZO-TW.pdf
- QtLZO-CN.pdf
- Qt
- cn
- examples.html
- index.html
- lzo.html
- others.html
- qtlzo.html
- source.html
- Replacements.txt
- en
- examples.html
- index.html
- lzo.html
- others.html
- qtlzo.html
- source.html
- tw
- examples.html
- index.html
- lzo.html
- others.html
- qtlzo.html
- source.html
- classic.css
- index.html
- Qt.pri
- QtLzo.qhp
- TeX
- examples
- lzotool
- lzotool.cpp
- lzotool.ico
- lzotool.pro
- lzotool.rc
- LZO.js
- examples.pro
- include
- QtLzo
- lzo
- headers.pri
- QtLzo
- qtlzo.hpp
- src
- Embedded
- LZO
- lzo
- LZO.pri
- qtlzo.cpp
- qtlzo.hpp
- ScriptableLzo.cpp
- QtLzo
- qtlzo.cpp
- ScriptableLzo.cpp
- QtLzo.pro
- src.pro
- tests
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
- QtLzo\3rdparty\Windows\x64\Debug\lib\lzo2.lib
- QtLzo\3rdparty\Windows\x64\Release\lib\lzo2.lib
rename QtLzo\3rdparty\Windows\x64\Debug\lib\lzo2.lib into lzo2d.lib.
copy lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.
x64 Shared
- QtLzo\3rdparty\Windows\x64\Debug\dll\lzo2.dll
- QtLzo\3rdparty\Windows\x64\Debug\dll\lzo2.lib
- QtLzo\3rdparty\Windows\x64\Debug\dll\lzo2.ilk
- QtLzo\3rdparty\Windows\x64\Debug\dll\lzo2.pdb
- QtLzo\3rdparty\Windows\x64\Release\dll\lzo2.dll
- QtLzo\3rdparty\Windows\x64\Release\dll\lzo2.lib
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
- QtLzo\3rdparty\Windows\x86\Debug\lib\lzo2.lib
- QtLzo\3rdparty\Windows\x86\Release\lib\lzo2.lib
rename QtLzo\3rdparty\Windows\x86\Debug\lib\lzo2.lib into lzo2d.lib.
copy lzo2.lib and lzo2d.lib into QtTargetDirectory\lib.
x86 Shared
- QtLzo\3rdparty\Windows\x86\Debug\dll\lzo2.dll
- QtLzo\3rdparty\Windows\x86\Debug\dll\lzo2.lib
- QtLzo\3rdparty\Windows\x86\Debug\dll\lzo2.ilk
- QtLzo\3rdparty\Windows\x86\Debug\dll\lzo2.pdb
- QtLzo\3rdparty\Windows\x86\Release\dll\lzo2.dll
- QtLzo\3rdparty\Windows\x86\Release\dll\lzo2.lib
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 :
- QtTargetDirectory
- QtSourceDirectory
- QtLzo
- qtbase
- gnuwin32
- ...
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