cmake

Compiling Elmer FEM on macOS Mojave causes the fatal error: 'string.h' file not found

∥☆過路亽.° 提交于 2021-02-11 14:10:41
问题 I'm trying to follow these instructions to compile Elmer FEM on macOS Mojave Version 10.14.6 . However, when running the make install I get the error message: .../elmerfem/umfpack/src/umfpack/include/umf_internal.h:29:10: fatal error: 'string.h' file not found #include <string.h> ^~~~~~~~~~ 1 error generated. make[2]: *** [umfpack/src/umfpack/umfpack_zl_save_symbolic.c] Error 1 make[2]: *** Deleting file `umfpack/src/umfpack/umfpack_zl_save_symbolic.c' make[1]: *** [umfpack/src/umfpack

Compiling Elmer FEM on macOS Mojave causes the fatal error: 'string.h' file not found

筅森魡賤 提交于 2021-02-11 14:10:30
问题 I'm trying to follow these instructions to compile Elmer FEM on macOS Mojave Version 10.14.6 . However, when running the make install I get the error message: .../elmerfem/umfpack/src/umfpack/include/umf_internal.h:29:10: fatal error: 'string.h' file not found #include <string.h> ^~~~~~~~~~ 1 error generated. make[2]: *** [umfpack/src/umfpack/umfpack_zl_save_symbolic.c] Error 1 make[2]: *** Deleting file `umfpack/src/umfpack/umfpack_zl_save_symbolic.c' make[1]: *** [umfpack/src/umfpack

NetCDF Library Linkage on Windows with cmake

怎甘沉沦 提交于 2021-02-11 14:01:23
问题 I'm trying to include/link the NetCDF C library (https://www.unidata.ucar.edu/software/netcdf/docs/index.html) into my C++/CUDA project with cmake. I seem to be running into issues, though. I am on Windows 10 and have installed the NetCDF C libraries for Windows, version 4.7. Including the NetCDF libraries seems to go without a hitch, the problem is in the linking step. My code that uses the NetCDF library: netcdf_writer.cpp #ifndef __CUDACC__ //only actually include the NetCDF libraries if

NetCDF Library Linkage on Windows with cmake

风流意气都作罢 提交于 2021-02-11 13:57:49
问题 I'm trying to include/link the NetCDF C library (https://www.unidata.ucar.edu/software/netcdf/docs/index.html) into my C++/CUDA project with cmake. I seem to be running into issues, though. I am on Windows 10 and have installed the NetCDF C libraries for Windows, version 4.7. Including the NetCDF libraries seems to go without a hitch, the problem is in the linking step. My code that uses the NetCDF library: netcdf_writer.cpp #ifndef __CUDACC__ //only actually include the NetCDF libraries if

define gets ignored by target_compile_definitions

跟風遠走 提交于 2021-02-11 13:51:03
问题 I am looking to build a library and I need to pass two defines to that build, but cmake's target_compile_definitions() scrambles them in a manner that renders them unusable. The two defines are: -D'_LIB_EXCEPTION_ABI=__attribute__((visibility("default")))' -D'_LIB_FALLTHROUGH()=((void)0)' Unfortunately, the first one gets translated to (in the command build line): -D'_LIB_EXCEPTION_ABI="\__attribute__((visibility(\"default\")))'" While the second one is missing altogether from the command

building opencv with sfm module issues

元气小坏坏 提交于 2021-02-11 13:26:55
问题 I am trying to build opencv with sfm modules I've built and installed gflags then glog and the ceres-solver. Yet the make logs says: Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags . Even though in earlier lines it says it finds both to these directories. I've also built and installed VTK though for some reason it doesn't find it even when I manually select the build directory. Below is the relevant section of my CMake log: VTK is not found. Please set

building opencv with sfm module issues

天大地大妈咪最大 提交于 2021-02-11 13:26:36
问题 I am trying to build opencv with sfm modules I've built and installed gflags then glog and the ceres-solver. Yet the make logs says: Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags . Even though in earlier lines it says it finds both to these directories. I've also built and installed VTK though for some reason it doesn't find it even when I manually select the build directory. Below is the relevant section of my CMake log: VTK is not found. Please set

Install and compile irrlicht on windows (CLION)

你离开我真会死。 提交于 2021-02-11 12:31:58
问题 I'm a student developer and I've always dev on Linux. This is the first project I have to do crossplateform. So I installed Git Bash, Visual Studio Pro and CLion on Windows. Usually I compile with GCC and Makefiles. So on Linux I installed the lib run the examples of the lib and it work. But when I want to compile it on Windows, it gets complicated. I use the example files given by Irrlicht to make sure it doesn't come from the sources. Here is my CMakeLists.txt cmake_minimum_required(VERSION

Avoid warnings from system libraries/includes using CMake

匆匆过客 提交于 2021-02-11 12:05:36
问题 I have a large base of code and use CMake 3.19.3 to build the compile environment. I keep the code compiling in GCC (9.3) , CLang (11) , and ICC (19.1) . However, for ICC to work I need to remove a lot of warnings from the mandatory checks. My CMake config file looks like this: if(CMAKE_CXX_COMPILER_ID MATCHES "Intel") list(APPEND CMAKE_CXX_FLAGS "-no-ansi-alias") list(APPEND CMAKE_CXX_FLAGS "-Wno-error=missing-prototypes") list(APPEND CMAKE_CXX_FLAGS "-wd68") # integer conversion resulted in

CMake Error: Cannot determine link language for target [duplicate]

↘锁芯ラ 提交于 2021-02-11 12:01:21
问题 This question already has answers here : CMake cannot determine linker language for target (2 answers) Closed 1 year ago . I created the following Directory: FrameWork/ ├── CMakeLists.txt ==> contains only add_subdirectory(UtilsBasic) └── UtilsBasic ├── CMakeLists.txt ==> Contains only add_subdirectory(SmartSingleton) └── SmartSingleton ├── CMakeLists.txt ├── include │ └── SmartSingleton.hpp The CMakeLists.txt in SmartSingleton directory contains: set(codeprod_list include/SmartSingleton.hpp)