This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Open Embedded Studio Windows project on Mac

I have a project that I assume was originally set up with SES on Windows.  I need to build it with MacOS but I get an error 'sdk_errors.h file not found.'  I assume this is a path issue going from Windows to MacOS.  Is there an easy way to migrate the project?

Parents
  • Hi,

    SES is not the best IDE when it comes to project portability, however I have found quite a good way to make the project functional on any platform and any computer.

    Step 1. Make a global macro pointing to the SDK. This can be easily done by going to "Preference -> Building -> Global Macros" and adding a new entry SDK=/absolute/directory/to/the/sdk/nRF5_SDK. So the value should be an absolute path to your Nordic SDK. This path will probably change depending on which machine you are working on. You need to do this only once and all your projects will see this constant.

    Step 2. Open your project file (.emProject) with any text or code editor and replace all the relative references to SDK folder with $(SDK). So for example this ../../../../../../components/libraries/util/app_error.c should be replaced by this $(SDK)/components/libraries/util/app_error.c.

    Step 3. Reload the project and compile.

    Hope that this helps ;)

    /Erik

Reply
  • Hi,

    SES is not the best IDE when it comes to project portability, however I have found quite a good way to make the project functional on any platform and any computer.

    Step 1. Make a global macro pointing to the SDK. This can be easily done by going to "Preference -> Building -> Global Macros" and adding a new entry SDK=/absolute/directory/to/the/sdk/nRF5_SDK. So the value should be an absolute path to your Nordic SDK. This path will probably change depending on which machine you are working on. You need to do this only once and all your projects will see this constant.

    Step 2. Open your project file (.emProject) with any text or code editor and replace all the relative references to SDK folder with $(SDK). So for example this ../../../../../../components/libraries/util/app_error.c should be replaced by this $(SDK)/components/libraries/util/app_error.c.

    Step 3. Reload the project and compile.

    Hope that this helps ;)

    /Erik

Children
No Data
Related