Hi,

This error doesn't look immediately familiar.
Given that you are using `ubuntu22_04` I take it that this is on `develop` or the `v2.5.0-beta`?
How are you building the application?

My immediate suggestion would be to move to the root directory and build with:

```bash
source ./cdk/opencpi-setup.sh -r
ocpidev build -d /path/to/application/dir
```

If that still creates the `target-` directory:

```bash
ocpidev build -d /path/to/application/dir --rcc-platform ubuntu22_04
```

Between the two of those, that should make sure the build code definitely knows what the platform is and should name that directory correctly.

It looks like you're running some higher level command that does a build and then runs the application?
Can you clarify what commands your running, and which one you think is causing this problem?

Kind Regards,

D. Walters

On Tue, Apr 25, 2023 at 4:17 PM John McCabe <jmccabe@kirintec.com> wrote:

As a matter of interest, which version of OpenCPI have you installed, and did you check the installation guide for what versions of Ubuntu are supported?

 

John McCabe
Principal Software Engineer
Kirintec Ltd
 
  
+44 (0) 1989 568350
   +44 7551 547 473
  
jmccabe@kirintec.com
  
www.kirintec.com
Follow us: 


 
Kirintec Events and News
 
.

Receipt of this e-mail is subject to conditions, view our email disclaimer. Kirintec Limited of Ross-on-Wye HR9 5PB is ​registered in England and Wales with the company number 6699502. 

From: dwp@md1tech.co.uk <dwp@md1tech.co.uk>
Sent: Tuesday, April 25, 2023 3:48 PM
To: discuss@lists.opencpi.org
Subject: [Discuss OpenCPI] Help changing target directory

 

Hello,

I have recently installed openCPI on a machine running Ubuntu. I am having trouble getting applications to run, getting the following output.

Compiling source file: example_rxToFile.cc for platform ubuntu22_04
Creating executable for "example_rxToFile" running on platform ubuntu22_04 from target-ubuntu22_04/example_rxToFile.o
Executing the example_rxToFile application.
/bin/bash: line 1: target-/example_rxToFile: No such file or directory
make: *** [/home/dwp/git/opencpi/cdk/include/application.mk:70: run] Error 127

It is outputting the compiled files into the directory target-ubuntu22_04 but then searching for them in the directory target-.

If I rename the folder target-ubuntu22_04 to target- the application runs. How can I specify the name of the target directory used to run applications from?
I had a look inside the makefile but I am not too familiar with the syntax and couldn’t see anything obvious.

Any help is really appreciated.

Thanks in advance,
Dan

_______________________________________________
discuss mailing list -- discuss@lists.opencpi.org
To unsubscribe send an email to discuss-leave@lists.opencpi.org