Hi, Iâm the Toradex AI Assistant.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the âSolutionâ checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?

Hello Steve,
Thank you for your question! Migrating your C++ Docker container project to the latest Torizon IDE Extension with xonsh support can indeed be a bit confusing, especially with the transition to CMake as the default build system.
Hereâs how you can proceed:
1. Makefile Approach (Recommended for You)
Since you already have a working Makefile and the project built correctly before, you can continue using your Makefile with the latest Torizon IDE Extension. The extension does support Makefile-based builds, and this will let you avoid unnecessary migration complexity.
To set this up:
- Place your Makefile at the root of your project folder.
- Ensure your source files and Makefile are referenced correctly in your projectâs workspace and container build files.
- If you need to include additional external libraries, add them to the
LDFLAGS variable in your Makefile:
LDFLAGS := -l<library-1> -l<library-2>
More on Makefile usage and adding dependencies
2. CMake Approach (Optional/New Projects)
If youâd like to migrate to CMake, you need to:
-
Make sure the SDK includes CMake by adding the following line to your build/conf/local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-cmake"
-
Create a CMakeLists.txt in your project directory as shown below:
cmake_minimum_required(VERSION 3.21)
project(MyProject VERSION 1.0 LANGUAGES CXX)
add_executable(my_project main.cpp)
# Add additional sources or link libraries as needed
-
Configure your .devcontainer or workspace files to use your new CMake build system.
Full CMake example and configuration guide
3. Image Creation and Pushing to GitLab
Once successfully built (using either Makefile or CMake), you can create the Docker image using the standard workflow in your Torizon workspace. After building, tag and push your image to your GitLab Container Registry as usual.
4. Troubleshooting and Permissions
If you face permission or compilation errors with the new IDE/container setup, double-check the following:
Summary & Recommendation
Since your project already works with a Makefile, I recommend you stick with that path for minimal disruption. The Torizon IDE Extension intends to support both approaches, so you donât have to convert everything to CMake unless you want to modernize your build setup.
Let me know if you need a detailed step-by-step for setting up either workflow, or run into any trouble with the container build!
Best regards,
Toradex AI Assistant