Errors in qvariant.h during compilation - qt

I am getting a variety of compilation errors relating to qvariant when compiling my program. I have not modified the Qt libs/source, so why am I getting these errors? (What do they mean)
/Qt/5.9.9/gcc_64/mkspecs/linux-g++ -o tl_ansi_codes.o /mydir/tl_ansi_formatting/tl_ansi_codes.cpp
In file included from /opt/Qt/5.9.9/gcc_64/include/QtCore/qlocale.h:43,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/qtextstream.h:46,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/qdebug.h:49,
from /opt/Qt/5.9.9/gcc_64/include/QtCore/QDebug:1,
from /mydir/tl_ansi_formatting/tl_ansi_codes.cpp:9:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:265:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
265 | { other.d = Private(); }
| ^
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:380:16: note: because ‘QVariant::Private’ has user-provided ‘QVariant::Private::Private(const QVariant::Private&)’
380 | inline Private(const Private &other) Q_DECL_NOTHROW
| ^~~~~~~
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -Dproject_vls=1 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I/mydir//project -I. -
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
/opt/Qt/5.9.9/gcc_64/include/QtCore/qvariant.h:265:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
265 | { other.d = Private(); }

The best solution available is just to ignore it, Or upgrade to qt6.
To Ignore the warning, just add
QMAKE_CXXFLAGS += -Wno-deprecated-copy
In all of your .pro files.
This will ignore all the deprecated-copy warning; you can also ignore for debug or release build using QMAKE_CXXFLAGS_DEBUG or QMAKE_CXXFLAGS_RELEASE.

Related

icx(Intel® oneAPI DPC++/C++ Compiler) don't generate files with a.o extension which use the ELF format?

when I use ifx to link object which is generate by icx, it report some error.as follows
ifx -O3 -ffast-math -nofor-main -DSPEC_CPU_LP64 flincs.o fsettle.fppized.o fshake.o innerf.o flincsd.o fsettled.fppized.o fshaked.o 3dview.o atomprop.o binio.o block_tx.o bondfree.o buffer.o calcgrid.o calch.o calcmu.o calcvir.o clincs.o comlib.o confio.o constr.o copyrite.o coupling.o csettle.o disre.o do_fit.o do_gct.o dummies.o ebin.o edsam.o enxio.o ewald.o ewald_util.o f77_wrappers.o fatal.o ffscanf.o fftgrid.o filenm.o fnbf.o force.o futil.o gbutil.o gctio.o genalg.o ghat.o glaasje.o gmx_system_xdr.o gmxfio.o ifunc.o index.o init.o init_sh.o innerc.o invblock.o ionize.o libxdrf.o macros.o main.o maths.o matio.o md.o mdatom.o mdebin.o mdrun.o memdump.o minimize.o mshift.o mvdata.o mvxvf.o names.o network.o nrama.o nrjac.o nrnb.o ns.o nsb.o nsgrid.o orires.o pargs.o pbc.o pdbio.o pme.o poisson.o pppm.o princ.o psgather.o pssolve.o psspread.o pull.o pullinit.o pullio.o pullutil.o rando.o random.o rbin.o rdgroup.o readinp.o relax_sh.o replace.o rmpbc.o shakef.o shift_util.o sim_util.o smalloc.o sortwater.o splittop.o stat.o statutil.o strdb.o string2.o symtab.o synclib.o tables.o tgroup.o tpxio.o trnio.o trxio.o txtdump.o typedefs.o update.o vcm.o vec.o viewit.o wgms.o wman.o wnblist.o writeps.o xdrd.o xtcio.o xutils.o xvgr.o -lm -o gromacs
3dview.o: file not recognized: file format not recognized
I find the object generate by icx is not ELF Format.
root#lanlanxiyiji-PC:/home/speccpu2006-v1.0.1/benchspec/CPU2006/400.perlbench/run/build_base_x86_64_linux.0000# icx -c -o 3dview.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -std=gnu89 -flto -O3 -ffast-math -funroll-loops -fomit-frame-pointer -ftree-vectorize -fprefetch-loop-arrays -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 -include math.h -fno-strict-aliasing 3dview.c
icx: warning: optimization flag '-fprefetch-loop-arrays' is not supported [-Wignored-optimization-argument]
root#lanlanxiyiji-PC:/home/speccpu2006-v1.0.1/benchspec/CPU2006/400.perlbench/run/build_base_x86_64_linux.0000# readelf -h 3dview.o
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
icx version
Intel(R) oneAPI DPC++/C++ Compiler 2023.0.0 (2023.0.0.20221201)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm
Configuration file: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../bin/icx.cfg
why ifx can't recoginzed it? I try that use ifort to link ,it works.
how to generate ELF Format use icx?
I have found the result.
Because compile with -flto will not generate the object which use the ELF format.
I add -flto with ifx to fix that. it works.

Installing Fuzz. Error: exp ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘x_slot’ected

I am installing "Fuzz typechecker Z" in Ubuntu 20.04 https://spivey.oriel.ox.ac.uk/corner/Fuzz_typechecker_for_Z
However, when I do make I get the following errors. Any idea where should I start?
make -C src all
make[1]: Entering directory '/home/evochecker/Downloads/fuzz/src'
gcc -Wall -c -DDEBUG -DANSI -DASSUME zparse.c
In file included from zparse.y:88:
absyn.h:4:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘x_slot’
absyn.h:51: warning: "x_params" redefined
absyn.h:19: note: this is the location of the previous definition
absyn.h:76: warning: "x_arg" redefined
absyn.h:64: note: this is the location of the previous definition
zparse.y: In function ‘sexp_fix’:
zparse.y:721:14: error: expected identifier before ‘=’ token
721 | a->x_body = sexp_fix(a->x_body);
| ^
zparse.y:728:19: error: expected identifier before ‘;’ token
728 | return a->x_arg;
| ^
zparse.y:732:13: error: expected identifier before ‘=’ token
732 | a->x_arg = sexp_fix(a->x_arg);
| ^
zparse.y:739:14: error: expected identifier before ‘=’ token
739 | a->x_arg2 = sexp_fix(a->x_arg2);
| ^
zparse.y: In function ‘pred_fix’:
zparse.y:760:14: error: expected identifier before ‘=’ token
760 | a->x_body = pred_fix(a->x_body);
| ^
zparse.y:766:14: error: expected identifier before ‘=’ token
766 | a->x_body = pred_fix(a->x_body);
| ^
zparse.y:778:16: error: expected identifier before ‘->’ token
778 | if (a->x_arg->x_kind == SEXPR)
| ^~
zparse.y:779:18: error: expected identifier before ‘=’ token
779 | a->x_arg = a->x_arg->x_arg;
| ^
zparse.y:781:16: error: expected identifier before ‘->’ token
781 | if (a->x_arg->x_kind != SREF) {
| ^~
zparse.y:791:13: error: expected identifier before ‘=’ token
791 | a->x_arg = pred_fix(a->x_arg);
| ^
zparse.y:796:14: error: expected identifier before ‘=’ token
796 | a->x_arg2 = pred_fix(a->x_arg2);
| ^
make[1]: *** [Makefile:75: zparse.o] Error 1
make[1]: Leaving directory '/home/evochecker/Downloads/fuzz/src'
make: *** [Makefile:55: src] Error 2
I know this may be a very specific question related to Fuzz, so thanks for any help.
Here are the list of files (zparse.c, zparse.h, absyn.h)
https://github.com/Spivoxity/fuzz/tree/master/src
I saw this question while perusing other 'z-notation' questions. I am using Ubuntu 22.04 and tried downloading and compiling the utility and did not run into any problems. Here is what I did:
git clone https://github.com/Spivoxity/fuzz.git
cd fuzz/
./configure
make
Here is the output:
make[1]: Entering directory '/tmp/fuzz/src'
bison -dv -y zparse.y -o zparse.c
gawk -f absyn.k absyn.x >absyn.h
gcc -Wall -c -DDEBUG -DANSI -DASSUME zparse.c
flex -ozscan.c zscan.l
gcc -Wall -c -DDEBUG -DANSI -DASSUME -DYY_NO_UNPUT -DYY_NO_INPUT zscan.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME -DLIBDIR=\"/usr/local/lib\" -Dfuzz_version=\"1.2.1\" main.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME spec.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME type.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME frame.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME dict.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME sched.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME pretty.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME error.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME expr.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME alloc.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME unify.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME schema.c
gcc -Wall -c -DDEBUG -DANSI -DASSUME dump.c
gcc -o fuzz zparse.o zscan.o main.o spec.o type.o frame.o dict.o sched.o pretty.o error.o expr.o alloc.o unify.o schema.o dump.o
/usr/bin/cpp -DDEBUG -DANSI -DASSUME symdef.x >symdef.i
gawk -f fuzzlib.k output=fuzzlib fuzzlib.x >fuzzlib
gawk -f fuzzlib.k output=minilib minilib.x >minilib
make[1]: Leaving directory '/tmp/fuzz/src'

Can not make qmqtt

I had previously installed qt4. Now, I have installed QT5.7. I am trying to compile the qmqtt project to generate the libqmqtt file. Qmake is fine. But make gives the following error.
Link:
https://github.com/emqtt/qmqtt
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt -I../../include -I../../include/qmqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0 -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0/qmqtt -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc -I. -o .obj/qmqtt_routedmessage.o /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_routedmessage.cpp
g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt -I../../include -I../../include/qmqtt -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0 -I/home/sm/qt_applications/qmqtt/qmqtt-master/include/qmqtt/1.0.0/qmqtt -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc -I. -o .obj/qmqtt_router.o /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp
In file included from /usr/include/qt5/QtCore/qobjectdefs.h:47:0,
from /usr/include/qt5/QtCore/qobject.h:48,
from /usr/include/qt5/QtCore/QObject:1,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.h:38,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:33:
/usr/include/qt5/QtCore/qobjectdefs_impl.h: In instantiation of ‘struct QtPrivate::AreArgumentsCompatible<QMQTT::Message, QMQTT::Message>’:
/usr/include/qt5/QtCore/qobjectdefs_impl.h:599:21: required from ‘struct QtPrivate::CheckCompatibleArguments<QtPrivate::List<const QMQTT::Message&>, QtPrivate::List<const QMQTT::Message&> >’
/usr/include/qt5/QtCore/qobject.h:241:80: required from ‘static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QMQTT::Client::*)(const QMQTT::Message&); Func2 = void (QMQTT::RouteSubscription::*)(const QMQTT::Message&); typename QtPrivate::FunctionPointer<Func>::Object = QMQTT::Client; typename QtPrivate::FunctionPointer<Func2>::Object = QMQTT::RouteSubscription]’
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:52:87: required from here
/usr/include/qt5/QtCore/qobjectdefs_impl.h:573:42: error: invalid use of incomplete type ‘class QMQTT::Message’
enum { value = sizeof(test(dummy())) == sizeof(int) };
^
In file included from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:35:0:
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_client.h:95:7: error: forward declaration of ‘class QMQTT::Message’
class Message;
^
In file included from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_global.h:35:0,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.h:36,
from /home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:33:
/usr/include/qt5/QtCore/qobject.h: In instantiation of ‘static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QMQTT::Client::*)(const QMQTT::Message&); Func2 = void (QMQTT::RouteSubscription::*)(const QMQTT::Message&); typename QtPrivate::FunctionPointer<Func>::Object = QMQTT::Client; typename QtPrivate::FunctionPointer<Func2>::Object = QMQTT::RouteSubscription]’:
/home/sm/qt_applications/qmqtt/qmqtt-master/src/mqtt/qmqtt_router.cpp:52:87: required from here
/usr/include/qt5/QtCore/qglobal.h:669:47: error: static assertion failed: Signal and slot arguments are not compatible.
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^
/usr/include/qt5/QtCore/qobject.h:228:9: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
Q_STATIC_ASSERT_X((QtPrivate::CheckCompatibleArguments<typename SignalType::Arguments, typename SlotType::Arguments>::value),
^
make[2]: *** [.obj/qmqtt_router.o] Error 1
make[2]: Leaving directory `/home/sm/qt_applications/qmqtt/qmqtt-master/build/src/mqtt'
make[1]: *** [sub-mqtt-make_first] Error 2
make[1]: Leaving directory `/home/sm/qt_applications/qmqtt/qmqtt-master/build/src'
make: *** [sub-src-make_first] Error 2
Spent a lot of time. After compiling by Qt 5.7.0, there was no Dll-files in the folder "release". I looking at the compilation log and I saw that there was created the folder "lib" in the root of the disk with the project, there I found Dll. But work with DLL allows you to work on Windows. I need on Android.
In github someone suggests just use it as plain code.
I rewrite it to "plain code" and made example-project. It is here. There is two folders: project and mosquitto for using mqtt on localhost

XInternAtom and XGetSelectionOwner was not declared in this scope

I'm building Qt 5.5.0 on rhel 6.7, and building it with -qt-xcb. I run in to the following issues
g++ -c -include .pch/Qt5X11Extras_debug -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_X11EXTRAS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/root/Perforce/t_murup_Panch-Linux_4292/external/openssl/1.0.2h/include_linux -I../../include -I../../include/QtX11Extras -I/home/panch/Downloads/build/Qt/5.5.0/qtx11extras/include/QtX11Extras/5.5.0 -I/home/panch/Downloads/build/Qt/5.5.0/qtx11extras/include/QtX11Extras/5.5.0/QtX11Extras -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/include/QtGui/5.5.0 -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/include/QtGui/5.5.0/QtGui -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/include -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/include/QtGui -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/panch/Downloads/build/Qt/5.5.0/qtbase/mkspecs/linux-g++ -o .obj/qx11info_x11.o qx11info_x11.cpp
qx11info_x11.cpp: In static member function ‘static bool QX11Info::isCompositingManagerRunning()’:
**qx11info_x11.cpp:386:108: error: ‘XInternAtom’ was not declared in this scope
if (XGetSelectionOwner(QX11Info::display(), XInternAtom(QX11Info::display(), "_NET_WM_CM_S0", false)))**
^
**qx11info_x11.cpp:386:109: error: ‘XGetSelectionOwner’ was not declared in this scope
if (XGetSelectionOwner(QX11Info::display(), XInternAtom(QX11Info::display(), "_NET_WM_CM_S0", false)))**.
Can somebody explain me to get rid of this issue. I tried installing the rpm packages xorg-x11-server-devel-1.17.4-9.el6.centos.x86_64.rpm, xorg-x11-server-common-1.17.4-9.el6.centos.x86_64.rpm but that did not help.

Make error when trying to build QT app for an "Open Embedded2 device

I am getting this error when trying to build my app:
make: Wl,-rpath-link,: Command not found
My Makefile looks like this, which is a generated file useing qmake program in the OE toolchain.
#############################################################################
# Makefile for building: app_qt
# Generated by qmake (2.01a) (Qt 4.8.1) on: Tue Jun 26 17:49:26 2012
# Project: app_qt.pro
# Template: app
# Command: /usr/local/oecore-i686/sysroots/i686-oesdk-linux/usr/bin/qmake -o Makefile ap_qt.pro
#############################################################################
####### Compiler, tools and options
CC = $(OE_QMAKE_CC)
CXX = $(OE_QMAKE_CXX)
DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS = -pipe -pipe $(OE_QMAKE_CFLAGS) -fpermissive -O2 -Wall -W -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -pipe -pipe $(OE_QMAKE_CFLAGS) $(OE_QMAKE_CXXFLAGS) -O2 -O2 -Wall -W -Wall -W -Wall -W -D_REENTRANT $(DEFINES)
INCPATH = -I/usr/local/oecore-i686/sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I. -I$(OE_QMAKE_INCDIR_QT)/QtCore -I$(OE_QMAKE_INCDIR_QT)/QtGui -I$(OE_QMAKE_INCDIR_QT) -I. -Isrc -Isrc/screens -Isrc/Lists -Isrc/widgets -Isrc/FileIO -Isrc/communication -IQSerialDevice/src -I.
LINK = $(OE_QMAKE_LINK)
LFLAGS = $(OE_QMAKE_LDFLAGS) -Wl,-rpath-link,$(OE_QMAKE_LIBDIR_QT)
LIBS = $(SUBLIBS) -L$(OE_QMAKE_LIBDIR_QT) -lQtGuiE -lQtCoreE -lpthread
AR = $(OE_QMAKE_AR) cqs
RANLIB =
QMAKE = /usr/local/oecore-i686/sysroots/i686-oesdk-linux/usr/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
STRIP = $(OE_QMAKE_STRIP)
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
Does anybody recognize the error and know why it emerges?
Thanks in advance. :)
The error is generated because the variable $(OE_QMAKE_LIBDIR_QT) doesn't exist. So
-Wl,-rpath-link,$(OE_QMAKE_LIBDIR_QT)
becomes
-Wl,-rpath-link,
Are you setting the other variables like $(OE_QMAKE_CC) and $(OE_QMAKE_CXX), and if so, where? You should add the variable above to this list. It should point to the lib subdir of your Qt installation.
This could be for example (here it's Qt version 4.8.0): /usr/local/Trolltech/Qt-4.8.0/lib.
In a local installation in your home directory, it may look like this: ~/qt/Desktop/Qt/4.8.1/gcc/lib.
For Qtopia, you should look in /usr/local/oecore-i686/sysroots...

Resources