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

error in building from source



  • I'm building qt5.14.2 for android from source.
    (i need a static kit for compile a shared library statically)
    I faced error in building and I didn't find a reason for this error:

    Screenshot_20201009_223006.png

    The content of the file that contains error :

    Screenshot_20201009_223446.png

    What's wrong with that?

    I'm using NDK 21.3.6528147 (i faced more errors with previous versions of NDK) and c++17 (configure chose c++17 itself)

    configure arguments:

    ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk /home/mmjvox/AndroidSDKlinux/ndk-bundle -android-sdk /home/mmjvox/AndroidSDKlinux -no-warnings-are-errors -static -release -opensource -confirm-license  -skip qttranslations -prefix /opt/qt_5142_static_android -nomake tools
    

  • Qt Champions 2017

    @mmjvox said in error in building from source:

    What's wrong with that?

    That's not valid c++ syntax. How did you obtain this file, and have you made any changes to it? It does seem odd to me that an autogenerated file'd contain that sort of blatant error.



  • @kshegunov said in error in building from source:

    That's not valid c++ syntax. How did you obtain this file, and have you made any changes to it? It does seem odd to me that an autogenerated file'd contain that sort of blatant error.

    No i didn't change anything in source files or auto generated files. i just ran configure with that arguments and make.

    This file didn't already exist before running make.

    I noticed a point
    in .pro file that exists in this directory ' TARGETPATH ' defined ' QtQml/WorkerScript.2 '
    Screenshot_20201011_004400.png

    but in repo on github ' TARGETPATH ' defined ' QtQml/WorkerScript '
    Screenshot_20201011_004520.png

    I think the problem was fixed in newer versions



  • @mmjvox
    Judging by the way the name of the method is being generated in the .cpp file, it does not work correctly if your TARGETPATH has a . (dot) in it. For example, WorkerScript.2 will make it go wrong, but WorkerScript_2 should be acceptable.



  • I tried on 5.15.1 source and it has the same error but on another file.


Log in to reply