PyQt make error while compiling the source code - qt

I want to install PyQt for Qt 4.7.4 and i downloaded the packages SIP and PyQt from riverbankcomputing.co.uk.
I configured and installed SIP successfully and configured PyQt successfully. But when i ran make in the terminal i got this error:
/home/user/Desktop/PyQt-x11-gpl-4.8.5/QtCore/sipQtCoreQThread.cpp: In function ‘PyObject* meth_QThread_currentThreadId(PyObject*, PyObject*)’:
/home/user/Desktop/PyQt-x11-gpl-4.8.5/QtCore/sipQtCoreQThread.cpp:325:50: error: invalid conversion from ‘void*’ to ‘long unsigned int’
/home/user/Desktop/PyQt-x11-gpl-4.8.5/QtCore/sipQtCoreQThread.cpp:325:50: error: initializing argument 1 of ‘PyObject* PyLong_FromUnsignedLong(long unsigned int)’
make[1]: *** [sipQtCoreQThread.o] Error 1
make[1]: Leaving directory `/home/user/Desktop/PyQt-x11-gpl-4.8.5/QtCore'
make: *** [all] Error 2
The full log is here: http://www.text-upload.com/read.php?id=176672&c=5376703
Can you help me fix this error, please? Thank you!

According to the build log, PyQt's configure script has found and is using the Simulator/embedded variant of Qt, and not the Desktop variant.
Try passing the path to qmake of the Desktop variant to the configure script:
python ./configure.py -q /home/user/.QtSDK/Desktop/Qt/4.7.4/gcc/bin/qmake

There are two choices
python ./configure.py -q /home/user/.QtSDK/Desktop/Qt/4.7.4/gcc/bin/qmake
or
python ./configure.py -q /home/user/.QtSDK/Simulator/Qt/gcc/bin/qmake
second will exit with some error code.
I'm trying first string right now.

Related

qt5: Error class QTextBrowser’ has no member named ‘setMarkdown

I am trying to build a code from github but it gives error when the run the command sudo make. Please help. Also my qmake --version is
Using Qt version 5.14.2 in /opt/qt514/lib```
AboutDialog.cc
/home/admin/delegate/Degate/src/GUI/Dialog/AboutDialog.cc: In constructor ‘degate::AboutDialog::AboutDialog(QWidget*)’:
/home/admin/delegate/Degate/src/GUI/Dialog/AboutDialog.cc:92:19: error: ‘class QTextBrowser’ has no member named ‘setMarkdown’
92 | changelog.setMarkdown(in_changelog.readAll());
| ^~~~~~~~~~~
make[2]: *** [CMakeFiles/DegateCore.dir/build.make:3419: CMakeFiles/DegateCore.dir/src/GUI/Dialog/AboutDialog.cc.o] Error 1
make[2]: Leaving directory '/home/admin/delegate/Degate/build'
make[1]: *** [CMakeFiles/Makefile2:132: CMakeFiles/DegateCore.dir/all] Error 2
make[1]: Leaving directory '/home/admin/delegate/Degate/build'
make: *** [Makefile:133: all] Error 2
This was introduced in Qt 5.14 according to this ticket.
So, you are most likely using an older version. I would, in any case, advise you to use at least Qt 5.15. Even that version is only getting P0/P1 fixes at this point in time, let alone older versions. It is also an LTS version.
Degate has also got a bug that they should set the required Qt version in their project so that there are no surprises for their consumers.

basic_client which is built with Makefile BusAttachment::Connect failed

I just built standard core 15.09a on linux and run sample apps basic_client.
This one built by scons.
bin/samples/basic_client works fine.
However, I built cpp/samples/basic/basic_client with Makefile.
It does not work. It shows an error
"0.232 ****** ERROR ALLJOYN external ...e/src/BusAttachment.cc:560 | BusAttachment::Connect failed: ER_OS_ERROR
BusAttachment::Connect('') failed.".
So, I launched the bin/allhoyn-daemon, then no error occurred.
What is difference between scon and Makefile version?
Additionally, where can I get the information of application under the bin directory?
I searched the web-site of AllSeen and couldn't find any info.
As i know, the error that you got when build with Makefile happens because basic_client hasn't alljoyn router inside, with scons it runs fine because it compiles with BR=on and some flags:
-lajrouter -lBundledRouter.o -lssl -lcrypto
For more infomation, visit: here

v-play installation - Cant deploy on desktop and device

I’ve just installed v-play but when i compile to desktop i get error :-1: error: cannot find -lGL and exits.
Then if i compile to android it will compile and install but the it never successfully opens the app and it exits on deployment.
These are the warnings i get :
Warnings while parsing QML type information of /home/theguy/V-Play/5.5/android_armv5/qml/QtCanvas3D:
/home/theguy/V-Play/5.5/android_armv5/qml/QtCanvas3D/plugins.qmltypes:1:24: Reading only version 1.1 parts.
/home/theguy/V-Play/5.5/android_armv5/qml/QtCanvas3D/plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.
Warnings while parsing QML type information of /home/theguy/V-Play/5.5/gcc_64/qml/QtWebSockets:
/home/theguy/V-Play/5.5/gcc_64/qml/QtWebSockets/plugins.qmltypes:1:24: Reading only version 1.1 parts.
/home/theguy/V-Play/5.5/gcc_64/qml/QtWebSockets/plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.
Warnings while parsing QML type information of /home/theguy/V-Play/5.5/gcc_64/qml/QtCanvas3D:
/home/theguy/V-Play/5.5/gcc_64/qml/QtCanvas3D/plugins.qmltypes:1:24: Reading only version 1.1 parts.
/home/theguy/V-Play/5.5/gcc_64/qml/QtCanvas3D/plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.
And these are the compile issues I get:
15:03:42: Packaging error: Command “/home/theguy/Android/Sdk/platform-tools/adb -s 9cc172fdedea pull /system/bin/sh: readlink: not found /home/theguy/Desktop/Projects/v-play/ConverseLanguages/build-ConverseLanguages-Android_for_armeabi_GCC_4_9_Qt_5_5_0-Release/app_process” failed.Exit code: 1
15:03:42: Package deploy: Failed to pull “/system/bin/sh: readlink: not found” to “/home/theguy/Desktop/Projects/v-play/ConverseLanguages/build-ConverseLanguages-Android_for_armeabi_GCC_4_9_Qt_5_5_0-Release/app_process”.
15:03:42: Package deploy: Running command “/home/theguy/Android/Sdk/platform-tools/adb -s 9cc172fdedea pull /system/lib/libc.so /home/theguy/Desktop/Projects/v-play/ConverseLanguages/build-ConverseLanguages-Android_for_armeabi_GCC_4_9_Qt_5_5_0-Release/libc.so”.
Error while building/deploying project ConverseLanguages (kit: Android for armeabi (GCC 4.9, Qt 5.5.0))
When executing step “Deploy to Android device”
please see here for a reply: https://v-play.net/developers/forums/t/installation-problem-error-cannot-find-lgl/
Cheers, Chris

Installation of unimcrp on Asterisk

As per the instructions given in url below:
https://code.google.com/p/unimrcp/wiki/asteriskUniMRCP
[root#localhost uni-ast-package-1.0.0]# ls
asterisk get-answer.sh modules-install.sh
asterisk-install.sh INSTALL unimrcp
asterisk-unimrcp modules unimrcp-install.sh
./asterisk--install.sh
./unimrcp-install.sh
are successful.
But while running the script ./modules-install.sh
It displays the following error:
/usr/include/errno.h:55: error: declaration for parameter
âprogram_invocation_nameâ but no such parameter
/usr/include/bits/errno.h:47: error: declaration for parameter
â__errno_locationâ but no such parameter
res_speech_unimrcp.c:1433: error: expected â{â at end of input
make[1]: *** [res_speech_unimrcp.lo] Error 1
make[1]: Leaving directory
/Akatsuki/uni-ast-package-1.0.0/modules/res-speech-unimrcp'
make: *** [install-recursive] Error 1
Please check INSTALL document in directory. Very likly it is for other asterisk version.
Anyway this is not supported module and all question have be addressed to developers of this module(person who do install have be expert)

Qt driver for PostgreSQL compilation error

When compiling psql with following command:
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Program Files\PostgreSQL\8.3\include" "LIBS+=D:\Program Files\PostgreSQL\8.3\lib\libpq.lib" psql.pro
make
I got following message:
... g++: Files\PostgreSQL\8.3\lib -Lc:\Qt\2010.05\qt\lib tmp\obj\debug_shared\qsqlpsqld_resource_res.o D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib -lQtSqld4 -lQtCored4 : Invalid argument
make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlpsqld4.dll] Error 1
make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/psql'
make: *** [debug-all] Error 2
Replacement D:\Program Files -> D:\Progra~1 doesn't change anything. How to solve that problem?
Try using single quotes instead of double quotes in the qmake invocation. If that fails, try using forward slashes instead of backslashes in the path.
Commands should be:
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Progra~1\PostgreSQL\8.3\include" "LIBS+=D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib" psql.pro
then it is needed to manually fix Makefiles (Debug and Release) to exclude all occurencies of space in dirname, then run
make

Resources