snapcraft crosscompile The Next CEO of Stack OverflowWhat is Snapcraft?How to install...
How to count occurrences of text in a file?
What is the purpose of the Evocation wizard's Potent Cantrip feature?
Does the Brexit deal have to be agreed by both Houses?
How to safely derail a train during transit?
Anatomically Correct Mesopelagic Aves
Natural language into sentence logic
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
Where to find order of arguments for default functions
What is the difference between "behavior" and "behaviour"?
Is a stroke of luck acceptable after a series of unfavorable events?
Why didn't Khan get resurrected in the Genesis Explosion?
How to start emacs in "nothing" mode (`fundamental-mode`)
What does this shorthand mean?
Describing a person. What needs to be mentioned?
Why do professional authors make "consistency" mistakes? And how to avoid them?
Why is there a PLL in CPU?
How to use tikz in fbox?
Unreliable Magic - Is it worth it?
Is it safe to use c_str() on a temporary string?
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
If the heap is initialized for security, then why is the stack uninitialized?
Does it take more energy to get to Venus or to Mars?
Science fiction (dystopian) short story set after WWIII
How to be diplomatic in refusing to write code that breaches the privacy of our users
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
16 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
16 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
16 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 28 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
16 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
16 mins ago
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
16 mins ago
Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.
– Jack Nimble
16 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