New libpacks for Windows with Qt5.15, OCC7.5

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: New libpacks for Windows with Qt5.12.6, OCC7.4

Post by HakanSeven12 »

HakanSeven12 wrote: Tue Jun 23, 2020 7:36 am Can someone update pivy for LP? With Conda build SoGeo classes working fine. But LP build gives error.

Code: Select all

During initialization the error "module 'pivy.coin' has no attribute 'SoGeoCoordinate'" occurred in freecad.trails
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 148, in InitApplications
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  ...
  File "C:\Users\thomas.schrader\AppData\Roaming\FreeCAD\Mod\Trails\pivy_trackers\pivy_trackers\coin\coin_enums.py", line 342, in NodeTypes
    GEO_COORDINATE = coin.SoGeoCoordinate
AttributeError: module 'pivy.coin' has no attribute 'SoGeoCoordinate'
--------------------------------------------------------------------------------
I noticed this issue months ago. LP versions doesn't support SoGeo nodes. This nodes are my workbench dependences. If someone can fix it that would be great. Conda versions doesn't have this issue.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New libpacks for Windows with Qt5.12.6, OCC7.4

Post by sgrogan »

HakanSeven12 wrote: Wed Nov 11, 2020 11:09 pm I noticed this issue months ago. LP versions doesn't support SoGeo nodes. This nodes are my workbench dependences. If someone can fix it that would be great. Conda versions doesn't have this issue.
Can you please post here: https://forum.freecadweb.org/viewtopic.php?f=42&t=52043
"fight the good fight"
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: New libpacks for Windows with Qt5.12.6, OCC7.4

Post by apeltauer »

kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by kisolre »

Not sure if it is related to the LibPack or the new compiler so decided to post here. I made a fresh build to try the latest 12.4.2 libpack and Visual Studio 2019. All went well (ALL_BUILD, INSTALL) but when I run that newly built FreeCAD without any command line parameters I get 3 error windows about unrecognized command line option:
.
Unrecognized option m.JPG
Unrecognized option m.JPG (79.83 KiB) Viewed 12287 times
.

FreeCAD then runs normally.
Here is also the report view output if it is relevant:

Code: Select all

15:47:18  OpenGL version is: 4.6 (4.6.0 NVIDIA 445.75)
15:47:18  Run Gui init script
15:47:18  Init: Running FreeCADGuiInit.py start script...
15:47:18  Init:   Searching modules...
15:47:19  Init:      Initializing E:\FC_Local\Mod\AddonManager... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Arch... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Draft... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Drawing... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Fem... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Idf(InitGui.py not found)... ignore
15:47:19  Init:      Initializing E:\FC_Local\Mod\Image... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Import... done
15:47:19  Init:      Initializing E:\FC_Local\Mod\Inspection... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Material... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Measure(InitGui.py not found)... ignore
15:47:20  Init:      Initializing E:\FC_Local\Mod\Mesh... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\MeshPart... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\OpenSCAD... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Part... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\PartDesign... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Path... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Points... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Raytracing... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\ReverseEngineering... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Robot... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Show(InitGui.py not found)... ignore
15:47:20  Init:      Initializing E:\FC_Local\Mod\Sketcher... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Spreadsheet... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Start... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Surface... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\TechDraw... done
15:47:20  Init:      Initializing E:\FC_Local\Mod\Test... done
15:47:21  Init:      Initializing E:\FC_Local\Mod\Tux... done
15:47:21  Init:      Initializing E:\FC_Local\Mod\Web... done
15:47:21  Module: Part
15:47:21  Loading Part module... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\A2plus... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\ArchTextures... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Assembly4... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Autoload... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\BIM... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\BOLTSFC(InitGui.py not found)... ignore
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\CfdOF... done
15:47:21  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\CubeMenu... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\CurvedShapes... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Curves... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\CycloidGearBox... done
15:47:22  Loading Path module... done
15:47:22  Loading PathStock... done
15:47:22  Loading Sketcher module... done
15:47:22  Loading PathToolControllerGui... done
15:47:22  Loading PathToolController... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Defeaturing... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\dodo... done
15:47:22  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\DynamicData... done
15:47:23  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\ExplodedAssembly... done
15:47:23  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\fasteners... done
15:47:23  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\FCGear(InitGui.py not found)... ignore
15:47:23  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\flamingo... failed
15:47:23  ----------------------------------------------------------------------------------------------------
15:47:23  Traceback (most recent call last):
  File "<string>", line 131, in InitApplications
  File "<string>", line 25, in <module>
  File "<string>", line 30, in flamingoToolsWorkbench
  File "E:\FC_Local\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'DraftSnap'
15:47:23  ----------------------------------------------------------------------------------------------------
15:48:08  During initialization the error "No module named 'DraftSnap'" occurred in C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\flamingo\InitGui.py
15:48:08  Please look into the log file for further information
15:48:08  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\InventorLoader... failed
15:48:08  ----------------------------------------------------------------------------------------------------
15:48:08  Traceback (most recent call last):
  File "<string>", line 131, in InitApplications
  File "<string>", line 56, in <module>
  File "<string>", line 46, in checkImports
  File "E:\FC_Local\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\InventorLoader\importerUtils.py", line 14, in <module>
    from olefile       import OleFileIO
  File "E:\FC_Local\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'olefile'
15:48:08  ----------------------------------------------------------------------------------------------------
15:48:09  During initialization the error "No module named 'olefile'" occurred in C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\InventorLoader\InitGui.py
15:48:09  Please look into the log file for further information
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\kicadStepUpMod... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\lattice2... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Manipulator... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Mechatronic... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\MeshRemodel... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Mod.rar(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\modlist.txt(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\modlist2019_09_26.txt(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\modlist_2019.09.28.txt(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\parts_library(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Plot(InitGui.py not found)... ignore
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Render... done
15:48:09  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\sheetmetal... done
15:48:10  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\Silk... done
15:48:10  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\symbols_library(InitGui.py not found)... ignore
15:48:10  Init:      Initializing C:\Users\Wivern\AppData\Roaming\FreeCAD\Mod\ThreadProfile... done
15:48:10  Init: Initializing freecad.plot
15:48:10  Init: Initializing freecad.plot... done
15:48:10  Init: Initializing freecad.gears
15:48:10  Init: Initializing freecad.gears... done
15:48:10  Init: Loading FreeCAD GUI
15:48:11  Init: Running FreeCADGuiInit.py start script... done
15:48:12  Init: Activating default workbench StartWorkbench
15:48:12  Loading PartDesign module... done
15:48:12  Loading GUI of Part module... done
15:48:12  Loading GUI of Sketcher module... done
15:48:12  Loading GUI of PartDesign module... done
15:48:12  Init: Showing main window
15:48:12  Main window restored
15:48:12  Show main window
15:48:12  Toolbars restored
15:48:12  3Dconnexion device not attached.
15:48:12  Init: Entering event loop
15:48:15  Init: Processing command line files
15:48:15  Loading Draft workbench, done.
15:48:15  Draft workbench activated.
15:48:15  Draft workbench deactivated.
15:48:15  Checking for available updates of the DynamicData addon

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23307 (Git)
Build type: Release
Branch: master
Hash: 9add3ba199c01f5f6ff4eae60557c4b22b625940
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Bulgarian/Bulgaria (bg_BG)
Edit: the parameter issue is gone with

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23323 (Git)
Build type: Release
Branch: master
Hash: 512d5c6141aec52b6eecc67370336a28fde862a6
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Bulgarian/Bulgaria (bg_BG)
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by kisolre »

Something else that I noticed - my local built FreeCAD with this LibPack uses a lot more memory then the downloaded ones. Started at the same time, no file loaded or any interaction, from top to bottom - LP build, Conda build, local build:
.
PrivateMemory.JPG
PrivateMemory.JPG (29.71 KiB) Viewed 12229 times
.
Conda info:
OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23258 (Git)
Build type: Release
Branch: master
Hash: 78c6cc1362c39e3f1f778c52ae2a1c82badeec20
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Bulgarian/Bulgaria (bg_BG)

LP info:
OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23266 (Git)
Build type: Release
Branch: master
Hash: ed063646edb2803b035b800e645e0bfa5384d980
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

Local build info:
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23327 (Git)
Build type: Release
Branch: master
Hash: 68eba58e649e83842cc3bfe24b8c5981e317213f
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Bulgarian/Bulgaria (bg_BG)
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: New libpacks for Windows with Qt5.12.6, OCC7.4

Post by chennes »

apeltauer wrote: Thu Dec 03, 2020 2:24 pm new libpack is available...
https://github.com/apeltauer/FreeCAD/re ... ack_12.4.2
If you are including patches in your builds of the LibPack, I've got one that is discussed here that fixes a number of segfaults that are happening in chamfers and fillets. The patch is designed to be applied directly to the official OpenCascade 7.5.0 release, but I can easily modify it to work against whatever else you need.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by apeltauer »

i already have seen some discussion about the occ fix... Many thanks for investing in this.
If you can pass me a link to your bugfix repository i could build occ from source with your fix and then create a new lib pack....
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by kisolre »

apeltauer wrote: Fri Feb 05, 2021 6:54 am link to your bugfix repository
-Should be this commit https://gitlab.com/chennes/occt/-/commi ... 79c9266f8e
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by sgrogan »

I've posted a test build using the new LP https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
"fight the good fight"
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: New libpacks for Windows with Qt5.15, OCC7.5

Post by Syres »

sgrogan wrote: Sat Feb 13, 2021 6:53 pm I've posted a test build using the new LP https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
CfdOF passes all my macro tests, just had to copy GMSH from the old LP build to pass the Wb Dependency Check, cheers for the efforts. Still can't find out why the Conda build won't play ball but I'll see if any of the newer users on Win 10 can install OpenFOAM from scratch error free alongside the new libpack build.

I'll now go and try and break it doing some proper work :D
CfdOFNewLibPack.jpg
CfdOFNewLibPack.jpg (137.6 KiB) Viewed 11752 times
OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24047 (Git)
Build type: Release
Branch: master
Hash: 95fcaccfd807e321383be684b70a1e87f42915fe
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United Kingdom (en_GB)
Post Reply