[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libqtlua-list] Compiling on 10.9 with Qt 5.2
From: |
gribeiro |
Subject: |
Re: [Libqtlua-list] Compiling on 10.9 with Qt 5.2 |
Date: |
Fri, 14 Mar 2014 00:16:51 -0300 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.6) |
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.
libqtlua-2.0-cmake-fix.tar.gz
Description: GNU Zip compressed data