On 19 January 2013 11:48, luafox <
in...@luafox.com> wrote:
> I would really like to try this but unfortunately I have never compiled any
> sources before (one reason for using lua...). But I think that it is not to
> complicated if you know what you have to do. What I did is download the lqt
> sources and I have also installed Qt 4.8.
>
> Would someone be so nice to give me step-by-step instructions on how to
> compile lqt? I do not even know which compilter to use (gcc or Visual
> Studio?).
Let me fire up a Windows XP virtual machine and compile the binaries
for you. But in case you or anyone reading this mailing list wants to
build the binaries from scratch, here is the guide:
1) Choose a compiler - you can either go with gcc through MinGW [1],
or Visual Studio - MinGW is free, there is also Visual Studio Express
[2], which is also free, but I did not try it.
[1]
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/
[2]
http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop#product-express-desktop-details
2) Download the appropriate build of Qt for Windows [3] - look for Qt
4.8.4, not Qt 5.0.0 which was not tested yet. I think the MinGW
package already comes with the compiler so you do not need to install
MinGW in step 1.
[3]
http://qt-project.org/downloads
3) Get CMake [4], which will run the generation process, and install it.
[4]
http://www.cmake.org/cmake/resources/software.html
4) Get Lua (5.1.X) from LuaBinaries [5] or LuaForWindows [6], so that
you have the necessary headers and libraries.
[5]
http://luabinaries.sourceforge.net/download.html
[6]
http://code.google.com/p/luaforwindows/downloads/list
5) Get lqt [7] and extract it somewhere.
[7]
https://github.com/mkottman/lqt/archive/master.zip
6) Enough for dependencies, let's build the thing - fire up command
line and get to the lqt directory. The easiest way is to open it up in
Explorer, click into the address bar, replace all the text with "cmd"
and press Enter.
7) mkdir build; cd build
8) cmake-gui ..
9) CMake will fire up - click Configure and select the compiler. CMake
will then try to find Lua and Qt, and it will most probably fail - no
problem, just find the qmake.exe for Qt (QT_QMAKE_EXECUTABLE) and
point to Lua libraries and headers (LUA_LIBRARIES, LUA_INCLUDE_DIR)
10) Press configure repeatedly until no red items are left, then press Generate.
11) Run the build, either run 'mingw32-make' if using MinGW, or open
the generated Visual Studio project and build it from the IDE. Or run
'cmake --build .'
12) The DLL files generated in the build\lib directory should be
placed somewhere into Lua package.cpath, usually C:\Lua\clibs if you
use LuaForWindows and install it into C:\Lua.