Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

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
Yasser
Posts: 35
Joined: Tue Dec 15, 2020 4:28 pm

Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by Yasser »

Hello,
I'v got an .obj files after building by CMake and Ninja using these commands
Note: the bin directory contains 7 files only, 2 freecad .exe files with 2 .pyd and 3 .dll.

Code: Select all

mkdir build
cd build
cmake -G "Ninja" ../FreeCAD  -DBUILD_FEM=OFF
ninja -j 4
Now .. how can i get the .exe files directly by invoking the linker with the compiler during building ??
i'd like to get all exe files just like the portable version of FreeCAD.
thank you.
They call me Baba, the bug master :D
Let us throw some stones into still waters
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by adrianinsaval »

The portable version has a lot of exe because those are from the libraries, FreeCAD itself only has two exe AFAIK
User avatar
Yasser
Posts: 35
Joined: Tue Dec 15, 2020 4:28 pm

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by Yasser »

adrianinsaval wrote: Sat Jun 18, 2022 1:30 pm The portable version has a lot of exe because those are from the libraries, FreeCAD itself only has two exe AFAIK
When i run freecad.exe it gives me nothing, it doesn't start up as usual as the downloaded one !!
the building of freecad ended successfully (with some warnings and notes).
what i know is that .obj files needs the linker to be an .exe files or .dll files
what am i missing here ???
They call me Baba, the bug master :D
Let us throw some stones into still waters
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by adrianinsaval »

Are you running by double clicking on the exe or are you calling it from within msys, my guess is that it doesn't find the libraries by default
User avatar
Yasser
Posts: 35
Joined: Tue Dec 15, 2020 4:28 pm

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by Yasser »

adrianinsaval wrote: Sat Jun 18, 2022 4:14 pm Are you running by double clicking on the exe or are you calling it from within msys, my guess is that it doesn't find the libraries by default
Yes i am running it by double clicking on the freecad.exe file.
They call me Baba, the bug master :D
Let us throw some stones into still waters
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by openBrain »

IIRC, you have to activate copy of deps into build folder so that you can run it that way.
User avatar
Yasser
Posts: 35
Joined: Tue Dec 15, 2020 4:28 pm

Re: Win 7 Msys2 : How can i get all FreeCAD project .exe files using CLang and Ninja

Post by Yasser »

There is a file named ninja_deps already exist in the build folder.
so how can i run freecad from msys2 console (Terminal) !!
Okay it is running now
sorry guys i'm new :)

Code: Select all

cd build
./bin/freecad
They call me Baba, the bug master :D
Let us throw some stones into still waters
Post Reply