godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

how to fix scons error "[src\core\AABB.o] the system cannot find the file specified" on visual studio command prompt

Open Onganne opened this issue 4 years ago • 12 comments

I am using visual studio command prompt to run scons of godot cpp, but the error, like the title suggests, appears and I am lost on what to do of it.

I tried researching ones again, but to no avail, the error is just too general for me to figure it out. I am also a beginner so a beginner friendly advise will really help so that the godot cpp scons will run and make file on designated area (according to the video and insturction) thx c:

Onganne avatar Jul 10 '21 04:07 Onganne

Can you paste the complete error message here? This may be a duplicate of https://github.com/godotengine/godot-cpp/issues/465.

Calinou avatar Jul 10 '21 12:07 Calinou

Oh! Its u once again c: Hello! N0w I feel embarassed...but thx for responding and helping c:

Here is the full weird error

C:\Users\User\SimpleLibrary\godot-cpp>scons use_mingw=yes platform=windows generate_bindings=yes scons: Reading SConscript files ... src\gen: File exists src\gen: File exists scons: done reading SConscript files. scons: Building targets ... g++ -o src\core\AABB.o -c -O3 -std=c++14 -Wwrite-strings -I. -Igodot-headers -Iinclude -Iinclude\gen -Iinclude\core src\core\AABB.cpp scons: *** [src\core\AABB.o] The system cannot find the file specified scons: building terminated because of errors.

C:\Users\User\SimpleLibrary\godot-cpp>*** [src\core\AABB.o] The system cannot find the file specifie*** [src\core\AABB.o] The system cannot find the file specifie*** [src\core\AABB.o] The system cannot find the file specifie*** [src\core\AABB.o] The system cannot find the file specifie

Very COnfusing as u can see But Thx Again Very Much!

Onganne avatar Jul 11 '21 00:07 Onganne

I realized that this may NOT be a duplicate of the one you recongnize THis is due to the error itself

Hope to get a reply, thx c:

Onganne avatar Jul 15 '21 00:07 Onganne

I realized that this may NOT be a duplicate of the one you recongnize THis is due to the error itself

Hope to get a reply, thx c:

Sorry, I don't know what could be causing this.

Calinou avatar Jul 15 '21 00:07 Calinou

It is okay, its not like all errors are understandable Especially this one..hehe scons: *** [src\core\AABB.o] The system cannot find the file specified

If I may get a clue to why this error exist it can help I am using VisualStudio 2019 and using the command prompt in it

(just giving information if it can help hehe)

THen followed the instruction of the godot cpp and the other one (the old issue u solved for me, thx again)

So my question is instead, what does the error mean? Like what does [src\core\AABB.o] mean? It seems to be a file that cannot be found for some reason

Any Advise or Information can help Thx Again!

Onganne avatar Jul 15 '21 01:07 Onganne

welp, its been a long month of trial and error and I have yet to find the problem this is not good If anyone else can help please let me now! I will still be trying to find an answer to this problem

Onganne avatar Aug 02 '21 03:08 Onganne

For me, Windows 64-bit library gets successfully built with cl, installed with VS2017. But, I get this exact same error if I don't want to use cl.exe and use "use_mingw=True" with the scons command. This might be mingw64.exe and g++ related. On the Windows machine I tested, mingw64 is installed with the MSYS2.

BeytoA avatar Jan 29 '22 19:01 BeytoA

For me, Windows 64-bit library gets successfully built with cl, installed with VS2017. But, I get this exact same error if I don't want to use cl.exe and use "use_mingw=True" with the scons command. This might be mingw64.exe and g++ related. On the Windows machine I tested, mingw64 is installed with the MSYS2.

Run into this too, error from scons is a bit misleading by some reason. It turned out that I didn't have g++ on my MSYS2 environment. Check that gcc package is installed in your MSYS2 MinGW64.

Denmey avatar Feb 05 '22 09:02 Denmey

I encountered this problem as well, please check if you're using preview version of visual studio, vswhere.exe won't return preview version of vs by default.

Notarium avatar Apr 22 '23 16:04 Notarium