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

[Problem] How to compile for Windows? #1056

Open
2 tasks done
jmozmoz opened this issue Jan 29, 2025 · 2 comments
Open
2 tasks done

[Problem] How to compile for Windows? #1056

jmozmoz opened this issue Jan 29, 2025 · 2 comments

Comments

@jmozmoz
Copy link

jmozmoz commented Jan 29, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Version

0.21 (Development)

Full version info

The current LinkStable branch (a9810d509a6f112b5ac03d4d4831b67e6bffd5b7)

Subproject(s) affected?

None

Problem description

I tried to compile the latest commit of the LinkStable branch (a9810d5) on Windows, but I ran into different problems, depending on the combination of compiler and libpack.

  • Visual Studio 2022 and libpack versions below LibPack-1.0.0 Version 3.0.0: The error described here: C2039 "seekpos" is not a member of class "std::fpos<_Mbstatet>"  FreeCAD/FreeCAD#17813

  • Visual Studio Build Tools 2019 and libpack versions >=3.0.0: Does not work, because QT 5 is missing

  • Visual Studio Build Tools 2019 and libpack versions LibPack-0.21-V2.11 and LibPack-OCC76-V2 (the default used in GitHub pipelines): Compiler error in Part.dll

xxx\FreeCAD\src\Mod\Part\App\AppPartPy.cpp(393,51): error C2664: 'HMODULE LoadLibraryW(LPCWSTR)': cannot convert argument 1 from 'const char [11]' to 'LPCWSTR' [xxx\FreeCAD\build19\src\Mod\Part\App\Part.vcxproj]
xxx\FreeCAD\src\Mod\Part\App\TopoShapeEx.cpp(2293,21): error C2653: 'BRepFeat': is not a class or namespace name [xxx\FreeCAD\build19\src\Mod\Part\App\Part.vcxproj]
xxx\FreeCAD\src\Mod\Part\App\TopoShapeEx.cpp(2293,31): error C3861: 'FaceUntil': identifier not found [xxx\FreeCAD\build19\src\Mod\Part\App\Part.vcxproj]
xxx\FreeCAD\src\Mod\Part\App\TopoShapeEx.cpp(2295,21): error C2653: 'BRepFeat': is not a class or namespace name [xxx\FreeCAD\build19\src\Mod\Part\App\Part.vcxproj]
xxx\FreeCAD\src\Mod\Part\App\TopoShapeEx.cpp(2295,31): error C3861: 'FaceUntil': identifier not found [xxx\FreeCAD\build19\src\Mod\Part\App\Part.vcxproj]

What combination of LibPack/compiler is working for Windows?

After Configure and Generate in cmake-gui, I used this command to start the build:

cmake --build . --config Release --target ALL_BUILD

Anything else?

When checking out the submodules, one points to a non-existing commit:

git submodule update --recursive --init
fatal: remote error: upload-pack: not our ref f0ccbe232f05ef4113143b8cd6c6c307de362aae
fatal: Fetched in submodule path '../src/3rdParty/Diligent/DiligentCore/ThirdParty/xxHash', but it did not contain f0ccbe232f05ef4113143b8cd6c6c307de362aae. Direct fetching of that commit failed.
fatal: Failed to recurse into submodule path '../src/3rdParty/Diligent/DiligentCore'
fatal: Failed to recurse into submodule path '../src/3rdParty/Diligent'

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Shkolik
Copy link

Shkolik commented Feb 17, 2025

Same question... Would be great to have if not instruction, but at least version of the lib-pack to build a project.

@legion-96
Copy link

I have been trying to figure this out as well itd be pretty cool if someone could help answer this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants