Building native windows DLL

Asked by James Avery

Dear all,

What is the current status with respect to building dolfin natively on Windows (preferably with the MSVC compilers, but possibly with the Intel compilers)? I.e., for the purpose of linking native windows binaries that do not depend on the MinGW libraries.

Is it currently possible? If it is not, do you have a rough idea about the amount of work needed to add a native WIN32 build target? For example, are there parts of the code the contain Unix-specific idioms?

Thanks very much in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

AFAIK, no one has attempted this with the current CMake build system in DOLFIN. That said, I don't see any reason it shouldn't work. If you decide to try it out, we would very much like to hear the result. And don't hesitate to ask us if you are stuck at some point. We might be able to help.

Revision history for this message
Chaffra Affouda (chaffra) said :
#2

I gave this a try and I am stuck with the error below. I noticed that when compiling Armadillo with Visual Studio 2010 armadillo.dll is generated but armadillo.lib is not. Mayble that's the problem but any idea is welcome.

Thanks,
Chaffra

Performing C++ SOURCE FILE Test ARMADILLO_BLAS_TEST_RUNS failed with the following output:
Change Dir: E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec.vcxproj /p:Configuration=Debug
Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.239] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 12/12/2011 11:59:27 AM. Project "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" on node 1 (default targets). InitializeBuildStatus: Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /IE:/Fenics/Semifem/include /Zi /nologo /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D ARMADILLO_BLAS_TEST_RUNS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Debug\\" /Fd"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TP /analyze- /errorReport:queue src.cxx /Zm1000 src.cxx ManifestResourceCompile: C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res" cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc Link: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe" /VERSION:"0.0" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib E:\Fenics\Semifem\lib\armadillo.lib E:\Fenics\Semifem\lib\lapack_win32_MT.lib E:\Fenics\Semifem\lib\blas_win32_MT.lib /MANIFEST /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib" /MACHINE:X86 cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res cmTryCompileExec.dir\Debug\src.obj /machine:X86 /debug E:\Fenics\Semifem\lib\armadillo.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2A0 [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj] Done Building Project "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default targets) -- FAILED. Build FAILED. "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" (default target) (1) -> (Link target) -> E:\Fenics\Semifem\lib\armadillo.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2A0 [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:02.79
Return value: 1
Source file was:

#include <armadillo>

using namespace arma;

int main()
{
  int n = 20;
  double h = 1.0/(n-1);
  mat A(n, n);
  vec b(n);
  vec u(n);
  double beta = 0.2;
  double gamma = 1000;

  A.fill(0.0);
  b.fill(0.0);
  double x; int i;

  i = 0;
  A(i, i) = 1;
  b(i) = 0;
  for (i=1; i<n-1; i++) {
    x = (i-1)*h;
    A(i, i-1) = 1; A(i, i) = -2; A(i, i+1) = 1;
    b(i) = - h*h*gamma*exp(-beta*x);
  }
  i = n-1; x = (i-1)*h;
  A(i, i-1) = 2; A(i, i) = -2;

  u = solve(A, b);

  return 0;
}

Revision history for this message
Johannes Ring (johannr) said :
#3

Yes, you will need to create an import library (.lib) for Armadillo.

Revision history for this message
Chaffra Affouda (chaffra) said :
#4

I'd like to reopen this problem. Has anyone made progress in compiling dolfin natively on windows? I am giving it a try again.

I compiled armadillo, cgal and umfpack successfully using visual studio 10. I can pass the ARMADILLO_LAPACK_TEST_RUNS but I cannot pass the tests for UMFPACK and CGAL.

For CGAL I am getting the error
LINK : fatal error LNK1104: cannot open file 'CGAL-vc100-mt-gd.lib' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj]
The library is present but where do I need to check to see if cmake has the right path for it?

For UMFPACK I am getting the error:
(1) -> (Link target) -> E:\Fenics\Semifem\lib\libumfpack.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x36 [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec1520356745.vcxproj]
I know libumfpack.lib is valie because I can run the demo in suitsparse. Any idea for this one?

Thanks,
Chaffra

---cmake output---
UFC version: 2.0.5
Checking for package 'Armadillo'
A library with BLAS API found.
A library with BLAS API found.
A library with LAPACK API found.
Found SWIG: E:/src/swigwin-2.0.3/swig.exe (found version "2.0.3")
Checking for package 'AMD'
A library with BLAS API found.
Checking for package 'UMFPACK'
Checking for package 'AMD'
A library with BLAS API found.
Checking for package 'CHOLMOD'
Checking for package 'AMD'
A library with BLAS API found.
A library with BLAS API found.
A library with LAPACK API found.
ParMETIS could not be found/configured. (missing: PARMETIS_LIBRARIES PARMETIS_TEST_RUNS PARMETIS_INCLUDE_DIRS)
CHOLMOD could not be found. Be sure to set CHOLMOD_DIR. (missing: CHOLMOD_TEST_RUNS)
UMFPACK could not be found. Be sure to set UMFPACK_DIR. (missing: UMFPACK_TEST_RUNS)
Checking for package 'CHOLMOD'
Checking for package 'AMD'
A library with BLAS API found.
A library with BLAS API found.
A library with LAPACK API found.
ParMETIS could not be found/configured. (missing: PARMETIS_LIBRARIES PARMETIS_TEST_RUNS PARMETIS_INCLUDE_DIRS)
CHOLMOD could not be found. Be sure to set CHOLMOD_DIR. (missing: CHOLMOD_TEST_RUNS)
Checking for package 'CGAL'
CGAL could not be found. Be sure to set CGAL_DIR (missing: CGAL_TEST_RUNS) (Required is at least version "3.8")
checking for module 'cppunit'
  package 'cppunit' not found
CPPUNIT could not be found. Be sure to set CPPUNIT_DIR. (missing: CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
Checking for package 'Sphinx'
Could NOT find Sphinx (missing: SPHINX_EXECUTABLE SPHINX_VERSION_OK) (Required is at least version "1.0.7")

The following optional packages were found:
-------------------------------------------
(OK) ZLIB
(OK) PYTHON

The following optional packages were not enabled:
-------------------------------------------------
(--) OPENMP
(--) MPI
(--) PETSC
(--) SLEPC
(--) TRILINOS
(--) MTL4
(--) PASTIX
(--) SCOTCH
(--) PARMETIS
(--) SPHINX

The following optional packages could not be found:
---------------------------------------------------
(**) UMFPACK
(**) CHOLMOD
(**) CGAL

CMake Warning at CMakeLists.txt:610 (message):
  Disabling generation of documentation because Sphinx is missing.

Configuring done

--cmake error log for CGAL--

Performing C++ SOURCE FILE Test CGAL_TEST_RUNS failed with the following output:
Change Dir: E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec322992235.vcxproj /p:Configuration=Debug
Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.269] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 7/31/2012 9:25:19 AM. Project "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTryCompileExec322992235.dir\Debug\". InitializeBuildStatus: Creating "cmTryCompileExec322992235.dir\Debug\cmTryCompileExec322992235.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /IE:/Fenics/Semifem/include /I"E:/src/CGAL-3.9/auxiliary/gmp/include" /IE:/boost/boost_1_47 /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CGAL_TEST_RUNS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec322992235.dir\Debug\\" /Fd"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec322992235.pdb" /Gd /TP /analyze- /errorReport:queue E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\src.cxx /Zm1000 -frounding-math Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /IE:/Fenics/Semifem/include /I"E:/src/CGAL-3.9/auxiliary/gmp/include" /IE:/boost/boost_1_47 /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CGAL_TEST_RUNS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec322992235.dir\Debug\\" /Fd"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec322992235.pdb" /Gd /TP /analyze- /errorReport:queue E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\src.cxx /Zm1000 -frounding-math cl : Command line warning D9002: ignoring unknown option '-frounding-math' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] src.cxx E:\Fenics\Semifem\include\CGAL/Nef_3/SNC_point_locator.h(315): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy' E:\Fenics\Semifem\include\CGAL/Nef_3/SNC_point_locator.h(309) : while compiling class template member function 'void CGAL::SNC_point_locator_by_spatial_subdivision<SNC_decorator>::initialize(CGAL::SNC_structure<Kernel_,Items_,Mark_> *)' with [ SNC_decorator=CGAL::SNC_decorator<CGAL::SNC_structure<Kernel,CGAL::Default_items<Kernel>::Items,bool>>, Kernel_=Kernel, Items_=CGAL::Default_items<Kernel>::Items, Mark_=bool ] E:\Fenics\Semifem\include\CGAL/Nef_polyhedron_3.h(565) : see reference to class template instantiation 'CGAL::SNC_point_locator_by_spatial_subdivision<SNC_decorator>' being compiled with [ SNC_decorator=CGAL::SNC_decorator<CGAL::SNC_structure<Kernel,CGAL::Default_items<Kernel>::Items,bool>> ] E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\src.cxx(51) : see reference to function template instantiation 'CGAL::Nef_polyhedron_3<Kernel_>::Nef_polyhedron_3<Kernel,CGAL::Polyhedron_items_3,CGAL::HalfedgeDS_default,std::allocator<_Ty>>(CGAL::Polyhedron_3<PolyhedronTraits_3> &)' being compiled with [ Kernel_=Kernel, _Ty=int, PolyhedronTraits_3=Kernel ] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xutility(2239): warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xutility(2224) : see declaration of 'std::_Copy_impl' E:\Fenics\Semifem\include\CGAL/Kd_tree_rectangle.h(119) : see reference to function template instantiation '_OutIt std::copy<double*,double*>(_InIt,_InIt,_OutIt)' being compiled with [ _OutIt=double *, _InIt=double * ] E:\Fenics\Semifem\include\CGAL/Kd_tree_rectangle.h(115) : while compiling class template member function 'CGAL::Kd_tree_rectangle<FT_>::Kd_tree_rectangle(const CGAL::Kd_tree_rectangle<FT_> &)' with [ FT_=double ] E:\Fenics\Semifem\include\CGAL/Kd_tree.h(262) : see reference to class template instantiation 'CGAL::Kd_tree_rectangle<FT_>' being compiled with [ FT_=double ] E:\Fenics\Semifem\include\CGAL/Kd_tree.h(260) : while compiling class template member function 'CGAL::Kd_tree<SearchTraits,Splitter_,UseExtendedNode>::~Kd_tree(void)' with [ SearchTraits=CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>, Splitter_=CGAL::Sliding_midpoint<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>>, UseExtendedNode=CGAL::Tag_true ] E:\Fenics\Semifem\include\CGAL/internal/K_neighbor_search.h(50) : see reference to class template instantiation 'CGAL::Kd_tree<SearchTraits,Splitter_,UseExtendedNode>' being compiled with [ SearchTraits=CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>, Splitter_=CGAL::Sliding_midpoint<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>>, UseExtendedNode=CGAL::Tag_true ] E:\Fenics\Semifem\include\CGAL/Orthogonal_k_neighbor_search.h(31) : see reference to class template instantiation 'CGAL::internal::K_neighbor_search<SearchTraits,Distance_,Splitter_,Tree_>' being compiled with [ SearchTraits=CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>, Distance_=CGAL::Euclidean_distance<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>>, Splitter_=CGAL::Sliding_midpoint<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>>, Tree_=CGAL::Kd_tree<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>,CGAL::Sliding_midpoint<CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>>>,CGAL::Tag_true> ] E:\Fenics\Semifem\include\CGAL/internal/AABB_tree/AABB_search_tree.h(87) : see reference to class template instantiation 'CGAL::Orthogonal_k_neighbor_search<SearchTraits>' being compiled with [ SearchTraits=CGAL::Search_traits_3<CGAL::Add_decorated_point<AABB_triangle_traits,std::_List_iterator<std::_List_val<Triangle,std::allocator<Triangle>>>>> ] E:\Fenics\Semifem\include\CGAL/AABB_tree.h(170) : see reference to class template instantiation 'CGAL::AABB_search_tree<Traits>' being compiled with [ Traits=AABB_triangle_traits ] E:\Fenics\Semifem\include\CGAL/AABB_tree.h(169) : while compiling class template member function 'void CGAL::AABB_tree<AABBTraits>::clear_search_tree(void) const' with [ AABBTraits=AABB_triangle_traits ] E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\src.cxx(66) : see reference to class template instantiation 'CGAL::AABB_tree<AABBTraits>' being compiled with [ AABBTraits=AABB_triangle_traits ] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\algorithm(1119): warning C4996: 'std::_Transform1': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\algorithm(1100) : see declaration of 'std::_Transform1' E:\Fenics\Semifem\include\CGAL/Nef_3/polyhedron_3_to_nef_3.h(200) : see reference to function template instantiation '_OutIt std::transform<CGAL::internal::In_place_list_iterator<T,Alloc>,CGAL::Iterator_project<I,Fct>,CGAL::Facet_plane_3>(_InIt,_InIt,_OutIt,_Fn1)' being compiled with [ _OutIt=CGAL::Iterator_project<CGAL::internal::In_place_list_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>,std::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>>,CGAL::Project_plane<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>>, T=CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>, Alloc=std::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>, I=CGAL::internal::In_place_list_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>,std::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>>, Fct=CGAL::Project_plane<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>, _InIt=CGAL::internal::In_place_list_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>,std::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck,CGAL::I_Polyhedron_derived_items_3<CGAL::Polyhedron_items_3>,std::allocator<int>>,CGAL::Tag_true,CGAL::Plane_3<CGAL::Epeck>>>>>>, _Fn1=CGAL::Facet_plane_3 ] E:\Fenics\Semifem\include\CGAL/Nef_polyhedron_3.h(568) : see reference to function template instantiation 'void CGAL::polyhedron_3_to_nef_3<CGAL::Polyhedron_3<PolyhedronTraits_3>,CGAL::SNC_structure<Kernel_,Items_,Mark_>>(Polyhedron_ &,SNC_structure &)' being compiled with [ PolyhedronTraits_3=Kernel, Kernel_=Kernel, Items_=CGAL::Default_items<Kernel>::Items, Mark_=bool, Polyhedron_=CGAL::Polyhedron_3<Kernel>, SNC_structure=CGAL::SNC_structure<Kernel,CGAL::Default_items<Kernel>::Items,bool> ] ManifestResourceCompile: C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec322992235.dir\Debug\cmTryCompileExec322992235.exe.embed.manifest.res" cmTryCompileExec322992235.dir\Debug\cmTryCompileExec322992235_manifest.rc Link: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec322992235.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "E:\src\CGAL-3.9\auxiliary\gmp\lib\libmpfr-4.lib" "E:\src\CGAL-3.9\auxiliary\gmp\lib\libgmp-10.lib" /MANIFEST /ManifestFile:"cmTryCompileExec322992235.dir\Debug\cmTryCompileExec322992235.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec322992235.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:/Fenics/dolfin/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec322992235.lib" /MACHINE:X86 cmTryCompileExec322992235.dir\Debug\cmTryCompileExec322992235.exe.embed.manifest.res cmTryCompileExec322992235.dir\Debug\src.obj /machine:X86 /debug LINK : fatal error LNK1104: cannot open file 'CGAL-vc100-mt-gd.lib' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] Done Building Project "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj" (default targets) -- FAILED. Build FAILED. "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj" (default target) (1) -> (ClCompile target) -> cl : Command line warning D9002: ignoring unknown option '-frounding-math' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] E:\Fenics\Semifem\include\CGAL/Nef_3/SNC_point_locator.h(315): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xutility(2239): warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] C:\Program Files\Microsoft Visual Studio 10.0\VC\include\algorithm(1119): warning C4996: 'std::_Transform1': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] "E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj" (default target) (1) -> (Link target) -> LINK : fatal error LNK1104: cannot open file 'CGAL-vc100-mt-gd.lib' [E:\Fenics\dolfin\build\CMakeFiles\CMakeTmp\cmTryCompileExec322992235.vcxproj] 4 Warning(s) 1 Error(s) Time Elapsed 00:00:39.08
Return value: 1
Source file was:

Can you help with this problem?

Provide an answer of your own, or ask James Avery for more information if necessary.

To post a message you must log in.