libqtlua-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libqtlua-list] Compiling on 10.9 with Qt 5.2


From: Saptarshi Guha
Subject: Re: [Libqtlua-list] Compiling on 10.9 with Qt 5.2
Date: Thu, 17 Apr 2014 00:41:00 -0700

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)


2. Is the github link the new version of libluaqt? ( https://github.com/LuaDist/qtlua )
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



On Thu, Mar 13, 2014 at 8:16 PM, <address@hidden> wrote:
Dear Saptarshi,

I'm using QtLua 2.0 on Mac OS X Mavericks with Qt 5.2 with Xcode 5.0.2.

I did the following in order to build it on this platform:

1) I used the CMake build instead of autotools.

2) I'm using CMake 2.8.12

3) I installed Lua 5.2.2 from source

4) I had to edit the CMakeLists.txt on the root folder and in src folder to add some lines (just a definition and some Qt directives). Please, find enclosed the version of these files I have used.

5) I had to edit qtluavaluebase.hh line 545:
I changed the 'protected' by a 'public' visibility.

6) I used cmake in the command line:
tar xzvf libqtlua-2.0.tar.gz
cd libqtlua-2.0
mkdir build-make
cmake ../ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INCLUDE_PATH:PATH="/MyLibs/include" -DCMAKE_LIBRARY_PATH:PATH="/MyLibs/lib" -DCMAKE_PROGRAM_PATH:PATH="/MyLibs/bin" -DQt5Widgets_DIR:PATH="/MyLibs/lib/cmake/Qt5Widgets" -DQt5Core_DIR:PATH="/MyLibs/lib/cmake/Qt5Core" -DQt5Xml_DIR:PATH="/MyLibs/lib/cmake/Qt5Xml" -DQt5UiTools_DIR:PATH="/MyLibs/lib/cmake/Qt5UiTools" -DCMAKE_INSTALL_PREFIX:PATH="/MyLibs"
make
make install

you should replace /MyLibs by the base path to your libraries.

if CMake is not in your path you will find it on: /Applications/CMake\ 2.8-12.app/Contents/bin/

I hope this could help.
I have just beginning to explorer QtLua and found it very interesting.

Best regards, Gribeiro


Citando Saptarshi Guha <address@hidden>:


This is a QT issue, The file is not present in libqtlua ...

/Users/sguha/qt/53a/lib/QtCore.framework/Headers/qlist.h:53:10: fatal
error: 'initializer_list' file not found
#include <initializer_list>


In qlist.h:53:, there is this include ...

This also doesn't work

./configure CXXFLAGS="-std=c++11" QMAKE_CXXFLAGS="-std=c++11"



On Thu, Mar 13, 2014 at 5:51 AM, Tao <address@hidden> wrote:

I think you should find out if there is  a file "initializer_list" under
 libqtlua-2.0.  maybe it has other name " initializer_list.h"
"initializer_list.hh"
At 2014-03-11 14:59:09,"Saptarshi Guha" <address@hidden> wrote:
>Hello,
>
>Maybe this has been asked. Having installed QT 5.2 to /Users/sguha/
>
>i have done
>
> export PATH=$PATH:/Users/sguha/Qt52/5.2.1/clang_64/bin
>cd libqtlua-2.0
>./configure
>make
>
>and get
>
>In file included from qtluaconsole.cc:22:
>In file included from

>/Users/sguha/Qt52/5.2.1/clang_64/lib/QtGui.framework/Versions/5/Headers/QKeyEvent:1:
>In file included from

>/Users/sguha/Qt52/5.2.1/clang_64/lib/QtGui.framework/Versions/5/Headers/qevent.h:46:
>In file included from

>/Users/sguha/Qt52/5.2.1/clang_64/lib/QtCore.framework/Headers/qobject.h:51:

>/Users/sguha/Qt52/5.2.1/clang_64/lib/QtCore.framework/Headers/qlist.h:53:10:
>fatal error: 'initializer_list' file not found
>#include <initializer_list>
>         ^
>
>What ought I be doing to get this to work?
>Cheers
>Saptarshi
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]