Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windows Cross compile for Raspberry Pi 3 make && install error
Forum Updated to NodeBB v4.3 + New Features

Windows Cross compile for Raspberry Pi 3 make && install error

Scheduled Pinned Locked Moved Solved Installation and Deployment
raspberry pi 3windows
9 Posts 3 Posters 5.4k Views 2 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.
  • C Offline
    C Offline
    CrazyCreepy
    wrote on 15 Feb 2017, 15:14 last edited by A Former User
    #1

    Hi I follow the instruction of this topic a tutoriel for cross-compilation and i use this configure command line:

    ../qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/configure -platform win32-g++ -xplatform linux-arm-gnueabi-g++ -release -device linux-rpi3-g++ -sysroot C:/SysGcc/Raspberry/arm-linux-gnueabihf/sysroot -prefix /usr/local/qt5 -device-option CROSS_COMPILE=C:/SysGCC/Raspberry/bin/arm-linux-gnueabihf- -qt-xcb

    and everything got fine, but when i make i have this error.
    Error I got:
    In file included from C:/SystGcc/qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/config.h:26:0,
    from C:/SystGcc/qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:44:
    C:/SystGcc/qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:370:6: error: #error "Not supported ARM architecture"
    -# error "Not supported ARM architecture"
    ^
    C:/SystGcc/qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp: In function 'JSRegExp* jsRegExpCompile(const UChar*, int, JSRegExpIgnoreCaseOption, JSRegExpMultilineOption, unsigned int*, const char**)':
    C:/SystGcc/qt-everywhere-opensource-src-5.8.0/qt-everywhere-opensource-src-5.8.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:2590:62: warning: cast from 'char*' to 'JSRegExp*' increases required alignment of target type [-Wcast-align]
    JSRegExp* re = reinterpret_cast<JSRegExp*>(new char[size]);
    ^
    make[3]: *** [Makefile:2452: obj/release/pcre_compile.obj] Error 1
    make[3]: Leaving directory '/c/SystGcc/qt-build/qtscript/src/script'
    make[2]: *** [Makefile:68: sub-script-install_subtargets-ordered] Error 2
    make[2]: Leaving directory '/c/SystGcc/qt-build/qtscript/src'
    make[1]: *** [Makefile:57: sub-src-install_subtargets] Error 2
    make[1]: Leaving directory '/c/SystGcc/qt-build/qtscript'
    make: *** [Makefile:1006: module-qtscript-install_subtargets] Error 2

    if you can help me to know what it's the problemes and how to fix it it's very appreciate.
    thanks for your anwser

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Feb 2017, 22:12 last edited by
      #2

      Hi and welcome to devnet,

      Looks like the backend of qtscript doesn't like ARM but in any case, that module has been deprecated in 5.5 and removed in 5.6 so the best course of action in your case is to just not build it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 16 Feb 2017, 14:49
      1
      • S SGaist
        15 Feb 2017, 22:12

        Hi and welcome to devnet,

        Looks like the backend of qtscript doesn't like ARM but in any case, that module has been deprecated in 5.5 and removed in 5.6 so the best course of action in your case is to just not build it.

        C Offline
        C Offline
        CrazyCreepy
        wrote on 16 Feb 2017, 14:49 last edited by
        #3

        @SGaist thanks but i found the solution the last post of this topic explain how to fix it. I found the rigth folder in qt-everywhere-opensource-src-5.8.0\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf\platform.h(that for my case it can change in your case but you need to find this .h). In this folder searchfor this ARM_ARCH_5TEJ. A little tips use note pad with crtl+f.You should find all other ARM define now you must know what it's your Arm architecture. to know your Arm on your Raspberry Pi enter this command on the terminal cat /proc/cpuinfo. I take the X__ARM_ARCH_7M__X(don't take X) and add in my configure commande -D__ARM_ARCH_7M__ and it work

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Feb 2017, 14:52 last edited by
          #4

          While it's a good news from a build point of view and thanks for sharing your findings, please keep in mind that the module has been obsoleted.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply 16 Feb 2017, 17:26
          0
          • S SGaist
            16 Feb 2017, 14:52

            While it's a good news from a build point of view and thanks for sharing your findings, please keep in mind that the module has been obsoleted.

            C Offline
            C Offline
            CrazyCreepy
            wrote on 16 Feb 2017, 17:26 last edited by
            #5

            @SGaist do you know how to skip it ?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Feb 2017, 20:23 last edited by
              #6

              Either on the config line or by delete/moving the sources of the module.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              C 1 Reply Last reply 17 Feb 2017, 17:08
              1
              • S SGaist
                16 Feb 2017, 20:23

                Either on the config line or by delete/moving the sources of the module.

                C Offline
                C Offline
                CrazyCreepy
                wrote on 17 Feb 2017, 17:08 last edited by
                #7

                @SGaist the module that you talk about it's qtscript or it's ARM? that not clear for me.

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 17 Feb 2017, 21:01 last edited by
                  #8

                  qtscript

                  ARM is an architecture

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    azarubkin
                    wrote on 23 Jan 2020, 08:17 last edited by
                    #9

                    Just for the sake of completeness, this simple patch enables building qt5script v5.12.7 on Raspberry Pi 3:

                    diff –git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
                    index a4695a2..897c90c 100644
                    — a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
                    +++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
                    @@ -306,6 +306,9 @@
                    || defined(ARM_ARCH_7R)
                    #define WTF_ARM_ARCH_VERSION 7
                    
                    +#elif defined(ARM_ARCH_8A)
                    +#define WTF_ARM_ARCH_VERSION 8
                    +
                    /* RVCT sets _TARGET_ARCH_ARM */
                    #elif defined(__TARGET_ARCH_ARM)
                    #define WTF_ARM_ARCH_VERSION __TARGET_ARCH_ARM
                    

                    Similar patches should work on other Qt versions.

                    Credits go to http://lists.buildroot.org/pipermail/buildroot/2017-August/200515.html, http://lists.buildroot.org/pipermail/buildroot/2017-August/200520.html

                    1 Reply Last reply
                    2

                    • Login

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