We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Toolchain "GCC(SailfishOS-2.1.3.7-armv7hl in Sailfish OS Build Engine)" cannot be used for device with x86 architecture. [answered]

asked 2018-03-03 13:58:04 +0300

Kumar Abhishek gravatar image

updated 2018-03-03 13:59:32 +0300

Screenshot from 2018-03-03 17-18-11.png

Hi

I'm new to Sailfish SDK. Can someone help me with configuring the toolchain for x86 for arm device? I'm trying to build the "Calqlatr" from Tutorials of the latest Sailfish OS SDK. Any help will bw appriciated.

Thanks in advance.

Regards Kumar Abhishek

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Spam Hunter
close date 2020-02-10 19:14:17.525716

2 Answers

Sort by » oldest newest most voted
3

answered 2018-03-03 20:23:32 +0300

tortoisedoc gravatar image

Switch target (from the left of Qtcreator, click on the sfos icon above the play button and select the right one). Note that you have to have configured your project for the specific arch as well, in order to be able to select the target.

edit flag offensive delete publish link more

Comments

Thanks a lot for your answer @tortoisedoc. The build engine for i486 is not showing any error but armv7hl is showing. Actually I want to build the app for both i486 & armv7hl platform simultaneously using the SDK. Hope its possible.

Kumar Abhishek ( 2018-03-03 20:46:17 +0300 )edit

Error : Toolchain "GCC(SailfishOS-2.1.3.7-armv7hl in Sailfish OS Build Engine)" cannot be used for device with x86 architecture.

Hi @tortoisedoc. How to remove the above error. Also do have a look at the screenshot I've shared.

Kumar Abhishek ( 2018-03-04 08:45:41 +0300 )edit

you cant

you need to switch the device too.

simultanoisly from ui, never was able to do that. with an script.you might

pawel ( 2018-03-04 09:53:39 +0300 )edit

How can I build the App for armv7hl platform, if I can't resolve the GCC Toolchain error ?

Kumar Abhishek ( 2018-03-04 10:18:22 +0300 )edit

you can build for both platforms, I did it for my app...

do you have build vm running? I miss two icons from bottom left corner of your screenshot indicating environments are there and started...

zlutor ( 2018-03-04 12:26:15 +0300 )edit
2

answered 2018-03-05 09:54:53 +0300

martyone gravatar image

The error does not prevent you building your project with this kit. You can ignore it unless you are interested in running your project from Qt Creator.

The error tells you that you will not be able to run the project on the device selected as the default device for the given kit, because the architecture of the device (i486 in case of the preselected Sailfish OS Emulator) is not compatible with the architecture of the kit (armv7hl).

If you have an armv7hl compatible Sailfish OS device, connect it to your workstation, register it in the SDK using Options > Devices > Add > Sailfish OS Device > Physical Device and you will be also able to run your project built with the armv7hl kit.

More information can be found in the built in Help of Qt Creator.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2018-03-03 13:58:04 +0300

Seen: 589 times

Last updated: Mar 05 '18