cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/src.pro ) && make -f Makefile
make[1]: Entering directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
cd mqtt/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt/mqtt.pro ) && make -f Makefile
make[2]: Entering directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
g++ -c -include .pch/Qt5Mqtt -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-deprecated-copy -Wno-redundant-move -Wno-format-overflow -Wno-init-list-lifetime -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_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_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtMqtt -I../../include/QtMqtt/5.15.2 -I../../include/QtMqtt/5.15.2/QtMqtt -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qmqttclient.o qmqttclient.cpp
In file included from qmqttclient.cpp:31:
qmqttclient_p.h:49:10: fatal error: private/qobject_p.h: No such file or directory
49 | #include <private/qobject_p.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:619: .obj/qmqttclient.o] Error 1
make[2]: Leaving directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
make[1]: *** [Makefile:47: sub-mqtt-make_first] Error 2
make[1]: Leaving directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
Related
I'm trying to compile windows software on linux with qt but each time I try to compile I get the following error:
i686-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I/mxe/usr/i686-w64-mingw32.static/qt5/include -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtSvg -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtNetwork -I/mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore -Irelease -I. -I/mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++ -o release/inventoryview.o View/inventoryview.cpp
In file included from View/inventoryview.cpp:2:0:
./ui_inventoryview.h:21:50: fatal error: Widget\Inventory\inventoryplusbutton.h: No such file or directory
compilation terminated.
Makefile.Release:6009: recipe for target 'release/inventoryview.o' failed
make[1]: Leaving directory '/builds/Skytwoo/qt-test/Synaps-Software'
make[1]: * [release/inventoryview.o] Error 1
Makefile:36: recipe for target 'release' failed
make: * [release] Error 2
I check multiple times and every folder exists.
Everything is run on Ubuntu inside a docker container with this command.
make -f Makefile.Release
As BoBTFish said, you can't have \ (backslashes) in your path. What you have to do here is to change Widget\Inventory\inventoryplusbutton.h into Widget/Inventory/inventoryplusbutton.h and make sure it exists.
hi i want to use cocos2dx android studio in windows.
i downloaded android-ndk-r12, android studio and apache-ant-1.9.7. cocos2dx 3.11.1
now i am successfully create a project by using command cocos.py new MyGame -p com.MyCompany.MyGame -l cpp -d I:\Work\cocos2dx.
But where i am using cocos.py compile -p android --android-studio to compile i am getting this error
[armeabi] "Compile++ thumb": "MyGame_shared <= AppDelegate.cpp"
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/ma
in.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/cocos2dx/android
-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/c
xx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audi
o/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/fl
atbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -II:/Work/cocos2
dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/coc
os/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/unzip -II:/Wo
rk/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/nslo
g -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/pol
y2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/..
/cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-stud
io/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/jpeg
/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../include/android -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos
2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstack -Wformat -Wer
ror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSoftware/cocos2dx
/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/hellocpp/main.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: * [obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/main.o] Error 2
make: * Waiting for unfinished jobs....
process_begin: CreateProcess(NULL, I:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared////Cl
asses/AppDelegate.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -O0 -UNDEBUG -Ijni/../../../Classes -II:/Software/ProgramingSoftware/c
ocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/buil
d//../sources/cxx-stl/gnu-libstdc++/4.9/include/backward -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocostudio/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/cocosbuilder/.. -II:/Work/cocos2dx
/MyGame/proj.android-studio/../cocos2d/cocos/3d/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/editor-support/spine/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/network -II:/Work/cocos2dx/MyGame/proj.android-studio/../coc
os2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/ui/../editor-support -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../coco
s2d/external/flatbuffers/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCControlExtension -
II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/extensions/GUI/CCScrollView -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./. -II:/Work/cocos2dx/MyGame/proj.android-studio
/../cocos2d/cocos/./.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../externa
l/unzip -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/chipmunk/include/chipmunk -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/xxhash -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./.
./external/nslog -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/poly2tri/common -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./
../external/poly2tri/sweep -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/./../external/clipper -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/websockets/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.an
droid-studio/../cocos2d/external/Box2D/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/bullet/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/pr
oj.android-studio/../cocos2d/external/freetype2/prebuilt/android/../../include/android/freetype2 -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/png/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2
d/external/jpeg/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/tiff/prebuilt/android/../../include/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/webp/prebuilt/android/../../in
clude/android -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/chipmunk/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/external/zlib/prebuilt/android/../../include -II:/Work/cocos2dx/MyGame/proj.android-
studio/../cocos2d/external/recast/.. -II:/Work/cocos2dx/MyGame/proj.android-studio/../cocos2d/cocos/platform/android -II:/Software/ProgramingSoftware/cocos2dx/android-ndk-r12/build//../sources/android/cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa,--noexecstac
k -Wformat -Werror=format-security -Wno-deprecated-declarations -Wno-extern-c-compat -D__STDC_LIMIT_MACROS=1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1 -isystem I:/Software/ProgramingSo
ftware/cocos2dx/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni/../../../Classes/AppDelegate.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared////Classes/AppDelegate.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/local/armeabi/objs-debug/MyGame_shared///__/Classes/AppDelegate.o] Error 2
make: Leaving directory `I:/Work/cocos2dx/MyGame/proj.android-studio/app'
Error running command, return code: 2.
That command made everything works for me :
cocos compile -p android --android-studio --app-abi armeabi
But it only gonna compile it for the abi armeabi architecture.
I'm trying to compile PhantomJS 2, which uses Qt5. I am running into this failure:
make[2]: Entering directory `/app/phantomjs/src/qt/qtbase/src/platformsupport'
g++ -c -include .pch/Qt5PlatformSupport -pipe -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_CAST_FROM_ASCII -DQT_NO_FONTCONFIG -DQT_BUILD_PLATFORMSUPPORT_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_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtPlatformSupport -I../../include/QtPlatformSupport/5.3.0 -I../../include/QtPlatformSupport/5.3.0/QtPlatformSupport -I../../include/QtGui/5.3.0 -I../../include/QtGui/5.3.0/QtGui -I../../include/QtGui -I../../include/QtCore/5.3.0 -I../../include/QtCore/5.3.0/QtCore -I../../include/QtCore -I.moc -o .obj/qbasicfontdatabase.o fontdatabases/basic/qbasicfontdatabase.cpp
In file included from ../../include/QtGui/5.3.0/QtGui/private/../../../../../src/gui/text/qfontengine_ft_p.h:58:0,
from ../../include/QtGui/5.3.0/QtGui/private/qfontengine_ft_p.h:1,
from fontdatabases/basic/qbasicfontdatabase.cpp:54:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
#include <freetype/config/ftheader.h>
^
compilation terminated.
make[2]: *** [.obj/qbasicfontdatabase.o] Error 1
make[2]: Leaving directory `/app/phantomjs/src/qt/qtbase/src/platformsupport'
make[1]: *** [sub-platformsupport-make_first] Error 2
make[1]: Leaving directory `/app/phantomjs/src/qt/qtbase/src'
make: *** [sub-src-make_first] Error 2
I've installed freetype2:
$ find / -name ftheader.h
/usr/include/freetype2/freetype/config/ftheader.h
/app/phantomjs/src/qt/qtbase/src/3rdparty/freetype/include/freetype/config/ftheader.h
Not sure how to resolve this, since I don't have much experience with C/C++ building. I might have to add/change a prefix, but I'm not sure how.
If you look at the locations of the error (), there is the following comment right above it:
55 /* `<prefix>/include/freetype2' must be in your current inclusion path */
56 #include <freetype/config/ftheader.h>
Not sure why the build didn't resolve this on its own, since it's resolved other libraries it depends on, but adding -I /usr/include/freetype2 to the build configuration did the trick.
For the case of PhantomJS specifically, the full command was:
./build.sh --confirm --qt-config '-I /usr/include/freetype2'
I am working on a Blackberry 10 app using wikitude SDK. I am using the documentation on the website and adding the libraries to the project . When the project is built , I am getting an error with "ntox86-ld" . I am new to this and cannot debug the error. The error is:
19:53:36 **** Build of configuration Simulator-Debug for project ARCascadesProject ****
make -j4 Simulator-Debug
make -C .//translations -f Makefile update
cd x86 && D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/qmake -spec blackberry-x86-qcc ../ARCascadesProject.pro CONFIG+=debug_and_release CONFIG+=simulator
make[1]: Entering directory `D:/BB_10_Workspace/ARCascadesProject/translations'
D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/lupdate ARCascadesProject.pro
Updating 'ARCascadesProject.ts'...
Found 1 source text(s) (0 new and 1 already existing)
make[1]: Leaving directory `D:/BB_10_Workspace/ARCascadesProject/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `D:/BB_10_Workspace/ARCascadesProject/translations'
D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/lrelease ARCascadesProject.pro
Updating 'D:/BB_10_Workspace/ARCascadesProject/translations/ARCascadesProject.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 1 untranslated source text(s)
make[1]: Leaving directory `D:/BB_10_Workspace/ARCascadesProject/translations'
make -C ./x86 -f Makefile debug
make[1]: Entering directory `D:/BB_10_Workspace/ARCascadesProject/x86'
make -f Makefile.Debug
make[2]: Entering directory `D:/BB_10_Workspace/ARCascadesProject/x86'
D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/moc.exe -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ARCascadesProject -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -I../src -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/applicationui.hpp -o o-g/.moc/moc_applicationui.cpp
qcc -Vgcc_ntox86 -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ARCascadesProject -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -I../src -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -x c++-header -c ../precompiled.h -o o-g/.obj/ARCascadesProject.gch/c++
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/ARCascadesProject -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ARCascadesProject -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -I../src -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/applicationui.o ../src/applicationui.cpp
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/ARCascadesProject -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ARCascadesProject -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -I../src -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/main.o ../src/main.cpp
qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/ARCascadesProject -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ARCascadesProject -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -I../src -Io-g/.moc -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include -I../../../bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/moc_applicationui.o o-g/.moc/moc_applicationui.cpp
qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/lib -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -o o-g/ARCascadesProject o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/moc_applicationui.o -LD:/bbndk/target_10_2_0_1155/qnx6/x86/lib -LD:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib -LD:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -LD:/bbndk/target_10_2_0_1155/qnx6//usr/lib/qt4/lib -L../Library/lib -lARchitectSDK -lARchitectLibrary -lgameplay -lscreen -lEGL -lGLESv2 -limg -lcrypto -lbbdevice -lcamapi -lfreetype -lmmrndclient -lpng -lbbdata -lwmm -lbb -lbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: skipping incompatible ../Library/lib\libARchitectSDK.a when searching for -lARchitectSDK
D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: cannot find -lARchitectSDK
D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: skipping incompatible ../Library/lib\libARchitectLibrary.a when searching for -lARchitectLibrary
D :\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: cannot find -lARchitectLibrary
D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: skipping incompatible ../Library/lib\libgameplay.a when searching for -lgameplay
D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: cannot find -lgameplay
cc: D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/ntox86-ld caught signal 5
make[2]: *** [o-g/ARCascadesProject] Error 1
make[2]: Leaving directory `D:/BB_10_Workspace/ARCascadesProject/x86'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `D:/BB_10_Workspace/ARCascadesProject/x86'
make: *** [Simulator-Debug] Error 2
19:54:02 Build Finished (took 25s.979ms)
please look into the issue . I am new to this technology I am trying to implement Augmented Reality in bb10 using wikitude , please help I am stuck here?
You are building the target "Simulator-Debug" which is not supported by Wikitude SDK. You will need to build for a device. Change the "Build configuration" under Debug/Run Configurations to "Device-Debug" or "Device-Release".
I am working on a network management application with Qt and I chose to use Wt for UI, because with it I will not have to deal with any of web parts (PHP, AJAX, HTML/CSS) and it'll be usable on all platforms.
I successfully managed to compile and run examples using cmake. Although I am used to QtCreator IDE and qmake I would rather use that for development and compiling.
I got stuck trying to compile "wtwithqt" example in QtCreator(qmake). I've been searching everywhere for some guide how to compile it with qmake. However I found nothing helpful.
Here is my .pro file.
testWt.pro
QT += core
QT -= gui
TARGET = helloqt
CONFIG += console no_keywords
CONFIG -=app_bundle
TEMPLATE = app
INCLUDEPATH += lib
LIBS += -lwt -lwthttp -lboost_signals -lboost_system -lboost_regex
QMAKE_CXXFLAGS += -DNDEBUG
HEADERS += \
QtObject.h \
HelloApplication.h
SOURCES += \
hello.cpp \
QtObject.cpp
Compile ouput
13:28:15: Running build steps for project testWt...
13:28:15: Starting: "/usr/bin/make" clean -w
make: Entering directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
/usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile ../testWt/testWt.pro
make: Leaving directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
make: Entering directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
rm -f moc_QtObject.cpp
rm -f hello.o QtObject.o moc_QtObject.o
rm -f *~ core *.core
make: Leaving directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
13:28:15: The process "/usr/bin/make" exited normally.
13:28:15: Configuration unchanged, skipping qmake step.
13:28:15: Starting: "/usr/bin/make" -w
make: Entering directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
g++ -c -pipe -DNDEBUG -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_KEYWORDS -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testWt -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I../testWt/lib -I. -I../testWt -I. -o hello.o ../testWt/hello.cpp
g++ -c -pipe -DNDEBUG -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_KEYWORDS -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testWt -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I../testWt/lib -I. -I../testWt -I. -o QtObject.o ../testWt/QtObject.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_KEYWORDS -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testWt -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I../testWt/lib -I. -I../testWt -I. ../testWt/QtObject.h -o moc_QtObject.cpp
g++ -c -pipe -DNDEBUG -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_KEYWORDS -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testWt -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I../testWt/lib -I. -I../testWt -I. -o moc_QtObject.o moc_QtObject.cpp
g++ -o helloqt hello.o QtObject.o moc_QtObject.o -L/usr/lib/i386-linux-gnu -lwt -lwthttp -lboost_signals -lboost_system -lboost_regex -lQtCore -lpthread
hello.o: In function `HelloApplication':
/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug/../testWt/hello.cpp:43: undefined reference to `Wt::WQApplication::WQApplication(Wt::WEnvironment const&, bool)'
hello.o: In function `HelloApplication::propagateGreet()':
/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug/../testWt/hello.cpp:87: undefined reference to `Wt::toQString(Wt::WString const&)'
hello.o: In function `HelloApplication::doGreet(QString const&)':
/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug/../testWt/hello.cpp:92: undefined reference to `Wt::toWString(QString const&)'
hello.o: In function `~WQApplication':
/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug/../testWt/lib/WQApplication:82: undefined reference to `vtable for Wt::WQApplication'
hello.o:(.rodata._ZTV16HelloApplication[vtable for HelloApplication]+0x3c): undefined reference to `Wt::WQApplication::initialize()'
hello.o:(.rodata._ZTV16HelloApplication[vtable for HelloApplication]+0x40): undefined reference to `Wt::WQApplication::finalize()'
hello.o:(.rodata._ZTV16HelloApplication[vtable for HelloApplication]+0x44): undefined reference to `Wt::WQApplication::notify(Wt::WEvent const&)'
hello.o:(.rodata._ZTV16HelloApplication[vtable for HelloApplication]+0x5c): undefined reference to `Wt::WQApplication::realNotify(Wt::WEvent const&)'
hello.o:(.rodata._ZTI16HelloApplication[typeinfo for HelloApplication]+0x8): undefined reference to `typeinfo for Wt::WQApplication'
collect2: ld returned 1 exit status
make: Leaving directory `/home/nms-development/QtProject/testWt-build-desktop-Qt_4_8_1_in_PATH__System__Debug'
make: *** [helloqt] Error 1
13:28:28: The process "/usr/bin/make" exited with code 2.
Error while building project testWt (target: Desktop)
When executing build step 'Make'
Any help is appreciated! Thanks in advance!
Your makefile is pretty much sound, but I think you've forgotten to link the wtwitqt interop layer. Add -lwtwithqt to the LIBS line,