Error: unable to open output file 'build/src/main.o': 'No such file or directory' in Vexcode Pro V5 Big Sur

I get the following output when building my project in VEXcode Pro V5:

[info]: Saving Project …
[info]: Project saved!
unix build for platform vexv5
CXX src/main.cpp
error: unable to open output file ‘build/src/main.o’: ‘No such file or directory’
1 error generated.
make: *** [build/src/main.o] Error 1
[error]: make process closed with exit code : 2

I’m using the latest macOS Big Sur and VEXcode Pro V5 Big Sur versions at time of writing:

  • macOS Big Sur - Version 11.5.2
  • VEXcode Pro V5 - v2.0.3 for Mac Big Sur (Beta)

The project is the default one that’s created when you make a new project, with nothing changed.
I’ve tried making a ‘build’ folder in the project directory as suggested by other posts, but it hasn’t changed anything.
I’d appreciate any help on this issue!

I’m pretty sure there are two things wrong here. First, the file or folder you’re trying to save it to doesn’t exist, and there is something wrong with the code (seen in "closed with exit code:2). I would suggest going to the settings section and redoing the default folder and try to fix the exit code error.

Click the preferences to find the settings
image

image

1 Like

It doesn’t seem like I can change the default folder, nothing happens whenever I click or try to type anything.
Screen Shot 2021-08-18 at 8.28.11 PM
edit: also, I’m able to change the program folder on my Windows installation (which is also able to build the project)

Try restarting the program and make sure you have it saved before you do so. I’m able to click on it and adjust the save place. I don’t know how it might work as I’m on windows 10.

1 Like

Clicking on it still does nothing after restarting the program, even though it does work on my windows 10 pc, as you’ve said.

Although, I’m fairly sure that it’s a valid location, and I can navigate to it from the Finder

Is this a new install ? or was it working before and you updated OSX or something like that.

3 Likes

Try going to your file explorer on mac os where you can see all your files and try to find the output file. If that doesn’t work try creating a folder with that name so it does exist.

1 Like

It’s a new install (20 character limit)

I tried creating a ‘build/src/’ directory in my project directory, and I got a new error:

[info]: Saving Project …
[info]: Project saved!
unix build for platform vexv5
LINK build/EpicGamerProject.elf
/bin/sh: arm-none-eabi-ld: command not found
make: *** [build/EpicGamerProject.elf] Error 127
[error]: make process closed with exit code : 2

Although there is now a ‘main.o’ file in the ‘build/src/’ folder

so it sounds like either the VEXcode V5 Pro install is damaged (which would explain why it can’t find some of the tools), or Big Sur 11.5.2 broke something, that version has only been out for a few days, I’m not sure if anyone has tested against that version yet. Big Sur has been very problematic for all sorts of applications.

Are you on an Intel or M1 Mac ?

3 Likes

Intel (20 character limit)

The dev team did a quick check of VEXcode V5 Pro running under 11.5.2 today, they find no issues. So perhaps it’s a permissions issue or corrupted install. You can try reinstalling (download the installer again), but not sure what else to suggest other than that.

4 Likes

Alright, I gave up and just ended up using a windows virtual machine.