New libpacks for Windows with VTK and OCCT7 by sgrogan
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
I was away, and just tested your way of building freecad.
It worked perfectly. I just have two remarks which for my opinion could be helpful for newbies :
- "14) Copy the bin subdirectory to the root of the build folder."
You should specify which bin subdirectory you mean.
You can reuse the same item in CompileOnWindows page, which is : "Copy libpack\bin folder into the new build folder CMake created"
- "16) There will be 2 drop downs in the VS toolbar menu. Change Debug to Release.
Click the dropdown for Win32 and “Configuration Manager...” From the “Active solution
platform” dropdown choose new, then from the “Type or select the new platform” dropdown select
“x64” Close all sub-menus."
I changed debug to release, but the dropdown was already on X64, no need to switch from Win32 to x64 : may be it could specified as
optional, if x64 is not already set ?
Thanks again !
It worked perfectly. I just have two remarks which for my opinion could be helpful for newbies :
- "14) Copy the bin subdirectory to the root of the build folder."
You should specify which bin subdirectory you mean.
You can reuse the same item in CompileOnWindows page, which is : "Copy libpack\bin folder into the new build folder CMake created"
- "16) There will be 2 drop downs in the VS toolbar menu. Change Debug to Release.
Click the dropdown for Win32 and “Configuration Manager...” From the “Active solution
platform” dropdown choose new, then from the “Type or select the new platform” dropdown select
“x64” Close all sub-menus."
I changed debug to release, but the dropdown was already on X64, no need to switch from Win32 to x64 : may be it could specified as
optional, if x64 is not already set ?
Thanks again !
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
I've patched netgen 5.3 to work with occt7 (it should work with 7.1, but I have only tested with 7.0 in the libpack). The code is here: https://github.com/peterlama/netgen/tree/5.3-occt7-win. In addition to applying wmayer's and vejmarie's changes, I have modified the project file and install script to makes things more convenient. I would have used netgen 6.2, but I read somewhere it uses C++11 features that don't work with VS 2013.
Install instructions:
1. Checkout branch 5.3-occt7-win in https://github.com/peterlama/netgen.git
2. Open netgen\windows\nglib_config.props in a text editor and change <PrefixPath> for the x64 configuration to the path of FreeCADLibs_11.5.2_x64_VC12 (e.g C:\Users\peter\freecad\FreeCADLibs_11.5.2_x64_VC12). The location of the occt include folder is specified in nglib_config.props too, if you need to change it.
3. Open nglib.sln in VS 2013
4. Build the Release(OCC)|x64 or Debug(OCC)|x64 configuration.
5. The library and headers will be installed to netgen\nglib-instOCC_x64
Note that the Win32 configuration with FreeCADLibs_11.5.1_x86_VC12 is not working at the moment. I haven't found out why yet.
My windows 7 install is broken currently, or else I would provide a pre-compiled package.
I hope it works for you guys.
Install instructions:
1. Checkout branch 5.3-occt7-win in https://github.com/peterlama/netgen.git
2. Open netgen\windows\nglib_config.props in a text editor and change <PrefixPath> for the x64 configuration to the path of FreeCADLibs_11.5.2_x64_VC12 (e.g C:\Users\peter\freecad\FreeCADLibs_11.5.2_x64_VC12). The location of the occt include folder is specified in nglib_config.props too, if you need to change it.
3. Open nglib.sln in VS 2013
4. Build the Release(OCC)|x64 or Debug(OCC)|x64 configuration.
5. The library and headers will be installed to netgen\nglib-instOCC_x64
Note that the Win32 configuration with FreeCADLibs_11.5.1_x86_VC12 is not working at the moment. I haven't found out why yet.
My windows 7 install is broken currently, or else I would provide a pre-compiled package.
I hope it works for you guys.
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
Thanks Peter!! I think I still have a non-portable path in the 11.5.1 build. Please don't spend time on this, I still need to build OCCT 7.1 with wmayers patch to re-name the debug libs properly.
Speaking of debug libs, has anyone found a solution for VTK debug libs, similar to what wmayer has provided for OCCT?
"fight the good fight"
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
Great! This one was hanging in the air for a long time
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
Fantastic! Thanks again Peter
"fight the good fight"
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
https://forum.freecadweb.org/viewtopic. ... 10#p139222peterl94 wrote:I would have used netgen 6.2, but I read somewhere it uses C++11 features that don't work with VS 2013.
Cool! Never heard of that one.I recently discovered cmake has a built-in variable for doing this. No patching required, just set CMAKE_DEBUG_POSTFIX=d
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11654 (Git)
Build type: Release
Branch: master
Hash: 81bdb1f276540427872c72d2033c3f400a89a626
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/UnitedStates (en_US)
First time in a long time I've been able to compile FC w/nglib on Win!
I have a problem with OCCT7.1, I'll post more on this later.
Thanks again peterl94, this has been kicking my ass for a long time.
"fight the good fight"
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
Just tried it myself. It should work now with this commit.
Re: New libpacks for Windows with VTK and OCCT7 by sgrogan
Thanks everyone that worked on this, and a special thanks to Peter for making it so simple that even I can't muck it up
"fight the good fight"