Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. error in building from source
Forum Updated to NodeBB v4.3 + New Features

error in building from source

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 532 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mmjvoxM Offline
    mmjvoxM Offline
    mmjvox
    wrote on last edited by mmjvox
    #1

    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
    
    kshegunovK 1 Reply Last reply
    0
    • mmjvoxM mmjvox

      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
      
      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @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.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1
      • mmjvoxM Offline
        mmjvoxM Offline
        mmjvox
        wrote on last edited by
        #3

        @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

        JonBJ 1 Reply Last reply
        0
        • mmjvoxM mmjvox

          @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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • mmjvoxM Offline
            mmjvoxM Offline
            mmjvox
            wrote on last edited by mmjvox
            #5

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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved