sgrogan, thanks for your input... It will be helpfull...
Ok, There is one pretty easy to fix:
Code: Select all
cl /c /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\occ /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\general /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\meshing /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\linalg /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\lib\cmake\..\..\include\oce /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D NETGEN_WITH_OCC /D _DEBUG /D NO_PARALLEL_THREADS /D OCCGEOMETRY /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec2733992907.dir\Debug\\" /Fd"cmTryCompileExec2733992907.dir\Debug\vc120.pdb" /Gd /TP /errorReport:queue "C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\src.cxx"
"C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2733992907.vcxproj" (default target) (1) ->
c:\users\chris\desktop\fclibs_vc12_x64\freecadlibs_11.1_x64_vc12\include\netgen\general\gzstream.h(35): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory [C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2733992907.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.57
Source file was:
#include <occgeom.hpp>
int main() { netgen::OCCGeometry foo; }
It just requires zlib... don't know if it will require link to the dll, but yet another find_package() should fix this issue... But I suppose it will break on the the second one issue like two other tests.
But I don't really know what to do with this one:
Code: Select all
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\CL.exe /c /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\general /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D NETGEN_WITH_PARALLEL_THREADS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec2620214328.dir\Debug\\" /Fd"cmTryCompileExec2620214328.dir\Debug\vc120.pdb" /Gd /TP /errorReport:queue "C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\src.cxx"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /IC:\Users\Chris\Desktop\FClibs_vc12_x64\FreeCADLibs_11.1_x64_VC12\include\netgen\general /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D NETGEN_WITH_PARALLEL_THREADS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec2620214328.dir\Debug\\" /Fd"cmTryCompileExec2620214328.dir\Debug\vc120.pdb" /Gd /TP /errorReport:queue "C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\src.cxx"
src.cxx
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include\afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] [C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2620214328.vcxproj]
Done Building Project "C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2620214328.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2620214328.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include\afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] [C:\Users\Chris\GitHub\Find-Netgen-build\CMakeFiles\CMakeTmp\cmTryCompileExec2620214328.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.43
Source file was:
#include <myadt.hpp>
int main() { netgen::NgMutex foo; }
can somebody point me out whay should I include/define to make the /MDd happy? may be it will be enough to just define _AFXDLL? may it be empty?
I suppose /MDd should be there itself because there are other tests built well with it...
Code: Select all
//Path to a library.
NETGEN_LIBRARY_mesh:FILEPATH=NETGEN_LIBRARY_mesh-NOTFOUND
//Path to a library.
NETGEN_LIBRARY_occ:FILEPATH=NETGEN_LIBRARY_occ-NOTFOUND
Are there any *{occ,mesh}.{lib,dll} in your netgen distribution? Is it version 5+?