Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 93F7DE00C5B; Fri, 9 Dec 2016 05:00:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_HELO_PASS autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.208.4.196 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [74.208.4.196 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 65FCCE00B96 for ; Fri, 9 Dec 2016 05:00:42 -0800 (PST) Received: from Alankard ([58.68.32.82]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPA (Nemesis) id 0MRELZ-1c5Bko2ulz-00UeRD; Fri, 09 Dec 2016 14:00:39 +0100 From: "Alankar Dhobale" To: "'Burton, Ross'" References: <02e201d25213$77eea330$67cbe990$@renuelectronics.com> In-Reply-To: Date: Fri, 9 Dec 2016 18:34:34 +0530 Message-ID: <02f901d2521c$cb62d6e0$622884a0$@renuelectronics.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHLzPqrt13MCjx7jE7049VqMg5LHQI8Gr5BoPq8w9A= X-Provags-ID: V03:K0:NazTNHZ+Z7+E1oYU1kz3qTfyDYRrXfRtN9jg51I8Ml029MT7UeR V81MROnzV96yFYaNQYjpa1T8Wk5IgYxY06jJmqxuWqAoMSvpnbQeGSoRCexAQmTRO+FM8cm zaoa+mhnPY1K8wvRnXQ7WtExRlNEEjxpPJZCAwVGe6y7hXRP8ouOLgiYQk+kUCEqj/Sk6ql LL+KzaumpX2Y935ErmgnQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:DRMzwqz6jKo=:VUskeU/uXrncAerwKoFeiJ d8VtAQJQz2k//F1ODbMsc5ieQR4JZAe+QFt1Izpfp1sgiQN4ADHzCnbCQMZ72EITQV3H942bk 67GY/rPk42P1APn6icpgMuLoiSvKVWuzB0mMCQR+QwOyR6NIjpLdpvksZwbPM8IKe8D1k6P78 oA5hVY5CRXsiN1INsX+FW7RtioocJRgai9NJmyM4lKrS5T1V+GdnvgyVNqjBgAK++Vol/BICk prEyFCntFL0pzGbrmqxMd5ouap+lVSTnONrA6yzklPeUQNAH++V6ClcTqW+FZpvyBmmHjHut+ AaMZnuVPSdF82thVb4QDvF9Vd71pZCfhkEa71oOFCzLH9vXwz5u7MPGzO3314iWBmU96qRgYv gcljUYViCOUQ1lcK/SlE5b6jPqJRJwpdN4kifh6cdBEBAh8yObhyEAYvEZ9K8erndad2pUDgB EMuHg1IkFaxOP8FnLX9GzoHHU4Y7oynruFvQklnKUXofcmy7yqBr7AZokK4ophffNrUWFz/sb kT9MeaJ3v9XPOTJ7c9HQjz5eKAMsAaqEWgF7Q9McvuQBGdJsVWatZabjH14006jvsyk0Bbdkz e7ayLJUkp3Z8fLN8JDr/XDM+nBtSntcYbzuQmSJgJ83AQ4/HHH6Q/tqKXDgwHV8TWm8bgTmvs XvmU53bdkQ8EKn49NR8AcoGJWFleNfHQyLoCDmwAWJ5aij4Xq0ld55iGX2YPYm5puQu5J702q ytHkKScUAarnKpUiOh9vuDL0EJ/zZUSPSoxo6A== Cc: yocto@yoctoproject.org Subject: Re: Qt make: g++: Command not found issue with SDK generated for soloX X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2016 13:00:47 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_02FA_01D2524A.E51CE7A0" Content-Language: en-us ------=_NextPart_000_02FA_01D2524A.E51CE7A0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Ross, =20 Thanks for your reply, but I did not get you, I actually sourced the = setup script for the sdk toolchain installed at path = /opt/poky/2.1.1/=E2=80=A6 =20 But I think =E2=80=9Cmake=E2=80=9D is somehow calling g++ instead of = calling arm-poky-linux-gnueabi-g++. I am not sure about the generated = sdk is correct? =20 Alankar =20 =20 From: Burton, Ross [mailto:ross.burton@intel.com]=20 Sent: 09/12/2016 6:05 PM To: Alankar Dhobale Cc: yocto@yoctoproject.org Subject: Re: [yocto] Qt make: g++: Command not found issue with SDK = generated for soloX =20 As per the documentation, the compiler isn't just "gcc" but has the full = platform triple in: =20 http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#makefile-= based-projects =20 One you've sourced the setup script these are set as $CC and so on, so = your makefile should be using $CC instead of 'gcc'. =20 Ross =20 On 9 December 2016 at 11:57, Alankar Dhobale = wrote: i have used following steps to get and build the BSP for soloX sabre = board. i am using Krogoth branch to build the bsp and populate sdk =20 https://github.com/Freescale/fsl-community-bsp-platform =20 =20 then i added qt support in the build by following=20 =20 http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard= =20 =20 after that i bitbaked toolchain for this using following $ bitbake meta-toolchain-qt5 =20 after this i generated sdk using following command =20 $ bitbake -c populate_sdk =20 and then i installed the sdk on my development machine, it is installed = under /opt/poky/2.1.1/ =20 now i installed and setup latest Qt by using following steps =20 https://community.nxp.com/thread/309578 =20 =20 After all this setup done, i created a simple console application and = trying to build it, and i get an error as =20 14:10:10: Running steps for project HelloWorld... 14:10:10: Configuration unchanged, skipping qmake step. 14:10:10: Starting: "/usr/bin/make"=20 g++ -c -pipe -O2 -std=3Dgnu++0x -Wall -W -D_REENTRANT -fPIC = -DQT_NO_DEBUG -DQT_CORE_LIB -I../HelloWorld -I. = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include= /qt5 = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include= /qt5/QtCore -I. = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5= /mkspecs/linux-g++ -o main.o ../HelloWorld/main.cpp make: g++: Command not found make: *** [main.o] Error 127 14:10:10: The process "/usr/bin/make" exited with code 2. Error while building/deploying project HelloWorld (kit: mx6solox) The kit mx6solox has configuration issues which might be the root cause = for this problem. When executing step "Make" 14:10:10: Elapsed time: 00:00. =20 i have googled a lot but could not find any solution on this. =20 Can somebody please help on this... =20 =20 Kind Regards, Alankar Dhobale -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto =20 ------=_NextPart_000_02FA_01D2524A.E51CE7A0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hello Ross,

 

Thanks for your reply, but I did not get you, I actually sourced the = setup script for the sdk toolchain installed at path = /opt/poky/2.1.1/=E2=80=A6

 

But I think =E2=80=9Cmake=E2=80=9D is somehow calling g++ instead of = calling arm-poky-linux-gnueabi-g++. I am not sure about the generated = sdk is correct?

 

Alankar

 

 

From:= = Burton, Ross [mailto:ross.burton@intel.com]
Sent: 09/12/2016 = 6:05 PM
To: Alankar Dhobale
Cc: = yocto@yoctoproject.org
Subject: Re: [yocto] Qt make: g++: = Command not found issue with SDK generated for = soloX

 

As per = the documentation, the compiler isn't just "gcc" but has the = full platform triple in:

 

 

One you've sourced the setup script these are set as = $CC and so on, so your makefile should be using $CC instead of = 'gcc'.

 

Ross

 

On 9 = December 2016 at 11:57, Alankar Dhobale <alankar.dhobale@renuelectronics.com> = wrote:

i have used following steps to get and build the BSP for soloX = sabre board. i am using Krogoth branch to build the bsp and populate = sdk

 

https://github.com/Freescale/fsl-community-bsp-platform=

 

 

then i added qt support in the build by = following 

 

http://wiki.wandboard.org/index.php/Building_Qt5_using_= yocto_on_Wandboard

 

 

after that i bitbaked toolchain for this using = following

$ bitbake meta-toolchain-qt5

 

after this i generated sdk using following = command

 

$ bitbake <image-name> -c = populate_sdk

 

and then i installed the sdk on my development machine, it is = installed under

/opt/poky/2.1.1/

 

now i installed and setup latest Qt by using following = steps

 

https://community.nxp.com/thread/309578=

 

 

After all this setup done, i created a simple console application = and trying to build it, and i get an error as

 

14:10:10: Running steps for project HelloWorld...
14:10:10: = Configuration unchanged, skipping qmake step.
14:10:10: Starting: = "/usr/bin/make" 
g++ = -c -pipe -O2 -std=3Dgnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG = -DQT_CORE_LIB -I../HelloWorld -I. = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include= /qt5 = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include= /qt5/QtCore -I. = -I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5= /mkspecs/linux-g++ -o main.o ../HelloWorld/main.cpp
make: g++: = Command not found
make: *** [main.o] Error 127
14:10:10: The = process "/usr/bin/make" exited with code 2.
Error while = building/deploying project HelloWorld (kit: mx6solox)
The kit = mx6solox has configuration issues which might be the root cause for this = problem.
When executing step "Make"
14:10:10: Elapsed = time: 00:00.

 

i have googled a lot but could not find any solution on = this.

 

Can somebody please help on this...

 <= /o:p>

 <= /o:p>

Kind = Regards,

Alankar = Dhobale


--
________________________________= _______________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto<= /o:p>

 

------=_NextPart_000_02FA_01D2524A.E51CE7A0--