Template Project for C++ Makefile doesn't build

Hi,

I’m having trouble running the Toradex C++ Makefile template. I’ve successfully connected my board and set up my host as specified.
However, when I attempt to run the project, I receive the error: “‘/home/torizon/app/cpp’ does not exist”.

I have made no modification to the Toradex template. Additionally, the build log does not indicate any errors and states that the path exists:

created directory /home/torizon/app
./
cpp
         87.904 100%   52,58MB/s    0:00:00 (xfr#1, to-chk=1/3)
main.o
         32.880 100%   31,36MB/s    0:00:00 (xfr#2, to-chk=0/3)

sent 120.992 bytes  received 97 bytes  80.726,00 bytes/sec
total size is 120.784  speedup is 1,00

VsCode version: 1.94.2
Apalis iMX8QM V1.1
Ixora Carrier Board
TorizonCore version 6.8.0-build.22

The error:
image

Any help would be appreciated.

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


It seems like you’re encountering an issue with the directory path when trying to run the Toradex C++ Makefile template. The error message “‘/home/terizon/app/cpp’ does not exist” suggests that there might be a typo in the path. The correct path should likely be /home/torizon/app/cpp instead of /home/terizon/app/cpp.

Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. Verify the Path: Double-check the path in your project configuration to ensure it is correctly set to /home/torizon/app/cpp.

  2. Check the Build Configuration: Ensure that the build configuration in your VS Code project is correctly pointing to the right directories and files.

  3. Recreate the Directory: If the directory /home/torizon/app/cpp does not exist, you can manually create it using the command line on your host machine or directly on the target device.

  4. Review the Build Log: Since the build log indicates that the path exists, ensure that there are no other underlying issues or misconfigurations that might be causing the error.

  5. Check for Typos: Ensure there are no typos in your configuration files or scripts that might be causing the incorrect path to be referenced.

If these steps do not resolve the issue, you may want to consider reaching out to the Toradex Developer Community for further assistance, as they might have more specific insights into this problem.

Please, also check if these links can help you solve your problem:

Import an Eclipse C project into Visual Studio Code.

You’re right, I mistyped the path from the error message. The error message contains the correct path, which can be verified in the picture attached to the original post.

Hi @glad !

Was this solved? Do you need further assistance?

Best regards,

Unfortunately, it is not solved. I mistyped the path when I copied it from the error message to this thread. The path in the error message is correct.

To clarify, I have not made any changes to the C++ template. I changed no path.

I mistyped when I copied the path from the error message to this post.

Hi @glad

Thanks for the clarification.

When you say “run the project”, does it mean that you selected the Launch configuration for ARMv8 and pressed F5 so you could remote debug the project on the module?

Could you please share the complete log from the DEBUG CONSOLE of you VS CODE?


Quickly testing on my side, I just installed Torizon OS 6.8.0 on an Apalis iMX8QM 4GB WB IT V1.1C (on an Ixora V1.2A), created a project using Torizon IDE from template C++ Makefile Console Application.

After adding the Apalis iMX8QM to the Torizon IDE and setting it as default and selecting Torizon ARMv8 in the Run and Debug tab, I pressed F5 and the project was built, deployed and executed on the module. I can see the container running on the module:

torizon@apalis-imx8-06980209:~$ docker ps -a
CONTAINER ID   IMAGE                                           COMMAND               CREATED              STATUS              PORTS                                       NAMES
9f4004a4add0   192.168.0.20:5002/testcppmakefile-debug:arm64   "/usr/sbin/sshd -D"   About a minute ago   Up About a minute   0.0.0.0:2230->2230/tcp, :::2230->2230/tcp   torizon-testcppmakefile-debug-1

And I got the “Hello Torizon!” output from the Debug Console on VS Code:

All this without making a change on the template.

So I could not reproduce your issue.

If you do not manage to find out what you could have done differently, could you please just try again recreating the project?

Best regards,

I created a new project which worked fine, so I diffed the two projects. I had forgotten that I initially had issues with cppdb, so I switches the debugger to lldb. Switching back to cppdb solved the issue.

Thank you for taking the time to help me and verify my report.