Compile on windows. MSBUILD error MSB1009 Project file does not exist.

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Compile on windows. MSBUILD error MSB1009 Project file does not exist.

Post by DeepSOIC »

Hi!
I have moved to a new machine, and trying to build FreeCAD.
I am using the same compiler as before (installed fresh from an offline installer i saved previously), same cmake, but different Qt Creator (newer).
I have done cmake configuration, and i can browse the code, even the clang code model is working and parsing the code.
When I hit "Build all" of "Build FreeCAD", I get:
22:45:30: Running steps for project FreeCAD...
22:45:30: Starting: "S:\Qt\cmake3-14-3\bin\cmake.exe" --build . --target all
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: all.vcxproj
22:45:30: The process "S:\Qt\cmake3-14-3\bin\cmake.exe" exited with code 1.
Error while building/deploying project FreeCAD (kit: Desktop (x86-windows-msvc2019-pe-64bit))
When executing step "CMake Build"
22:45:30: Elapsed time: 00:00.
Any ideas? How do I see what is being called, what "project file" is fed to msbuild?
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Compile on windows. MSBUILD error MSB1009 Project file does not exist.

Post by DeepSOIC »

more info...

Qt Creator 4.13.0

In cmake output (see attached file), there are two things that catch my attention:

Code: Select all

...
-- S:/_vt/dev/PC/Qt/FreeCAD/build-debug/src/Mod/Robot/App/RobotObjectPy.cpp
-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
-- S:/_vt/dev/PC/Qt/FreeCAD/build-debug/src/Mod/Import/App/StepShapePy.cpp
...

Code: Select all

...
Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P
...
I don't know what is the first one. The second one puzzles me a bit. Yes i didn't install python, but I did add libpack's bin dir to PATH, and I can launch py interpreter by typing "python" to command prompt.
Attachments
cmake-output.txt
(21.35 KiB) Downloaded 43 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Compile on windows. MSBUILD error MSB1009 Project file does not exist.

Post by DeepSOIC »

Hmm... creating a symlink "ALL.vcxproj" to ALL_BUILD.vcxproj in the build directory seems to have solved it, it's building something... now i just wait for it to finish...

EDIT: it is built, and runs. Still wondering, why did I have to do that, doesn't look right to me...
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Compile on windows. MSBUILD error MSB1009 Project file does not exist.

Post by DeepSOIC »

and I also lost build progress indication, it just shows it's building, and then some time later, -boom- it's done. It used to have a nice progress bar, now it's just sitting at the beginning the whole time.
Post Reply