cmake

std::filesystem and std::experimental::filesystem problem in different compilers

大兔子大兔子 提交于 2020-12-15 06:47:09
问题 I am writing a library (just for learning) which utilizes std::filesystem. It works fine on MSVC however by default LTS releases of Linux like Ubuntu ships with GCC 6.x and clang in the official repository is 3.8 which doesn't have std::filesystem instead I have to use std::experimental::filesystem. How may I workaround this problem so that I can support GCC 6, GCC 8+ (where std::filesystem works), Clang 3.8, latest Clang and MSVC? I am using CMAKE as my build system 回答1: Conditional

Getting the error “make: [Makefile:2: all] Error 127” when I use the make command

不问归期 提交于 2020-12-15 06:23:12
问题 I am trying to install this project onto my computer and have been running into issue after issue. The roadblock I've run into now is error 127. Most of the install works fine, until it gets to the step "make." I get the following output: mkdir -p build && cd build && cmake .. && make /bin/sh: cmake: commant not found make: *** [Makefile:2: all] Error 127 I have tried installing on Git Bash for Windows 10 and using the terminal in CentOS. Both give me the same error. I have tried installing

Getting the error “make: [Makefile:2: all] Error 127” when I use the make command

五迷三道 提交于 2020-12-15 06:23:06
问题 I am trying to install this project onto my computer and have been running into issue after issue. The roadblock I've run into now is error 127. Most of the install works fine, until it gets to the step "make." I get the following output: mkdir -p build && cd build && cmake .. && make /bin/sh: cmake: commant not found make: *** [Makefile:2: all] Error 127 I have tried installing on Git Bash for Windows 10 and using the terminal in CentOS. Both give me the same error. I have tried installing

Building grpc from source using preinstalled packages

时光毁灭记忆、已成空白 提交于 2020-12-15 05:47:21
问题 I'm trying to integrate gRPC in existing project. It already has directory containing all gRPC's dependencies installed (ssl, c-ares, protobuf and zlib). I want to use them while building gRPC, and install gRPC into the same directory. I downloaded gRPC archive (without cloning submodules located in grpc/third_party/), and tried to generate build system for building and installing gRPC into my destination folder (using cmake). I used following command: cmake -DCMAKE_INSTALL_PREFIX=$PREFIX

Fail to find gtest inside a container

巧了我就是萌 提交于 2020-12-15 05:16:58
问题 I am working inside a container. I want to try gtest so first I installed it by doing this inside the container: Download the source file from github/google/googletest build the project by cmake CMakeLists.txt call make cd lib and cp * /usr/lib cd googlemock/include and cp -r gmock /usr/local/include cd googletest/include and cp -r gtest /usr/local/include After this I created a CMakeLists.txt file as cmake_minimum_required(VERSION 3.13) set(CMAKE_CXX_STANDARD 11) find_package(GTest REQUIRED)

Fail to find gtest inside a container

自作多情 提交于 2020-12-15 05:16:12
问题 I am working inside a container. I want to try gtest so first I installed it by doing this inside the container: Download the source file from github/google/googletest build the project by cmake CMakeLists.txt call make cd lib and cp * /usr/lib cd googlemock/include and cp -r gmock /usr/local/include cd googletest/include and cp -r gtest /usr/local/include After this I created a CMakeLists.txt file as cmake_minimum_required(VERSION 3.13) set(CMAKE_CXX_STANDARD 11) find_package(GTest REQUIRED)

Fail to find gtest inside a container

*爱你&永不变心* 提交于 2020-12-15 05:16:05
问题 I am working inside a container. I want to try gtest so first I installed it by doing this inside the container: Download the source file from github/google/googletest build the project by cmake CMakeLists.txt call make cd lib and cp * /usr/lib cd googlemock/include and cp -r gmock /usr/local/include cd googletest/include and cp -r gtest /usr/local/include After this I created a CMakeLists.txt file as cmake_minimum_required(VERSION 3.13) set(CMAKE_CXX_STANDARD 11) find_package(GTest REQUIRED)

Building MariaDB with musl: /usr/bin/ld cannot find -lgcc_s

左心房为你撑大大i 提交于 2020-12-13 17:55:53
问题 I am trying to build MariaDB v10.3 with a musl tool chain on x86_64 Debian kernel v4.19. I have mainly been using the musl-gcc gcc wrapper to achieve this. The relevant packages I installed are as follows: musl (1.1.21-2): standard C library musl-dev (1.1.21-2): standard C library development files musl-tools (1.1.21-2): standard C library tools To build MariaDB, I first run: CC=/usr/bin/musl-gcc cmake ../ -DWITHOUT_TOKUDB=1 which exits cleanly, and then I follow that up with: make CC=/usr

Building MariaDB with musl: /usr/bin/ld cannot find -lgcc_s

五迷三道 提交于 2020-12-13 17:54:47
问题 I am trying to build MariaDB v10.3 with a musl tool chain on x86_64 Debian kernel v4.19. I have mainly been using the musl-gcc gcc wrapper to achieve this. The relevant packages I installed are as follows: musl (1.1.21-2): standard C library musl-dev (1.1.21-2): standard C library development files musl-tools (1.1.21-2): standard C library tools To build MariaDB, I first run: CC=/usr/bin/musl-gcc cmake ../ -DWITHOUT_TOKUDB=1 which exits cleanly, and then I follow that up with: make CC=/usr

Building MariaDB with musl: /usr/bin/ld cannot find -lgcc_s

纵然是瞬间 提交于 2020-12-13 17:51:36
问题 I am trying to build MariaDB v10.3 with a musl tool chain on x86_64 Debian kernel v4.19. I have mainly been using the musl-gcc gcc wrapper to achieve this. The relevant packages I installed are as follows: musl (1.1.21-2): standard C library musl-dev (1.1.21-2): standard C library development files musl-tools (1.1.21-2): standard C library tools To build MariaDB, I first run: CC=/usr/bin/musl-gcc cmake ../ -DWITHOUT_TOKUDB=1 which exits cleanly, and then I follow that up with: make CC=/usr