The QT basic application is getting crashed when i run on the emulator by giving the below error messages.
and also giving an error at "import QtQuick.VirtualKeyboard 2.4" as QML module not found.
Emulator is with API 28.
QT version name: Qt 5.12.4 for Android x86
Compiler: Android Clang (C, x86_64)
Request you to please help in resolving these errors.
I zygote : Not late-enabling -Xcheck:jni (already on)
W zygote : Unexpected CPU variant for X86 using defaults: x86
W System : ClassLoader referenced unknown path:
I zygote : Do partial code cache collection, code=28KB, data=20KB
I zygote : After code cache collection, code=28KB, data=20KB
I zygote : Increasing code cache capacity to 128KB
I QtCore : Start
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.TestOneMore-diXhlrUpcg6WGCwBjHyxcA==/lib/x86/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.TestOneMore/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80
I Qt : qt started
W linker : "/data/data/org.qtproject.example.TestOneMore/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x80
I Qt JAVA : Can't find '/data/data/org.qtproject.example.TestOneMore/qt-reserved-files/lib/libQt5QuickParticles.so'
I zygote : Do partial code cache collection, code=60KB, data=50KB
I zygote : After code cache collection, code=59KB, data=49KB
I zygote : Increasing code cache capacity to 256KB
I zygote : Do full code cache collection, code=121KB, data=85KB
I zygote : After code cache collection, code=107KB, data=65KB
**E linker : normalize_path - invalid input: "C", the input path should be absolute**
W linker : Warning: unable to normalize "C"
**E linker : normalize_path - invalid input: "C", the input path should be absolute**
W linker : Warning: unable to normalize "C"
D OpenGLRenderer: HWUI GL Pipeline
D : HostConnection::get() New Host Connection established 0xa05d4600, tid 9158
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 1
W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D OpenGLRenderer: Swap behavior 0
D EGL_emulation: eglCreateContext: 0x9e1060a0: maj 3 min 1 rcv 4
D EGL_emulation: eglMakeCurrent: 0x9e1060a0: ver 3 1 (tinfo 0x9dc94880)
**E eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
E eglCodecCommon: glUtilsParamSize: unknow param 0x000082da**
I zygote : Do partial code cache collection, code=112KB, data=100KB
I zygote : After code cache collection, code=112KB, data=100KB
I zygote : Increasing code cache capacity to 512KB
I zygote : JIT allocated 71KB for compiled code of void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
I zygote : Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
D EGL_emulation: eglMakeCurrent: 0x9e1060a0: ver 3 1 (tinfo 0x9dc94880)
W linker : "/data/data/org.qtproject.example.TestOneMore/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.TestOneMore/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W libTestOneMore.so: QQmlApplicationEngine failed to load component
W libTestOneMore.so: qrc:/main.qml:3 module "QtQuick.VirtualKeyboard" is not installed
08-20 11:14:36.167 9133 9151 W libTestOneMore.so:
W libTestOneMore.so: exit app 0
D EGL_emulation: eglMakeCurrent: 0x9e1060a0: ver 3 1 (tinfo 0x9dc94880)
**"org.qtproject.example.TestOneMore" died.**
Related
With the enthusiastic help of SO netizens, I configured all the environments required for ASAP (Automated Slide Analysis Platform)
The necessary libraries including Boost, Openslide, Qt, etc. have been successfully linked, but the following error occurred
====================[ Build | ASAP | Debug ]====================================
"D:\_Jason\Clion\CLion 2021.2.2\bin\cmake\win\bin\cmake.exe" --build D:\_Jason\C++_hospital\orignal\CLion1.9\ASAP-1.9\cmake-build-debug --target ASAP -- -j 9
[ 25%] Automatic MOC and UIC for target ASAP
[ 25%] Built target ASAP_autogen
[ 50%] Linking CXX executable ASAP.exe
CMakeFiles\ASAP.dir/objects.a(main.cpp.obj): In function `main':
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationC1ERiPPci'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPC1EP7QWidget'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:8: undefined reference to `__imp__ZN7QWidget4showEv'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:10: undefined reference to `__imp__ZN12QApplication4execEv'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationD1Ev'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: *** [CMakeFiles\ASAP.dir\build.make:111: ASAP.exe] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:163: CMakeFiles/ASAP.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:170: CMakeFiles/ASAP.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:168: ASAP] Error 2
It can be seen from "__imp__ZN12QApplicationD1Ev" that this is a Qt problem. The solution they gave in other forums is to add the statement QT += gui widgets core to the .pro file under this project.However, there is no .pro file in the ASAP source code, so I tried to use the qmake -project command to generate the .pro file. It still doesn't work after adding QT += gui widgets core
I have been trying to build ParaView to test the custom apps examples here on MacOS.
I have followed the site instructions for the superbuild here.
I seem to have a problem with the Qt part.
These are the steps I have done:
$ mkdir pv
$ cd pv
$ git clone https://gitlab.kitware.com/paraview/paraview-superbuild.git
$ cd paraview-superbuild
$ git fetch origin # ensure you have the latest state from the main repo
$ git submodule update
$ cd ..
$ mkdir paraview_build
$ cd paraview_build
$ cmake ../paraview-superbuild
$ ccmake -DCMAKE_OSX_SDK=macosx10.14 ../paraview-superbuild
I enabled the CMake variables:
ENABLE_qt5
ENABLE_python
ENABLE_python2
Then ran:
$ make
The error I got:
[ 87%] Performing build step for 'qt5'
Info: creating cache file /Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/build/qtbase/.qmake.cache
ld: warning: direct access in function 'QHash<QString, int>::insert(QString const&, int const&)' from file '/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'QHash<QString, int>::insert(QString const&, int const&)' from file '/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'QHash<QString, int>::insert(QString const&, int const&)' from file '/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::duplicateNode(QHashData::Node*, void*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'QCommandLineParserPrivate::~QCommandLineParserPrivate()' from file '/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/build/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../lib/libqtharfbuzz.a(hb-warning.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../../lib/libqtharfbuzz.a(hb-warning.o) has no symbols
Makefile:2392: warning: overriding commands for target `../../lib/QtGui.framework/Versions/5/Headers/QGenericPlugin'
Makefile:2024: warning: ignoring old commands for target `../../lib/QtGui.framework/Versions/5/Headers/QGenericPlugin'
Makefile:2396: warning: overriding commands for target `../../lib/QtGui.framework/Versions/5/Headers/QGenericPluginFactory'
Makefile:2020: warning: ignoring old commands for target `../../lib/QtGui.framework/Versions/5/Headers/QGenericPluginFactory'
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/network/access/qnetworkaccessdebugpipebackend_p.h:0: Note: No relevant classes found. No output generated.
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm:833:20: error: qualified reference to 'QFixed' is a constructor name rather than a type in this context
return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
^
1 error generated.
make[7]: *** [.obj/qfontengine_coretext.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[6]: *** [sub-fontdatabases-make_first] Error 2
make[5]: *** [sub-platformsupport-make_first] Error 2
make[5]: *** Waiting for unfinished jobs....
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:868:14: warning: comparison of two values with different enumeration types in switch statement ('QDialogButtonBox::ButtonRole' and 'QPlatformDialogHelper::ButtonRole') [-Wenum-compare-switch]
case QPlatformDialogHelper::HelpRole:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:865:14: warning: comparison of two values with different enumeration types in switch statement ('QDialogButtonBox::ButtonRole' and 'QPlatformDialogHelper::ButtonRole') [-Wenum-compare-switch]
case QPlatformDialogHelper::NoRole:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:864:14: warning: comparison of two values with different enumeration types in switch statement ('QDialogButtonBox::ButtonRole' and 'QPlatformDialogHelper::ButtonRole') [-Wenum-compare-switch]
case QPlatformDialogHelper::RejectRole:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:861:14: warning: comparison of two values with different enumeration types in switch statement ('QDialogButtonBox::ButtonRole' and 'QPlatformDialogHelper::ButtonRole') [-Wenum-compare-switch]
case QPlatformDialogHelper::YesRole:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/widgets/widgets/qdialogbuttonbox.cpp:860:14: warning: comparison of two values with different enumeration types in switch statement ('QDialogButtonBox::ButtonRole' and 'QPlatformDialogHelper::ButtonRole') [-Wenum-compare-switch]
case QPlatformDialogHelper::AcceptRole:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
make[4]: *** [sub-src-make_first] Error 2
make[3]: *** [module-qtbase-make_first] Error 2
CMake Error at /Users/username/Desktop/dev/pv/paraview_build/superbuild/sb-qt5-build.cmake:47 (message):
Failed with exit code 2
make[2]: *** [superbuild/qt5/stamp/qt5-build] Error 1
make[1]: *** [superbuild/CMakeFiles/qt5.dir/all] Error 2
make: *** [all] Error 2
What can I do?
The error in the log:
qfontengine_coretext.mm:833:20: error: qualified reference to 'QFixed' is a constructor name rather than a type in this context
is caused by a known bug with Qt 5.9.5, documented here. There is a MacOS fix available there as well, which involves modifying one line of code in the qfontengine_coretext.mm file. Your file is located here:
/Users/username/Desktop/dev/pv/paraview_build/superbuild/qt5/src/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
At line 833, change the return statement from this:
QFixed QCoreTextFontEngine::emSquareSize() const
{
return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
}
to this (removing the extra QFixed:: so that it is no longer designates a constructor):
QFixed QCoreTextFontEngine::emSquareSize() const
{
return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
}
Then, re-run make to verify the updated source code fixes this issue.
I have created some benchmark program to test some characteristics of OpenCL. This has run on several platforms: core i7-920/nvidia 1060 and a double Xeon-2660/Radeon 480. This all worked fine. When I run it on a surface 3 pro I get the following output:
Platform Intel(R) OpenCL contains 2 devices
Device does not support double precision, skipped: CLDevice [id: 3642688 name: Intel(R) HD Graphics 5000 type: GPU profile: FULL_PROFILE]
CLDevice [id: 3632160 name: Intel(R) Core(TM) i7-4650U CPU # 1.70GHz type: CPU profile: FULL_PROFILE]
Platform: plIntel, processor: ptIntel, double fp: true, AMD fp: false
Devices used:
CLDevice [id: 3632160 name: Intel(R) Core(TM) i7-4650U CPU # 1.70GHz type: CPU profile: FULL_PROFILE]
Running benchmark for 1 devices.
Benchmarking Intel(R) Core(TM) i7: 0 1 2 3 4 4409 ms
Queue pool, tasks per queue = 16: 0 Exception in thread "main" com.jogamp.opencl.CLException$CLBuildProgramFailureException:
CLDevice [id: 3642688 name: Intel(R) HD Graphics 5000 type: GPU profile: FULL_PROFILE] build log:
:2:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:3:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:4:34: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:22:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:23:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:24:34: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:42:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:43:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:44:34: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:63:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:64:40: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
:65:34: error: use of type 'double' requires cl_khr_fp64 extension to be enabled
error: front end compiler failed build. [error: CL_BUILD_PROGRAM_FAILURE]
at com.jogamp.opencl.CLException.newException(CLException.java:84)
As you can see both the graphics and the processor are recognized, but the graphics does not support double precision and is skipped by the software. The processor however should support double precision. But is does not compile. Is there something specific about the surface 3 pro that it does not run? It runs on Java and jocl.
Edit
The software builds a list of devices and only selects devices that possess the cl_khr_fp64 property. The CPU of the Surface 3 pro (an i7-4950U) does have this property. In the .CL code the first line is: #pragma OPENCL EXTENSION cl_khr_fp64 : enable.
I'm writing a Qt based project using Visual Studio 2008 Compiler . In the debug mode every thing is OK and the program compiled and linked successfully but when I switch to release mode and I start to compile I get this error during linking :
1>Linking...
1>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain#16 referenced in function ___tmainCRTStartup
1>release\\MobnaPC.exe : fatal error LNK1120: 1 unresolved externals
But main function has defined!
Thank you in advance
running 10.7.2 follow the guide configure than append CFLAGS=-Wno-error to bypass the error, than I got stuck at
In file included from /usr/local/src/nginx-gridfs/mongo-c-driver/src/bson.h:24,
from /usr/local/src/nginx-gridfs/mongo-c-driver/src/mongo.h:24,
from /usr/local/src/nginx-gridfs/ngx_http_gridfs_module.c:43:
/usr/local/src/nginx-gridfs/mongo-c-driver/src/platform.h:50:2: error: #error must have a 64bit int type
make[1]: *** [objs/addon/nginx-gridfs/ngx_http_gridfs_module.o] Error 1
make: *** [build] Error 2
any idea?
I have had the same problem when compiling for Windows. You need to ensure you have a typedef for int64_t and uint64_t.
In order to address I needed to ensure that MONGO_USE__INT64 was defined.
For Mac you almost certainly have unistd.h available - so ensure you define MONGO_HAVE_UNISTD