Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Build Error Qt-5.7.1



  • Dear,

    To deploy Qt-5.7.1 to NVIDIA Jetson TX2(ubuntu 16.04),
    building qt-opensource pkg, that is 'qt-everywhere-opensource-src-5.7.1'.

    After waiting very long time, I've got following error message but couldn't find any help from on-line.
    Target has 4 x Cortex-A57.

    g++ -Wl,--gc-sections -Wl,-O1 -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -o ../../bin/qgltf .obj/qgltf.o .obj/3DSConverter.o .obj/3DSLoader.o .obj/ACLoader.o .obj/ASELoader.o .obj/ASEParser.o .obj/Assimp.o .obj/AssimpCExport.o .obj/AssimpPCH.o .obj/B3DImporter.o .obj/BaseImporter.o .obj/Bitmap.o .obj/BlenderBMesh.o .obj/BaseProcess.o .obj/BlenderDNA.o .obj/BlenderLoader.o .obj/BlenderModifier.o .obj/BlenderScene.o .obj/BlenderTessellator.o .obj/BVHLoader.o .obj/CalcTangentsProcess.o .obj/COBLoader.o .obj/ColladaExporter.o .obj/ColladaLoader.o .obj/ColladaParser.o .obj/ComputeUVMappingProcess.o .obj/ConvertToLHProcess.o .obj/CSMLoader.o .obj/DeboneProcess.o .obj/DefaultIOStream.o .obj/DefaultIOSystem.o .obj/DefaultLogger.o .obj/DXFLoader.o .obj/Exporter.o .obj/FindDegenerates.o .obj/FindInstancesProcess.o .obj/FindInvalidDataProcess.o .obj/FixNormalsStep.o .obj/GenFaceNormalsProcess.o .obj/GenVertexNormalsProcess.o .obj/HMPLoader.o .obj/IFCCurve.o .obj/IFCGeometry.o .obj/IFCLoader.o .obj/IFCMaterial.o .obj/IFCProfile.o .obj/IFCReaderGen1.o .obj/IFCReaderGen2.o .obj/IFCUtil.o .obj/Importer.o .obj/ImporterRegistry.o .obj/ImproveCacheLocality.o .obj/IRRLoader.o .obj/IRRMeshLoader.o .obj/IRRShared.o .obj/JoinVerticesProcess.o .obj/LimitBoneWeightsProcess.o .obj/LWOAnimation.o .obj/LWOBLoader.o .obj/LWOLoader.o .obj/LWOMaterial.o .obj/LWSLoader.o .obj/MakeVerboseFormat.o .obj/MaterialSystem.o .obj/MD2Loader.o .obj/MD3Loader.o .obj/MD5Loader.o .obj/MD5Parser.o .obj/MDCLoader.o .obj/MDLLoader.o .obj/MDLMaterialLoader.o .obj/MS3DLoader.o .obj/NDOLoader.o .obj/NFFLoader.o .obj/ObjExporter.o .obj/ObjFileImporter.o .obj/ObjFileMtlImporter.o .obj/ObjFileParser.o .obj/OFFLoader.o .obj/OgreImporter.o .obj/OgreMaterial.o .obj/OptimizeGraph.o .obj/OptimizeMeshes.o .obj/PlyExporter.o .obj/PlyLoader.o .obj/PlyParser.o .obj/PostStepRegistry.o .obj/PretransformVertices.o .obj/ProcessHelper.o .obj/Q3BSPFileImporter.o .obj/Q3BSPFileParser.o .obj/Q3BSPZipArchive.o .obj/Q3DLoader.o .obj/RawLoader.o .obj/RemoveComments.o .obj/RemoveRedundantMaterials.o .obj/RemoveVCProcess.o .obj/SceneCombiner.o .obj/ScenePreprocessor.o .obj/SGSpatialSort.o .obj/SkeletonMeshBuilder.o .obj/SMDLoader.o .obj/SortByPTypeProcess.o .obj/SpatialSort.o .obj/SplitByBoneCountProcess.o .obj/SplitLargeMeshes.o .obj/StandardShapes.o .obj/STEPFileReader.o .obj/STLExporter.o .obj/STLLoader.o .obj/Subdivision.o .obj/TargetAnimation.o .obj/TerragenLoader.o .obj/TextureTransform.o .obj/TriangulateProcess.o .obj/UnrealLoader.o .obj/ValidateDataStructure.o .obj/VertexTriangleAdjacency.o .obj/XFileImporter.o .obj/XFileParser.o .obj/XGLLoader.o .obj/clipper.o .obj/ConvertUTF.o .obj/irrXML.o .obj/ioapi.o .obj/unzip.o .obj/shapes.o .obj/advancing_front.o .obj/cdt.o .obj/sweep.o .obj/sweep_context.o .obj/FBXAnimation.o .obj/FBXBinaryTokenizer.o .obj/FBXDeformer.o .obj/FBXDocument.o .obj/FBXDocumentUtil.o .obj/FBXImporter.o .obj/FBXMaterial.o .obj/FBXMeshGeometry.o .obj/FBXModel.o .obj/FBXNodeAttribute.o .obj/FBXParser.o .obj/FBXProperties.o .obj/FBXTokenizer.o .obj/FBXUtil.o .obj/IFCBoolean.o .obj/IFCOpenings.o .obj/FBXConverter.o .obj/STEPFileEncoding.o .obj/OgreBinarySerializer.o .obj/OgreStructs.o .obj/OgreXmlSerializer.o   -lz -L/home/nvidia/Downloads/qt-everywhere-opensource-src-5.7.1/qtbase/lib -lQt5Core -lpthread
    .obj/qgltf.o: In function `GltfExporter::exportMaterials(QJsonObject&, QHash<QString, QString>*)':
    qgltf.cpp:(.text+0xeb20): undefined reference to `QJsonObject::detach2(unsigned int)'
    qgltf.cpp:(.text+0xeb2c): undefined reference to `QJsonObject::detach2(unsigned int)'
    collect2: error: ld returned 1 exit status
    Makefile:798: recipe for target '../../bin/qgltf' failed
    make[3]: *** [../../bin/qgltf] Error 1
    make[3]: Leaving directory '/home/nvidia/Downloads/qt-everywhere-opensource-src-5.7.1/qt3d/tools/qgltf'
    Makefile:54: recipe for target 'sub-qgltf-install_subtargets' failed
    make[2]: *** [sub-qgltf-install_subtargets] Error 2
    make[2]: Leaving directory '/home/nvidia/Downloads/qt-everywhere-opensource-src-5.7.1/qt3d/tools'
    Makefile:82: recipe for target 'sub-tools-install_subtargets' failed
    make[1]: *** [sub-tools-install_subtargets] Error 2
    make[1]: Leaving directory '/home/nvidia/Downloads/qt-everywhere-opensource-src-5.7.1/qt3d'
    Makefile:472: recipe for target 'module-qt3d-install_subtargets' failed
    make: *** [module-qt3d-install_subtargets] Error 2
    

    ANY kinds of advice would be appreciated.

    Thanks



  • Answer to my question myself.

    This issues was shown due to system's env, and cleared!

    Thanks,



  • Another ISSUE;

    The previous build error was cleared just before, but another errors are occurred.

    In file included from /home/nvidia/Downloads/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qglobal.h:1:0,
                     from ../../include/QtWaylandCompositor/../../src/compositor/global/qwaylandexport.h:40,
                     from ../../include/QtWaylandCompositor/qwaylandexport.h:1,
                     from ../../include/QtWaylandCompositor/../../src/compositor/global/qwaylandcompositorextension.h:40,
                     from ../../include/QtWaylandCompositor/qwaylandcompositorextension.h:1,
                     from ../../include/QtWaylandCompositor/QWaylandCompositorExtension:1,
                     from extensions/qwaylandtextinput.h:40,
                     from extensions/qwaylandtextinput.cpp:37:
    extensions/qwaylandtextinput.cpp: In member function ‘void QWaylandTextInputPrivate::sendKeyEvent(QKeyEvent*)’:
    extensions/qwaylandtextinput.cpp:218:35: error: ‘QWaylandXkb’ was not declared in this scope
         foreach (xkb_keysym_t keysym, QWaylandXkb::toKeysym(event)) {
    

    For your understanding,
    I attach gcc info as follow;

    ubuntu:~/Downloads/qt-everywhere-opensource-src-5.7.1$ gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/5/lto-wrapper
    Target: aarch64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-arm64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-arm64 --with-arch-directory=aarch64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
    Thread model: posix
    gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)
    

    Any kinds of advice would be helpful.

    Thanks


Log in to reply