All of lore.kernel.org
 help / color / mirror / Atom feed
* Qt make: g++: Command not found issue with SDK generated for soloX
@ 2016-12-09 11:57 Alankar Dhobale
  2016-12-09 12:35 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Alankar Dhobale @ 2016-12-09 11:57 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]

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=gnu++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/qt
5
-I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt
5/QtCore -I.
-I/opt/poky/2.1.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mk
specs/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...

 

 

Kind Regards,

Alankar Dhobale


[-- Attachment #2: Type: text/html, Size: 14796 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Qt make: g++: Command not found issue with SDK generated for soloX
  2016-12-09 11:57 Qt make: g++: Command not found issue with SDK generated for soloX Alankar Dhobale
@ 2016-12-09 12:35 ` Burton, Ross
  2016-12-09 13:04   ` Alankar Dhobale
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-12-09 12:35 UTC (permalink / raw)
  To: Alankar Dhobale; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2653 bytes --]

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

http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#makefile-based-projects

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=gnu++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...
>
>
>
>
>
> Kind Regards,
>
> *Alankar Dhobale*
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 13618 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Qt make: g++: Command not found issue with SDK generated for soloX
  2016-12-09 12:35 ` Burton, Ross
@ 2016-12-09 13:04   ` Alankar Dhobale
  2016-12-09 13:06     ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Alankar Dhobale @ 2016-12-09 13:04 UTC (permalink / raw)
  To: 'Burton, Ross'; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3106 bytes --]

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/…

 

But I think “make” 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:

 

http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#makefile-based-projects

 

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=gnu++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...

 

 

Kind Regards,

Alankar Dhobale


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

 


[-- Attachment #2: Type: text/html, Size: 17072 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Qt make: g++: Command not found issue with SDK generated for soloX
  2016-12-09 13:04   ` Alankar Dhobale
@ 2016-12-09 13:06     ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-12-09 13:06 UTC (permalink / raw)
  To: Alankar Dhobale; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

On 9 December 2016 at 13:04, Alankar Dhobale <
alankar.dhobale@renuelectronics.com> wrote:

> But I think “make” is somehow calling g++ instead of calling
> arm-poky-linux-gnueabi-g++. I am not sure about the generated sdk is
> correct?
>
>
I'd check the generated makefiles, or your qmake files.  As the
documentation linked says, if you are writing bare makefiles then pass -e.
If you're not, then you need to do whatever is relevant.

Ross

[-- Attachment #2: Type: text/html, Size: 992 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-09 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-09 11:57 Qt make: g++: Command not found issue with SDK generated for soloX Alankar Dhobale
2016-12-09 12:35 ` Burton, Ross
2016-12-09 13:04   ` Alankar Dhobale
2016-12-09 13:06     ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.