torch / qtlua

Lua interface to QT library
Other
206 stars 73 forks source link

Is qtlua QT5 compatible? #36

Closed archenroot closed 7 years ago

archenroot commented 7 years ago

Hi guys, I am on Gentoo system with KDE on dev-qt/qtcore-5.6.2-r1 while pulled olso some qt4 libraries for older applications, but I am failing to build on QUiLoader missing, I checked also QStringList and these are on my system:

ares torch-qtlua # locate QStringList
/usr/include/qt4/QtCore/QStringList
/usr/include/qt4/QtCore/QStringListIterator
/usr/include/qt4/QtGui/QStringListModel
/usr/include/qt5/QtCore/QStringList
/usr/include/qt5/QtCore/QStringListIterator
/usr/include/qt5/QtCore/QStringListModel
ares torch-qtlua # locate QUiLoader
/usr/include/qt5/QtUiTools/QUiLoader

Failing with this: cd /tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999_build/packages/qtsvg && /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_XML_LIB -Dlibqtsvg_EXPORTS -I/tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999 -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtCore -I/tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999/packages/qtsvg -I/tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999_build/packages/qtsvg -I/tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999/qtlua -I/tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999_build/qtlua -DNDEBUG -march=broadwell -O2 -pipe -fPIC -o CMakeFiles/libqtsvg.dir/qtsvg.cpp.o -c /tmp/portage/dev-lua/torch-qtlua-9999/work/torch-qtlua-9999/packages/qtsvg/qtsvg.cpp

So all the libraries are taken from qt4.

i will pull the qt4 as well and see if that will help.

Ladislav

archenroot commented 7 years ago

Ok I pulled in dev-qt/designer-4.8.6-r1::gentoo package, this is using slotting, so no version conflict should occur and I can have multiple versions installed.

Now the file appears:

ares dev # equery f =dev-qt/designer-4.8.6-r1 |grep QUiLoader
/usr/include/qt4/QtUiTools/QUiLoader

I had additionally pull in: =dev-qt/qtsvg-4.8.6-r1

And now all looks good.