Help Compiling FC to test PR.

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Help Compiling FC to test PR.

Post by bleber »

Hi.
I like to compile freecat to test PR, I start with these guide.
https://wiki.freecadweb.org/Compile_on_Windows

C make no errors, but when copiling have lot of warnings 62+ but not errors.
Finally when execute freecad.exe I have some errors and freecat not start.
freecad.exe system error not found
python38.dll
qt5widgets.dll
qt5gui.dll
qt5core.dll

Info:
W10Home
install GIT Git-2.32.0.2-64-bit
clone: https://github.com/FreeCAD/FreeCAD.git with tortoise GUI
Libpack: FreeCADLibs_12.5.2_x64_VC17.7z
Install Visual Studio Community vs_community__2002586652.1627323458 and install Visual C++ tools for CMake in VSC
install cmake-3.21.1-windows-x86_64, make configure ( no red flags ) make generate and open project.
IN VSC select release and all_build build.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Help Compiling FC to test PR.

Post by openBrain »

I guess that this is what is explained in https://wiki.freecadweb.org/Compile_on_ ... ng_FreeCAD
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Help Compiling FC to test PR.

Post by GeneFC »

I have used those instructions numerous times. The warnings are not important; they just say that some code constructions are not the preferred method.

It is essential that the instructions on the referenced wiki page are followed exactly. Every time I have had a failure I went back and discoved I had skipped something.

The missing files issue indicates you may have skipped the section that says:

Code: Select all

FREECAD_COPY_DEPEND_DIRS_TO_BUILD

FREECAD_COPY_LIBPACK_BIN_TO_BUILD

FREECAD_COPY_PLUGINS_BIN_TO_BUILD
Gene
bleber
Posts: 259
Joined: Thu Jun 30, 2016 5:12 pm

Re: Help Compiling FC to test PR.

Post by bleber »

Ok, thanks, I can now build freecad, but how to test a PR for example "Add Preference Pack support #4787"
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Help Compiling FC to test PR.

Post by Kunda1 »

bieber, you can follow the instructions given by wmayer in this ticket but apply it to the relevant PR.
This is assuming you have previously cloned FreeCAD

Code: Select all

cd Path_to_FreeCAD
git fetch https://github.com/chennes/FreeCAD/ addThemeSupport:addThemeSupport
mkdir ../build_addThemeSupport
git worktree add ../build_addThemeSupport addThemeSupport
cd ../build_addThemeSupport
mkdir build
cd build
cmake .. # eventually pass any parameters or run the GUI of cmake
make
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Help Compiling FC to test PR.

Post by openBrain »

Kunda1 wrote: Fri Jul 30, 2021 12:36 am bieber, you can follow the instructions given by wmayer in this ticket but apply it to the relevant PR.
This is assuming you have previously cloned FreeCAD
IMO using a worktree is a bit overkill for this. :)
The simple method is (for PR 4752 as an example) :

Code: Select all

git fetch origin pull/4752/head:MY_SUPER_TEST
git checkout MY_SUPER_TEST
Then just build (run 'make') as previously.
Post Reply