Install from source errors

Hello,

following the instructions for building cadet from source as outlined in BUILD-WINDOWS.md but also tried the alternative methods listed in the following thread:

I keep getting fatal errors just before I install: msbuild.exe INSTALL.vcxproj /p:Configuration=Release;Platform=x64.
When I follow the step by step procedure by downloading the individual components (e.g., HDF5, Sundials, etc.) I end up getting this error in this step: " cmake -DCMAKE_INSTALL_PREFIX="<ROOT>\cadet" -DBUILD_TESTS=OFF -G "Visual Studio 16 2019" -A x64 -DBLA_VENDOR=Intel10_64lp_seq -DENABLE_STATIC_LINK_LAPACK=ON ..\code\" and this is what appears on my CMD:

Found LAPACK: FALSE
Found TBB: TRUE
  Version 2021.11 (Interface 12110)
  Include C:/Users/Kostas/CADET/Libs/tbb/include
  Definitions __TBB_NO_IMPLICIT_LINKAGE=1
  Libs C:/Users/Kostas/CADET/Libs/tbb/lib/intel64/vc14/tbb.lib
Found SUNDIALS: TRUE
  Version 3.2.1
  Packaged
Found SuperLU: FALSE
Found UMFPACK: FALSE
Found HDF5: TRUE
  Version 1.14.3
  Includes C:/Users/Kostas/CADET/Libs/hdf5/include
  Libs C:/Users/Kostas/CADET/Libs/hdf5/lib/hdf5.lib
  Defs
Found Matlab: TRUE
  Version 9.10
  In C:/Program Files/MATLAB/R2021a
  Includes C:/Program Files/MATLAB/R2021a/extern/include
  Libs C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmex.lib;C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmx.lib;C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libMatlabDataArray.lib;C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libMatlabEngine.lib;C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmwlapack.lib;C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmwblas.lib;Matlab_TBB_LIBRARY-NOTFOUND;Matlab_UMFPACK_LIBRARY-NOTFOUND
  MKL C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmwlapack.lib C:/Program Files/MATLAB/R2021a/extern/lib/win64/microsoft/libmwblas.lib
  LAPACK functions have trailing underscore: OFF
  Declares mxCreateUninitNumericMatrix: ON
  Declares mxCreateUninitNumericArray: ON
  TBB Matlab_TBB_LIBRARY-NOTFOUND (interface version )
  Parallelization (TBB compatibility):
  UMFPACK Matlab_UMFPACK_LIBRARY-NOTFOUND (enforced OFF)
-----------------------------------------------------------------------

-- Configuring done (2.1s)
CMake Error at test/CMakeLists.txt:45 (add_executable):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:libcadet_object>

  Objects of target "libcadet_object" referenced but no such target exists.


CMake Error at test/CMakeLists.txt:45 (add_executable):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:libcadet_object>

  Objects of target "libcadet_object" referenced but no such target exists.


CMake Error at test/CMakeLists.txt:45 (add_executable):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:libcadet_object>

  Objects of target "libcadet_object" referenced but no such target exists.


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:libcadet_shared>

  No target "libcadet_shared"


CMake Error at src/cadet-cli/CMakeLists.txt:36 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:libcadet_shared>

  No target "libcadet_shared"


CMake Error at test/CMakeLists.txt:45 (add_executable):
  No SOURCES given to target: testRunner


CMake Generate step failed.  Build files cannot be regenerated correctly.

Any idea what might cause it?

Best regards,
Kostas

Hey Kostas,

the guide you followed is outdated and will be archived soon.

Please follow this guide and use this branch of CADET. If you’ve made changes to the CADET source code, you will need to rebase them onto this updated branch.

If you have any more questions, please let me know.

Hi Ronald,

Thank you so much for your quick response to the matter.
Unfortunately, when trying this method I am receiving a different type of error at the install step again:

“C:\Users\Kostas\CADET\build\INSTALL.vcxproj” (default target) (1) →
“C:\Users\Kostas\CADET\build\ALL_BUILD.vcxproj” (default target) (3) →
“C:\Users\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj” (default target) (11) →
(ClCompile target) →
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(91,31): error C3861: ‘cadetSetLogReceiver’: identifier not found [C
:\Users\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(92,39): error C3861: ‘cadetSetLogReceiver’: identifier not found [C
:\Users\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(205,74): error C3861: ‘cadetGetLogLevel’: identifier not found [C:
Users\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(218,74): error C3861: ‘cadetGetLogLevel’: identifier not found [C:
Users\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(224,5): error C3861: ‘cadetSetLogLevel’: identifier not found [C:\U
sers\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(230,5): error C3861: ‘cadetSetLogLevel’: identifier not found [C:\U
sers\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
C:\Users\Kostas\CADET\src\cadet-mex\cadet-mex.cpp(240,5): error C3861: ‘cadetSetLogLevel’: identifier not found [C:\U
sers\Kostas\CADET\build\src\cadet-mex\cadet-mex.vcxproj]
15513 Warning(s)
7 Error(s)

Let me clarify that I considered all the steps very carefully.

Thank you in advance,
Kostas

That looks like you’re building the Matlab interface. We do not use that internally, so errors such as these may show up every once in a while.
If you don’t need the Matlab interface, add

-DENABLE_CADET_MEX=OFF

to your CMake flags.

1 Like

Thank you both Samuel and Ronald for the suggestions. The compilation worked fine.

Best regards,
Kostas