snapcraft crosscompile The Next CEO of Stack OverflowWhat is Snapcraft?How to install Snapcraft on 14.04?How to start the snapcraft app?Testing clean snapcraft buildUpdate snapcraft to 2.15Python rpi.GPIO with Snapcraft / snap?Snapcraft: possible to include another (already built) .snap?Editing a java snap.NET Core snapcraft crosscompile for Raspberrypi3Can't open shared libraries (snap)
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
Term for the "extreme-extension" version of a straw man fallacy?
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Anatomically Correct Strange Women In Ponds Distributing Swords
Does the Brexit deal have to be agreed by both Houses?
Why does standard notation not preserve intervals (visually)
What do "high sea" and "carry" mean in this sentence?
How do I go from 300 unfinished/half written blog posts, to published posts?
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Why didn't Khan get resurrected in the Genesis Explosion?
Why does C# sound extremely flat when saxophone is tuned to G?
How can I open an app using Terminal?
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
Trouble understanding the speech of overseas colleagues
Too much space between section and text in a twocolumn document
Is a stroke of luck acceptable after a series of unfavorable events?
Whats the best way to handle refactoring a big file?
The King's new dress
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables
How to Reset Passwords on Multiple Websites Easily?
What makes a siege story/plot interesting?
Why is there a PLL in CPU?
snapcraft crosscompile
The Next CEO of Stack OverflowWhat is Snapcraft?How to install Snapcraft on 14.04?How to start the snapcraft app?Testing clean snapcraft buildUpdate snapcraft to 2.15Python rpi.GPIO with Snapcraft / snap?Snapcraft: possible to include another (already built) .snap?Editing a java snap.NET Core snapcraft crosscompile for Raspberrypi3Can't open shared libraries (snap)
I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools.
I manage to build the snap but after I upload to the store it always says that the supported architecture is:
Supported architectures amd64
My snapcraft.yaml looks like this:
name: hellocsnap
version: '1.17'
summary: Hello World snap written in C
description: This snap says hello and adds 2 numbers.
grade: stable
confinement: strict
apps:
hello:
command: hellocsnap
parts:
test-hellocsnap:
plugin: autotools
configflags:
- --build=x86_64-linux-gnu
- --host=arm-linux-gnueabihf
source: source/
When running snapcraft
I get the following error:
Priming test-hellocsnap
Unable to determine library dependencies for b' /home/..../prime/bin/hellocsnap'
Does any one know how to pack a snap from source on a amd64 for Raspberry Pi?
ubuntu-core snap raspberrypi cross-compilation autotools
add a comment |
I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools.
I manage to build the snap but after I upload to the store it always says that the supported architecture is:
Supported architectures amd64
My snapcraft.yaml looks like this:
name: hellocsnap
version: '1.17'
summary: Hello World snap written in C
description: This snap says hello and adds 2 numbers.
grade: stable
confinement: strict
apps:
hello:
command: hellocsnap
parts:
test-hellocsnap:
plugin: autotools
configflags:
- --build=x86_64-linux-gnu
- --host=arm-linux-gnueabihf
source: source/
When running snapcraft
I get the following error:
Priming test-hellocsnap
Unable to determine library dependencies for b' /home/..../prime/bin/hellocsnap'
Does any one know how to pack a snap from source on a amd64 for Raspberry Pi?
ubuntu-core snap raspberrypi cross-compilation autotools
add a comment |
I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools.
I manage to build the snap but after I upload to the store it always says that the supported architecture is:
Supported architectures amd64
My snapcraft.yaml looks like this:
name: hellocsnap
version: '1.17'
summary: Hello World snap written in C
description: This snap says hello and adds 2 numbers.
grade: stable
confinement: strict
apps:
hello:
command: hellocsnap
parts:
test-hellocsnap:
plugin: autotools
configflags:
- --build=x86_64-linux-gnu
- --host=arm-linux-gnueabihf
source: source/
When running snapcraft
I get the following error:
Priming test-hellocsnap
Unable to determine library dependencies for b' /home/..../prime/bin/hellocsnap'
Does any one know how to pack a snap from source on a amd64 for Raspberry Pi?
ubuntu-core snap raspberrypi cross-compilation autotools
I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools.
I manage to build the snap but after I upload to the store it always says that the supported architecture is:
Supported architectures amd64
My snapcraft.yaml looks like this:
name: hellocsnap
version: '1.17'
summary: Hello World snap written in C
description: This snap says hello and adds 2 numbers.
grade: stable
confinement: strict
apps:
hello:
command: hellocsnap
parts:
test-hellocsnap:
plugin: autotools
configflags:
- --build=x86_64-linux-gnu
- --host=arm-linux-gnueabihf
source: source/
When running snapcraft
I get the following error:
Priming test-hellocsnap
Unable to determine library dependencies for b' /home/..../prime/bin/hellocsnap'
Does any one know how to pack a snap from source on a amd64 for Raspberry Pi?
ubuntu-core snap raspberrypi cross-compilation autotools
ubuntu-core snap raspberrypi cross-compilation autotools
asked Feb 5 '17 at 9:45
V BotaV Bota
446515
446515
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I'm pretty sure I read somewhere that snapcraft does not yet provide option to crosscompile code for different architectures.
I wanted to do the same thing but could not figure out how to use autotools to do it. Instead I used eclipse to build my project and configured it to build for armhf. Later on I placed executable and everything needed for my app to work to one folder and used plugin: dump
instead of plugin: autotools
. You will need to add architectures: [armhf]
if you are planning to add it to the Ubuntu store. I got the same message like you did but I already tested the code without the snap and I knew that I packaged everything I need so I just ignored it.
Alternatively you could take a look at Launchpad which could help you build it for a variety of environments.
Did you have to add--target-arch armhf
to your call to snapcraft?
– RQDQ
Jun 12 '18 at 14:12
add a comment |
I did run:
snapcraft build --target-arch=armhf
And it ran all the way through without an error. However it did not create a hello_2.10_armhf.snap package as expected.
snapcraft.yaml:
name: hello
version: '2.10'
summary: GNU Hello, the "hello world" snap
description: |
GNU hello prints a friendly greeting.
grade: devel
confinement: devmode
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
New contributor
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f880035%2fsnapcraft-crosscompile%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm pretty sure I read somewhere that snapcraft does not yet provide option to crosscompile code for different architectures.
I wanted to do the same thing but could not figure out how to use autotools to do it. Instead I used eclipse to build my project and configured it to build for armhf. Later on I placed executable and everything needed for my app to work to one folder and used plugin: dump
instead of plugin: autotools
. You will need to add architectures: [armhf]
if you are planning to add it to the Ubuntu store. I got the same message like you did but I already tested the code without the snap and I knew that I packaged everything I need so I just ignored it.
Alternatively you could take a look at Launchpad which could help you build it for a variety of environments.
Did you have to add--target-arch armhf
to your call to snapcraft?
– RQDQ
Jun 12 '18 at 14:12
add a comment |
I'm pretty sure I read somewhere that snapcraft does not yet provide option to crosscompile code for different architectures.
I wanted to do the same thing but could not figure out how to use autotools to do it. Instead I used eclipse to build my project and configured it to build for armhf. Later on I placed executable and everything needed for my app to work to one folder and used plugin: dump
instead of plugin: autotools
. You will need to add architectures: [armhf]
if you are planning to add it to the Ubuntu store. I got the same message like you did but I already tested the code without the snap and I knew that I packaged everything I need so I just ignored it.
Alternatively you could take a look at Launchpad which could help you build it for a variety of environments.
Did you have to add--target-arch armhf
to your call to snapcraft?
– RQDQ
Jun 12 '18 at 14:12
add a comment |
I'm pretty sure I read somewhere that snapcraft does not yet provide option to crosscompile code for different architectures.
I wanted to do the same thing but could not figure out how to use autotools to do it. Instead I used eclipse to build my project and configured it to build for armhf. Later on I placed executable and everything needed for my app to work to one folder and used plugin: dump
instead of plugin: autotools
. You will need to add architectures: [armhf]
if you are planning to add it to the Ubuntu store. I got the same message like you did but I already tested the code without the snap and I knew that I packaged everything I need so I just ignored it.
Alternatively you could take a look at Launchpad which could help you build it for a variety of environments.
I'm pretty sure I read somewhere that snapcraft does not yet provide option to crosscompile code for different architectures.
I wanted to do the same thing but could not figure out how to use autotools to do it. Instead I used eclipse to build my project and configured it to build for armhf. Later on I placed executable and everything needed for my app to work to one folder and used plugin: dump
instead of plugin: autotools
. You will need to add architectures: [armhf]
if you are planning to add it to the Ubuntu store. I got the same message like you did but I already tested the code without the snap and I knew that I packaged everything I need so I just ignored it.
Alternatively you could take a look at Launchpad which could help you build it for a variety of environments.
answered Mar 3 '17 at 18:59
JaskoJasko
806
806
Did you have to add--target-arch armhf
to your call to snapcraft?
– RQDQ
Jun 12 '18 at 14:12
add a comment |
Did you have to add--target-arch armhf
to your call to snapcraft?
– RQDQ
Jun 12 '18 at 14:12
Did you have to add
--target-arch armhf
to your call to snapcraft?– RQDQ
Jun 12 '18 at 14:12
Did you have to add
--target-arch armhf
to your call to snapcraft?– RQDQ
Jun 12 '18 at 14:12
add a comment |
I did run:
snapcraft build --target-arch=armhf
And it ran all the way through without an error. However it did not create a hello_2.10_armhf.snap package as expected.
snapcraft.yaml:
name: hello
version: '2.10'
summary: GNU Hello, the "hello world" snap
description: |
GNU hello prints a friendly greeting.
grade: devel
confinement: devmode
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
New contributor
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
add a comment |
I did run:
snapcraft build --target-arch=armhf
And it ran all the way through without an error. However it did not create a hello_2.10_armhf.snap package as expected.
snapcraft.yaml:
name: hello
version: '2.10'
summary: GNU Hello, the "hello world" snap
description: |
GNU hello prints a friendly greeting.
grade: devel
confinement: devmode
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
New contributor
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
add a comment |
I did run:
snapcraft build --target-arch=armhf
And it ran all the way through without an error. However it did not create a hello_2.10_armhf.snap package as expected.
snapcraft.yaml:
name: hello
version: '2.10'
summary: GNU Hello, the "hello world" snap
description: |
GNU hello prints a friendly greeting.
grade: devel
confinement: devmode
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
New contributor
I did run:
snapcraft build --target-arch=armhf
And it ran all the way through without an error. However it did not create a hello_2.10_armhf.snap package as expected.
snapcraft.yaml:
name: hello
version: '2.10'
summary: GNU Hello, the "hello world" snap
description: |
GNU hello prints a friendly greeting.
grade: devel
confinement: devmode
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
New contributor
New contributor
answered 52 mins ago
Jack NimbleJack Nimble
1
1
New contributor
New contributor
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
add a comment |
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
41 mins ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f880035%2fsnapcraft-crosscompile%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown