Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling BUILD_MATERIAL in CMake breaks FreeCAD build #13922

Open
2 tasks done
phaseloop opened this issue May 9, 2024 · 1 comment
Open
2 tasks done

Disabling BUILD_MATERIAL in CMake breaks FreeCAD build #13922

phaseloop opened this issue May 9, 2024 · 1 comment
Labels
Bug This issue or PR is related to a bug Materials Materials related Packaging/building Related to building, compiling or packaging FreeCAD WB Part Related to the Part Workbench

Comments

@phaseloop
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

When disabling option BUILD_MATERIAL in CMake - during compilation following error occurs:

ImportExportSettings.cpp
 ImportExportSettings.cpp
 mocs_compilation_Release.cpp
LINK : fatal error LNK1181: cannot open input file 'Materials.lib' [D:\release3\src\Mod\Part\App\Part.vcxproj]
 Automatic MOC and UIC for target E57Format

FreeCAD.exe binary is being built but when started - UI is non-functional (lacks all widgets and menus).

Judging from FreeCAD compiling documentation - CMake should raise an error when one of the dependencies is not enabled.

Full version info

0.22.0dev (main branch). Build on Windows 10 using Visual Studio 2022.

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz maxwxyz added Bug This issue or PR is related to a bug WB Part Related to the Part Workbench Packaging/building Related to building, compiling or packaging FreeCAD Materials Materials related labels May 9, 2024
@phaseloop
Copy link
Author

Same issue is with BUILD_ARCH - if disabled, it breaks Draft workbench which in turns breaks CAM workbench. Opening CAM Job object edit throws an error that Draft can't import arch_rc module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug Materials Materials related Packaging/building Related to building, compiling or packaging FreeCAD WB Part Related to the Part Workbench
Projects
None yet
Development

No branches or pull requests

2 participants