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)












3















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?










share|improve this question



























    3















    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?










    share|improve this question

























      3












      3








      3


      2






      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 5 '17 at 9:45









      V BotaV Bota

      446515




      446515






















          2 Answers
          2






          active

          oldest

          votes


















          2














          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.






          share|improve this answer
























          • Did you have to add --target-arch armhf to your call to snapcraft?

            – RQDQ
            Jun 12 '18 at 14:12



















          0














          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





          share|improve this answer








          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.

            – Jack Nimble
            16 mins ago












          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          2














          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.






          share|improve this answer
























          • Did you have to add --target-arch armhf to your call to snapcraft?

            – RQDQ
            Jun 12 '18 at 14:12
















          2














          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.






          share|improve this answer
























          • Did you have to add --target-arch armhf to your call to snapcraft?

            – RQDQ
            Jun 12 '18 at 14:12














          2












          2








          2







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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













          0














          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





          share|improve this answer








          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.

            – Jack Nimble
            16 mins ago
















          0














          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





          share|improve this answer








          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.

            – Jack Nimble
            16 mins ago














          0












          0








          0







          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





          share|improve this answer








          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          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






          share|improve this answer








          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 28 mins ago









          Jack NimbleJack Nimble

          1




          1




          New contributor




          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Jack Nimble is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.













          • 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





          Just run snapcraft --target-arch=armhf, without the "build" keyword. Produces a nice snap package ready to go.

          – Jack Nimble
          16 mins ago


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...