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)










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
            41 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
            41 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
            41 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 52 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
            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





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

          – Jack Nimble
          41 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

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»