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. [Solved] QT Console Hello World Program in Power PC based architecture with Linux <QtCore/qconfig-ppc.h>
Forum Updated to NodeBB v4.3 + New Features

[Solved] QT Console Hello World Program in Power PC based architecture with Linux <QtCore/qconfig-ppc.h>

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 2 Posters 3.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Are you trying to build for PPC on a x86 system ?

    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
    0
    • S Offline
      S Offline
      Sidii
      wrote on last edited by
      #3

      Thanks :)

      Actually i am building on PPC system only. I already have libQtCore.so.4 which is built on PPC. I just wrote a simple Hello World program (console mode) and i got the error:

      fatal error: QtCore/qconfig-ppc.h: No such file or directory
      compilation terminated.

      Kindly help.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Which version of Qt are you using ? How did you compile it ?

        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
        0
        • S Offline
          S Offline
          Sidii
          wrote on last edited by
          #5

          Dear SGaist,

          I am starting again from scratch. I have downloaded the source code QT 5.2.1 and i want to compile the source code in Linux Powerpc. We have Intel machine with Cross Compiler.

          I tried giving the following command:

          ./configure -xplatform POWERPC -device-option CROSS_COMPILE=powerpc-wrs-linux-gnu-ppc_603e-glibc_std-gcc

          But i am getting following message after accepting the terms and conditions:

          The specified system/compiler is not supported:

            /home/ebxal/COMPILATION_SETUP/StHelens/B412.20/SYSROM_SRC/dev/AL/FrontPanel/Src/qtbase/mkspecs/POWERPC
          

          Please see the README file for a complete list.

          Kindly let me know the correct way of compilation. Thanks

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            You should rather make a copy of e.g. linux-arm-gnueabi-g++ to linux-ppc-g++ and change the content of qmake.conf to match your cross-compiler then use that mkspec

            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
            0
            • S Offline
              S Offline
              Sidii
              wrote on last edited by
              #7

              Hi, Thanks for the reply. I did the same but got this error:

              Which edition of Qt do you want to use ?

              Type 'c' if you want to use the Commercial Edition.
              Type 'o' if you want to use the Open Source Edition.

              o

              This is the Qt Open Source Edition.

              You are licensed to use this software under the terms of
              the Lesser GNU General Public License (LGPL) versions 2.1.

              Type 'L' to view the Lesser GNU General Public License version 2.1.
              Type 'yes' to accept this license offer.
              Type 'no' to decline this license offer.

              Do you accept the terms of the license? yes

              Precompiled-headers support enabled.
              /opt/WindRiver20/gnu/4.1-wrlinux-2.0/x86-linux2/bin/powerpc-wrs-linux-gnu-g++ -c -fvisibility=hidden fvisibility.c
              Symbol visibility control enabled.
              /opt/WindRiver20/gnu/4.1-wrlinux-2.0/x86-linux2/bin/powerpc-wrs-linux-gnu-g++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
              /opt/WindRiver20/gnu/4.1-wrlinux-2.0/x86-linux2/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.1.2/../../../../powerpc-wrs-linux-gnu/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
              /opt/WindRiver20/gnu/4.1-wrlinux-2.0/x86-linux2/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.1.2/../../../../powerpc-wrs-linux-gnu/bin/ld: cannot find /lib/libc.so.6
              collect2: ld returned 1 exit status
              Symbolic function binding disabled.

              Kindly give your inputs. Thanks

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                You still need to tell configure that you are cross-compiling like you would for an arm device

                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
                0
                • S Offline
                  S Offline
                  Sidii
                  wrote on last edited by
                  #9

                  Thanks for your help :)
                  I am able to compile the QT source code in Linux, intel based machine using cross compilation - powerpc.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    You're welcome !

                    Since the compilation is working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                    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
                    0
                    • S Offline
                      S Offline
                      Sidii
                      wrote on last edited by
                      #11

                      Done !!

                      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