Qt Compilation with dbus - qt

I am trying to compile qt with dbus but it gives me the following exception. I have installed the dbus version 1.3 in the system and I am using the following configure command.
Can someone point me as to what should be done.
configure -dbus -I/usr/include/dbus-1.0 -L/usr/local/dbus/lib -ldbus-1 -fast -prefix /home/thwijeth/Software/qt-4.8.1-com-debug -v
thank you in advance.
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
In file included from qdbusconnection_p.h:51,
from qdbusconnection.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbuserror.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qdbusconnection.o] Error 1
In file included from qdbusconnectioninterface.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusconnectioninterface.o] Error 1
In file included from qdbusconnection_p.h:51,
from qdbusintegrator.cpp:33:
qdbus_symbols_p.h:39: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make[1]: *** [qdbusintegrator.o] Error 1
make[1]: Leaving directory `/home/thwijeth/Software/qt-repo/qt-4.8.1-src/src/dbus'
make: *** [sub-dbus-make_default-ordered] Error 2

verify if /usr/include/dbus-1.0 contains a dbus directory, if it does not, verify whether /usr/include/dbus-1.0 contains dbus.h, if so you need to create a symbolic link to dbus-1.0 as dbus
ln -s dbus-1.0 /usr/include/dbus
and then try to rerun configure.

This solution worked fine for me for this missing header. However, I got then a different error fatal error: dbus/dbus-arch-deps.h: No such file. I worked around this error by copying this file from /usr/lib/x86_64-linux-gnu/dbus-1.0/include/dbus to /usr/include/dbus-1.0/dbus/. I don't know why this header was not in the /usr/include directory from the beginning. But this is my hack to the problem.
Regards

Related

Build error when installing qtopcua in qt

I followed this tutorial https://blog.basyskom.com/building-qt-opc-ua-with-open62541/ and at this step "mingw32-make install" I get the follwing errors:
sed -e s,D:/Qt/5.14.2/mingw73_64/qtopcua/build/lib,D:/Qt/5.14.2/mingw73_64/lib,g ../../build/lib/pkgconfig/Qt5OpcUa.pc >
D:/Qt/5.14.2/mingw73_64/lib/pkgconfig/Qt5OpcUa.pc sed: can't read ../../build/lib/pkgconfig/Qt5OpcUa.pc: No such file or directory mingw32-
make[3]: *** [Makefile.Release:5815: install_target] Error 2 mingw32-
make[3]: Leaving directory 'D:/Qt/5.14.2/mingw73_64/qtopcua/build/src/opcua' mingw32-make[2]: ***
[Makefile:55: release-install] Error 2 mingw32-make[2]: Leaving directory 'D:/Qt/5.14.2/mingw73_64/qtopcua/build/src/opcua' mingw32-make[1]: ***
[Makefile:64: sub-opcua-install_subtargets] Error 2 mingw32-make[1]: Leaving directory 'D:/Qt/5.14.2/mingw73_64/qtopcua/build/src' mingw32-make: ***
[Makefile:65: sub-src-install_subtargets] Error 2
I'm using qt 5.14.2 and the branch 5.13 (I tried 5.12, 5.14 and got also errors), windows 10.
You need to copy all missing files manualy to you QDIR.

install OpenCL ICD Loader to ubuntu12 on Zedboard occured error

i want to run opencl on zedboard and now i'm failing to install ocl_icd on ubuntu12
i refer to the page "https://github.com/umaurmi/OPENCL_EXAMPLES_ZEDBOARD/wiki/Installing-POCL-dependencies-on-Ubuntu-linux-based-targets"
"./configure" complete without errors
but "make" cause errors ,show below
root#localhost:~/Downloads/ocl-icd-1.2.1# make
make all-am
make[1]: Entering directory `/root/Downloads/ocl-icd-1.2.1'
CC libOpenCL_la-ocl_icd_loader.lo
CC libOpenCL_la-ocl_icd_loader_gen.lo
In file included from ocl_icd_loader_gen.c:30:0:
ocl_icd_debug.h: In function 'debug_init':
ocl_icd_debug.h:66:5: error: implicit declaration of function 'getenv' [-Werror=implicit-function-declaration]
ocl_icd_debug.h:66:17: error: initialization makes pointer from integer without a cast [-Werror]
ocl_icd_debug.h:68:7: error: implicit declaration of function 'atoi' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [libOpenCL_la-ocl_icd_loader_gen.lo] Error 1
make[1]: Leaving directory `/root/Downloads/ocl-icd-1.2.1'
make: *** [all] Error 2
how can i do for that?

squid make error about libltdlc.la on compile

I encounter a error when I was execute make.
The environment is
1. OS X 10.10.5
2. compiler is gcc ( I am not sure and make command log shows gcc many times)
3. Squid source version 3.5.13
log as this:
./libtool: line 4228: cd: /Users/lorancechen/version: No such file or directory
libtool: link: (cd .libs/libltdlc.lax/dlopen.a && ar x "/Users/lorancechen/version control/_open_source/squid-3.5.13/libltdl/./.libs/dlopen.a")
./libtool: line 1085: cd: .libs/libltdlc.lax/dlopen.a: No such file or directory
make[2]: *** [libltdlc.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
===============================
Besides, I am not find .libs directory with log reminded.
UPDATE
with #Tibidabo help, I find the directory can't contains "." or "-".
Now, another error occurred, such as
basic_ldap_auth.cc:610:13: error: 'ldap_unbind' is deprecated: first deprecated
in OS X 10.10 - use ldap_unbind_ext [-Werror,-Wdeprecated-declarations]
ldap_unbind(ld);
^
I attempt change to ldap_unbind_ext, compiler tips with can't find it or no known.
Please check that the directory does not have any "funny" characters.
I have the same error, I renamed the directory to have only alphanumerical characters by removing ".","-" etc and after that the make worked just fine!

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)

Did anything change in QT_UI_WRAP

I am trying to wrap QT UI in QT5 using a command
QT5_UI_WRAP (ui_forms/file.h ui_file.ui)
I have include QT5Widgets. Somehow this isn't working. Now everywhere I read, this is what needs to be done but there is always an error saying the .h file was not found. I have included the ui_forms folder in include path. Is there anything more that needs to be done with this. ? Am I missing something ?
fatal error: ui_results_view.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/location_recognition.dir/src/results_scene.cpp.o] Error 1
make[1]: *** [CMakeFiles/location_recognition.dir/all] Error 2
make: *** [all] Error 2

Resources