cmake

The following ICU libraries were not found: — i18n (required)

只愿长相守 提交于 2021-01-05 11:59:49
问题 I have to build miktex source code. I install source code from github they give me link to build it: https://miktex.org/howto/build-mac. I follow the steps given in the link. When I run cmake ../source I got error: INFOfribidi libs: /usr/local/Cellar/fribidi/1.0.5/lib/libfribidi.dylib INFOfribidi incs: /usr/local/Cellar/fribidi/1.0.5/include/fribidi;/usr/local/Cellar/fribidi/1.0.5/include -- The following ICU libraries were not found: -- i18n (required) -- uc (required) CMake Error at /usr

How to use glib-compile-resources with CMake

会有一股神秘感。 提交于 2021-01-05 11:31:47
问题 As any GTK project grows, GTK applications tend to be bundled with gresources to separate out code and UI design. This is very useful because UI/UX designers don't need to know code in order to... well design and ultimately contribute their skills and effort to the project. Not only designers but programmers too benefit a lot! Because code becomes heavily "logic or problem solving" instead of maintaining both UI and logic code together in one single file. However, to compile our GResource we

How to add a dependency on a file for the configure step of ExternalProject_Add in cmake

点点圈 提交于 2021-01-05 09:12:19
问题 I'm trying to add an external project, that doesn't use cmake, to my project that does use cmake: include(ExternalProject) ExternalProject_Add( MatrixSSL SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/matrixssl PREFIX ${CMAKE_CURRENT_BINARY_DIR}/matrixssl CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/configure_matrixssl.sh BUILD_COMMAND echo "Built!" INSTALL_COMMAND echo "Installing!" ) Here the script ${CMAKE_CURRENT_SOURCE_DIR}/configure_matrixssl.sh will do whatever is required to configure that

How to add a dependency on a file for the configure step of ExternalProject_Add in cmake

假装没事ソ 提交于 2021-01-05 09:11:48
问题 I'm trying to add an external project, that doesn't use cmake, to my project that does use cmake: include(ExternalProject) ExternalProject_Add( MatrixSSL SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/matrixssl PREFIX ${CMAKE_CURRENT_BINARY_DIR}/matrixssl CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/configure_matrixssl.sh BUILD_COMMAND echo "Built!" INSTALL_COMMAND echo "Installing!" ) Here the script ${CMAKE_CURRENT_SOURCE_DIR}/configure_matrixssl.sh will do whatever is required to configure that

Opencv + opencv_contrib + Tesseract 之Qt开发环境搭建

那年仲夏 提交于 2021-01-04 07:35:41
1.软件包准备 opencv源码包地址: 官网 github opencv_contrib源码包地址: github Tesseract源码包地址: github cmake.exe 下载地址: 官网 qt 下载地址: 官网 注意: opencv和open_contrib包的版本号要一致(比如都是3.4.0) Tesseract源码安装参考: Win10 使用MinGW-w64编译Tesseract4.0 2. 在环境变量PATH中添加: C:\Qt\Qt5. 9.0 \ 5.9 \mingw53_32\bin C:\Qt\Qt5. 9.0 \Tools\mingw530_32\bin 一方面方便日后在cmd中直接使用gcc、g++,qmake和mingw32-make 另一方面, 方便下一步cmake查找Qt相关配置 3. 使用cmake生成解决方案 如果提示: 直接将 "CMAKE_SH" 项删除即可。 修改配置如下: CMAKE_BUILD_TYPE : Debug或者Release CMAKE_INSTALL_PREFIX : 指定程序安装位置 ENABLE_CXX11 : 支持c11特性 WITH_QT WITH_OPENGL OPENCV_EXTRA_MODULES_PATH: 若使用opencv_contrib模块,则在此处填写解压后的路径,如 F:\opencv

How to fix NDK build error for HelloCardboard sample

ぐ巨炮叔叔 提交于 2021-01-03 08:26:10
问题 I am trying to compile Google Cardboard Sdk sample. I am following instructions given by google's official docs I am stuck at step 3, where I am supposed to assemble the project: This is the error I am getting when I start to assemble: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':hellocardboard-android:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\Shanu\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin

How to fix NDK build error for HelloCardboard sample

荒凉一梦 提交于 2021-01-03 08:26:04
问题 I am trying to compile Google Cardboard Sdk sample. I am following instructions given by google's official docs I am stuck at step 3, where I am supposed to assemble the project: This is the error I am getting when I start to assemble: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':hellocardboard-android:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\Shanu\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin

CMake cannot figure out header dependencies if build is out-of-source?

ⅰ亾dé卋堺 提交于 2021-01-03 08:14:50
问题 I've been using CMake to manage a separate small c++ project (Unix Makefile based) and decided to convert it to a more organized out-of-source build. However when it's out-of-source (by doing a cmake .. in build/), my headers are no longer dependencies for their source files. If I just cmake from the top-level, everything is fine again. So I've made a small test version and found the same problem. I'm on an Arch Linux system by the way. Originally, my project was in the /tmp directory

How can I link locally installed SDK's static library in my C++ project?

拈花ヽ惹草 提交于 2021-01-01 17:47:33
问题 I have been working on a C++ project which depends on RPLidar SDK. I have already installed the SDK as per the instructions in the README. (FYI: I couldn't install it in the /usr/local/ directory using sudo make install command). As per the SDK documentation: When developing via RPLIDAR SDK, developers only need to include SDK’s external header files (under sdk\include) into their own source code and link the application with SDK’s static library (rplidar_driver.lib or rplidar_driver.a). So,

How can I link locally installed SDK's static library in my C++ project?

空扰寡人 提交于 2021-01-01 17:46:44
问题 I have been working on a C++ project which depends on RPLidar SDK. I have already installed the SDK as per the instructions in the README. (FYI: I couldn't install it in the /usr/local/ directory using sudo make install command). As per the SDK documentation: When developing via RPLIDAR SDK, developers only need to include SDK’s external header files (under sdk\include) into their own source code and link the application with SDK’s static library (rplidar_driver.lib or rplidar_driver.a). So,