Forum > Linux

[SOLVED] Compiling Qt5 bindings (libQt5Pas.so)

(1/1)

Blaazen:
Hello,

I need help with compiling Qt5 bindings. I follow the ../lcl/interfaces/qt5/cbindings/README.TXT and I got this error:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[v1@localhost cbindings]$ qmake -queryQT_SYSROOT:QT_INSTALL_PREFIX:/usrQT_INSTALL_ARCHDATA:/usr/lib64/qt5QT_INSTALL_DATA:/usr/share/qt5QT_INSTALL_DOCS:/usr/share/doc/packages/qt5QT_INSTALL_HEADERS:/usr/include/qt5QT_INSTALL_LIBS:/usr/lib64QT_INSTALL_LIBEXECS:/usr/libexec/qt5QT_INSTALL_BINS:/usr/lib64/qt5/binQT_INSTALL_TESTS:/usr/testsQT_INSTALL_PLUGINS:/usr/lib64/qt5/pluginsQT_INSTALL_IMPORTS:/usr/lib64/qt5/importsQT_INSTALL_QML:/usr/lib64/qt5/qmlQT_INSTALL_TRANSLATIONS:/usr/share/qt5/translationsQT_INSTALL_CONFIGURATION:/etc/xdgQT_INSTALL_EXAMPLES:/usr/lib64/qt5/examplesQT_INSTALL_DEMOS:/usr/lib64/qt5/examplesQT_HOST_PREFIX:/usrQT_HOST_DATA:/usr/lib64/qt5QT_HOST_BINS:/usr/lib64/qt5/binQT_HOST_LIBS:/usr/lib64QMAKE_SPEC:linux-g++QMAKE_XSPEC:linux-g++QMAKE_VERSION:3.1QT_VERSION:5.15.12[v1@localhost cbindings]$ qmakeProject MESSAGE: Note: This binding version was generated for Qt 5.6.1. Current Qt is 5.15.12Project MESSAGE: Qt documents binary compatibility in each Version Change Note: http://qt.nokia.com/developer/changesProject MESSAGE: Adding x11extras for XOrg platform.Project MESSAGE: Pascal Qt Interface for binding platform: BINUXProject MESSAGE: Install location: /usr/lib64[v1@localhost cbindings]$ makeg++ -c -pipe -Wfatal-errors -O2 -w -D_REENTRANT -fPIC -DBINUX -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/usr/include/qt5 -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -Itmp -I/usr/lib64/qt5/mkspecs/linux-g++ -o tmp/qobject_hook_c.o src/qobject_hook_c.cppIn file included from src/qobject_hook.h:18,                 from src/qobject_hook_c.h:15,                 from src/qobject_hook_c.cpp:12:src/pascalbind.h:18:10: fatal error: qapplication.h: Adresář nebo soubor neexistuje  // = Directory or file not exists   18 | #include <qapplication.h>      |          ^~~~~~~~~~~~~~~~compilation terminated.make: *** [Makefile:2601: tmp/qobject_hook_c.o] Chyba 1[v1@localhost cbindings]$
Are the Qt5 versions too different (5.6 .1 vs 5.15.12)?

Thanks.

zeljko:
I have not such problem. Maybe you compiled libQt5Pas in same directory and there's stalled .qmake.stash file ? Did you install dev packages of qt , so all include files are in /usr/include/qt5 ? Also, there can be few qmakes on disc, check if that one is for qt5 (not for qt4 or qt6).

cdbc:
Hi
I used "qmake-qt5" instead of "qmake" when I had similar errors, it worked like a charm...
HTH
Regards Benny

Blaazen:
I had no dev packages installed. That was it.

Thanks.

Navigation

[0] Message Index

Go to full version