TheGuyWithQuestions Posted May 17, 2018 Share Posted May 17, 2018 Hello everyone, i want to compile a cpp-application on petalinux. But there is no gcc or g++. And if i want to install it via apt-get install, there is no apt. Is there a tutorial existing, how to compile the application code? Link to comment Share on other sites More sharing options...
sbobrowicz Posted May 18, 2018 Share Posted May 18, 2018 @TheGuyWithQuestions You will want to use petalinux-config -c rootfs and enable the packagegroup-buildessential option (it will be in the "misc" folder). It may be called packagegroup-petalinux-buildessential, I'm going off memory here. I know there is also a "selfhosted" packagegroup, but I think I remember determining that the additional packages it adds were not needed in most cases. You can try enabling that packagegroup too if you are not concerned about rootfs size. Once that is enabled you should have gcc, g++, ld, etc installed into your rootfs. This will allow you to do the "self hosted" type of development, for example writing the program on your host machine, transferring the source using scp, and then building on the running system by calling g++ from the command line. Petalinux also provides a simplified environment for cross compilation development, which can be better in some situations (for example, when linking in libraries but trying to keep rootfs size small). This is handled by installing "app" recipes into your petalinux project, which will then automatically be built and installed into your rootfs when petalinux-build is run. For information on developing petalinux apps, see UG1144 from Xilinx. Link to comment Share on other sites More sharing options...
TheGuyWithQuestions Posted May 18, 2018 Author Share Posted May 18, 2018 thanks a lot! Link to comment Share on other sites More sharing options...
Question
TheGuyWithQuestions
Hello everyone,
i want to compile a cpp-application on petalinux. But there is no gcc or g++. And if i want to install it via apt-get install, there is no apt.
Is there a tutorial existing, how to compile the application code?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.