cmake

How to fix error while installing dlib on python 3.7.3 64 bit windows 10

本秂侑毒 提交于 2020-05-15 21:21:17
问题 I'm trying to install dlib on Windows 10 using anaconda prompt. Using pip install dlib But I'm getting this error Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! I

How to fix error while installing dlib on python 3.7.3 64 bit windows 10

一世执手 提交于 2020-05-15 21:19:31
问题 I'm trying to install dlib on Windows 10 using anaconda prompt. Using pip install dlib But I'm getting this error Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! I

Form designer view is not available in visual studio 2019 C# CMake project

随声附和 提交于 2020-05-15 17:52:12
问题 I'm trying to port my C# Windows Form project from .csproj to CSharp CMake CMakeLists.txt. I successfully made CMakeLists.txt similar to here. The only problem is when the project opened with CMakeLists.txt, the Form Designer is not available (as shown below). Is it any way to fix the problem? csproj: CMakeLists.txt: 回答1: Your second image (from your CMake-generated project) is in a different View than the first image. The first image is the Solution View , in which the Form1.cs and Form1

building QTCharts by using cmake

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-15 04:34:31
问题 I'm currently working on a project where Qt5Charts is used in a linux platform. By default there was qt5.5 in the system. I have installed qt5.8 in my home directory. To build the project I'm using cmake. My Cmakefile looks something like this find_package(Qt5Widgets) set(CMAKE_AUTOMOC ON) if(Qt5Widgets_FOUND) set( QT_INCLUDE_DIR ${Qt5Widgets_INCLUDE_DIRS} ) include_directories( ${QT_INCLUDE_DIR} ) set (LIBS ${LIBS} ${Qt5Widgets_LIBRARIES} ) endif() find_package(Qt5Charts) if(Qt5Charts_FOUND)

fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Visual studio 2010 and cmake

谁都会走 提交于 2020-05-15 04:06:48
问题 I have a project which i have generated with cmake and running in visual studio 2010.I changed the configuration to x64,in visual studio my active solution and the Target Machine in(Properties->Linker->Advanced) is set as x64.I still get the linker LNK1112 error.Is this something which i set in cmakelist.txt if so what is the command? -swetha 回答1: It's not something you'd want to set in CMakeLists.txt . Basically, CMake has multiple generators for different compilers. (The x86 and x64

fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Visual studio 2010 and cmake

≡放荡痞女 提交于 2020-05-15 04:04:42
问题 I have a project which i have generated with cmake and running in visual studio 2010.I changed the configuration to x64,in visual studio my active solution and the Target Machine in(Properties->Linker->Advanced) is set as x64.I still get the linker LNK1112 error.Is this something which i set in cmakelist.txt if so what is the command? -swetha 回答1: It's not something you'd want to set in CMakeLists.txt . Basically, CMake has multiple generators for different compilers. (The x86 and x64

Customising MacOS Bundle's Info.plist file with CMake

耗尽温柔 提交于 2020-05-13 06:14:19
问题 I'm using CMake generate build files for a cross platform game and want to specify custom NSMainNibFile and NSPrincipalClass values in certain bundle's Info.plist file Here's the relevant portion of my Info.plist.in template: <key>NSMainNibFile</key> <string>${MAIN_NIBFILE}</string> <key>NSPrincipalClass</key> <string>${PRINCIPAL_CLASS}</string> What I'm doing in my CMakeLists.txt is: set_target_properties(GLWindow PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "OpenGL Test" MAIN_NIBFILE "MainMenu"

CMake Error : execution of make failed on Windows

久未见 提交于 2020-05-13 04:44:10
问题 I am getting errors when trying to build nanomsg project in Windows 7: cmake .. -- Building for: NMake Makefiles -- The C compiler identification is GNU 4.7.1 -- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe CMake Error: Generator: execution of make failed. Make command was: "nmake" "/NOLOGO" "cmTC_5d837\fast" -- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe -- broken CMake Error at C:/Program Files (x86)/cmake-3.9.4

Create tar archive with Cmake

扶醉桌前 提交于 2020-05-13 03:51:05
问题 I have used the *_OUTPUT_PATH variables in my CMakeLists.txt file to specify specific locations for my binaries and library files, and that seems to be working "automatically" I would like as part of a "build" for one final step to happen, which is to create a tarball of the binaries that output directory. What do I need to add to create a tar? 回答1: You can use a CMake custom target to invoke CMake in command mode and have it produce a tarball from the binaries in the output directory. Here

Create tar archive with Cmake

蹲街弑〆低调 提交于 2020-05-13 03:39:04
问题 I have used the *_OUTPUT_PATH variables in my CMakeLists.txt file to specify specific locations for my binaries and library files, and that seems to be working "automatically" I would like as part of a "build" for one final step to happen, which is to create a tarball of the binaries that output directory. What do I need to add to create a tar? 回答1: You can use a CMake custom target to invoke CMake in command mode and have it produce a tarball from the binaries in the output directory. Here