Hello,
Thanks much for this.
1. Downloaded your zip file
2. Searched for libqtlua-2.0.tar.gz and downloaded it
3. Replaced both CMakeList.txt files using your versions
4. Edited qtluavaluebase.hh
5. I instead have QT 5.3 alpha, i then did
5a mkdir bb
5b cd bb
5c CMAKE_PREFIX_PATH=/Users/sguha/qt/53a/ cmake ../ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release"
5d make -j5
5e sudo make install
And qtlua works!
Open issues:
1. Replacing the lua 5.1 with luajit causes the following and also running
/usr/bin/c++ -O3 -DNDEBUG -Wl,-pagezero_size -Wl,-l10000 -Wl,-image_base -Wl,-l100000000 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/qtlua_app.dir/qtlua.cc.o -o qtlua /Users/sguha/qt/53a/lib/QtWidgets.framework/QtWidgets /Users/sguha/qt/53a/lib/QtCore.framework/QtCore ../../src/libqtlua.dylib /Users/sguha/qt/53a/lib/QtWidgets.framework/QtWidgets /Users/sguha/qt/53a/lib/QtGui.framework/QtGui /Users/sguha/qt/53a/lib/libQt5UiTools.a /Users/sguha/qt/53a/lib/QtCore.framework/QtCore /usr/local/lib/libluajit-5.1.dylib
inside tools/qtlua causes Abort trap:6 error
To do this, i edited the CMakeList.txt file
# Find Lua
# FIND_PACKAGE (Lua51 REQUIRED)
# Find LuaJIT
SET(LUA_EXECUTABLE /usr/local/bin/luajit)
SET(LUA_FOUND true)
SET(LUA_LIBRARIES /usr/local/lib/libluajit-5.1.dylib)
SET(LUA_INCLUDE_DIR /usr/local/include/luajit-2.0)
SET(LUA_VERSION_STRING 5.1)
a) it expects QT4
b) the source files have changed from those in libqtlua-2.0.tar.gz so your CMakeList.txt don't work (i tried editing them but to no avail)
But all said and done, it works! Thanks for your instructions
Saptarshi