
What do I need to learn? Automake, NMAKE, or Can I launch the MS IDE w/ the .sln file https://github.com/peterl94/clbundler-f ... /netgen.py(might not understand the python here) and chase the linker errors i "Project Properties"?
There is a nglib.sln, so adding the dependencies in the VS IDE to project properties I've come to a problem linking to zlib1.lib Is this the same as zlibstatic.lib in the libpack? I don't see zlib1.h in the downloaded zlib sources (I've only examined the zlib sources I haven't tried to compile it) If so do I need to patch the nglib sources to use this library?wmayer wrote:If an .sln file is included then use Visual Studio.
No, the zlib.lib makes the nglib linking the zlib dll (dynamic linking), while zlibstatic.lib copies all symbols into the nglib.dll (static linking) and makes it slightly bigger. I prefer using the dynamic linking approach.to zlib1.lib Is this the same as zlibstatic.lib in the libpack?
The file is called zlib.h and you can use the version of the libpack.I don't see zlib1.h in the downloaded zlib sources
You don't have to touch the source code. You only have to add search paths for include directories and library files in the project settings.If so do I need to patch the nglib sources to use this library?
This is what I was expecting except the error iswmayer wrote: The file is called zlib.h and you can use the version of the libpack.
Code: Select all
1>------ Build started: Project: nglib, Configuration: Release x64 ------
1>LINK : fatal error LNK1181: cannot open input file 'zlib1.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It can't find the file zlib1.lib. Depending on the used libpack the file is zlib.lib. In this case just make a copy of it and rename it to zlib1.lib.cannot open input file 'zlib1.lib'
Thanks for the continued support. I get the following nowwmayer wrote:It can't find the file zlib1.lib. Depending on the used libpack the file is zlib.lib. In this case just make a copy of it and rename it to zlib1.lib.
Code: Select all
Error 2 error MSB3073: The command ""C:\Users\Chris\GitHub\netgen-mesher-git-cf713efd2da43a733abf06f7c9b5c9697fef7e78\windows\\postBuild_nglib.bat" "nglib" "nglib.dll" "Release" "x64" "C:\Users\Chris\GitHub\netgen-mesher-git-cf713efd2da43a733abf06f7c9b5c9697fef7e78\windows\"
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 nglib
It looks like it wanted to copy the files to a certain place which failed for any reason. But since it created the files it doesn't matter.Thanks for the continued support. I get the following now
Because there is not an install target a post build script is run that tries to copy the files to a write protected location (admin privileges are required)wmayer wrote:It looks like it wanted to copy the files to a certain place which failed for any reason. But since it created the files it doesn't matter.
Code: Select all
Error 2 error C2375: 'netgen::OCCGenerateMesh' : redefinition; different linkage C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 87 1 NETGENPlugin
Error 3 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2505 1 NETGENPlugin
Error 4 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2606 1 NETGENPlugin
Error 5 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2647 1 NETGENPlugin
Error 6 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2757 1 NETGENPlugin
Error 7 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2859 1 NETGENPlugin
Error 8 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 2891 1 NETGENPlugin
Error 9 error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(netgen::OCCGeometry &,netgen::Mesh *&,netgen::MeshingParameters &,int,int)' to 'int' C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_Mesher.cpp 3113 1 NETGENPlugin
Error 11 error C2375: 'netgen::OCCGenerateMesh' : redefinition; different linkage C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_NETGEN_2D_ONLY.cpp 70 1 NETGENPlugin
Error 12 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_NETGEN_2D_ONLY.cpp 478 1 NETGENPlugin
Error 14 error C2375: 'netgen::OCCGenerateMesh' : redefinition; different linkage C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_NETGEN_3D.cpp 79 1 NETGENPlugin
Error 15 error C2568: '=' : unable to resolve function overload C:\Users\Chris\GitHub\FreeCAD\src\3rdParty\salomesmesh\src\NETGENPlugin\NETGENPlugin_NETGEN_3D.cpp 475 1 NETGENPlugin
Error 16 error LNK1181: cannot open input file '..\..\..\..\lib\Release\NETGENPlugin.lib' C:\Users\Chris\GitHub\FCNG-build\src\Mod\MeshPart\App\LINK MeshPart
Error 17 error LNK1181: cannot open input file '..\..\..\..\lib\Release\NETGENPlugin.lib' C:\Users\Chris\GitHub\FCNG-build\src\Mod\Fem\App\LINK Fem
Error 18 error LNK1181: cannot open input file '..\App\Release\MeshPart.lib' C:\Users\Chris\GitHub\FCNG-build\src\Mod\MeshPart\Gui\LINK MeshPartGui
Error 19 error LNK1181: cannot open input file '..\App\Release\Fem.lib' C:\Users\Chris\GitHub\FCNG-build\src\Mod\Fem\Gui\LINK FemGui