Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
N
nemomobile
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • NemoMobile
  • nemomobile
  • Wiki
  • Develop_with_Toolchain

Develop_with_Toolchain

Last edited by eetu Jul 18, 2019
Page history

Cross Compile with SDK

Setup the environment to make development easier.

Get and install the SDK

Download the SDK from Releases section of this project.

Create a directory for the SDK where you will download and install the SDK.

mkdir toolchain
cd toolchain

Once you have downloaded the SDK, unpack it in your newly created toolchain folder.

Install the SDK

Still inside the toolchain folder. Run the following commands to install the SDK.

chmod +x oecore-x86_64-i586-toolchain-nodistro.0.sh
./oecore-x86_64-i586-toolchain-nodistro.0.sh

nemox86 SDK installer version nodistro.0
========================================
Enter target directory for SDK (default: /usr/local/oecore-x86_64): ~/toolchain/

Setting up the environment

You will notice that the SDK has installed environment-setup-i586-oe-linux file in the directory. This contains all the important environment variables for the SDK. Before the SDK works you need to source the environment.

. ~/toolchain/environment-setup-i586-oe-linux

Compile Hello World

Create empty helloworld.c file and paste following:

#include <stdio.h>
int main(void)
{
   printf ("Hello World!\n");
   return 0;
}

Now we can compile it:

make helloworld

Output should be executable binary.

Remote Debugging

TODO, more info on Yocto Dev-Manual.

Clone repository
  • Adding_Recipes
  • Develop_with_QtCreator
  • Develop_with_Toolchain
  • Home
  • Package_Feed
  • building
  • emulator
More Pages