USER FORUM
(you are viewing a thread; or go back to list of threads)
fail on linux building (by Fernando)
Hi,
I'm trying to build solvespace 2.1 (Ubuntu 16.04, 64 bits), but it shows me some errors:
CMake Error at cmake/GetGitCommitHash.cmake:28 (string):
string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
cmake/GetGitCommitHash.cmake:35 (get_git_commit_hash)
CMakeLists.txt:20 (include)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_C_COMPILER:
i686-w64-mingw32-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_CXX_COMPILER:
i686-w64-mingw32-g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
I'm trying to build solvespace 2.1 (Ubuntu 16.04, 64 bits), but it shows me some errors:
CMake Error at cmake/GetGitCommitHash.cmake:28 (string):
string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
cmake/GetGitCommitHash.cmake:35 (get_git_commit_hash)
CMakeLists.txt:20 (include)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_C_COMPILER:
i686-w64-mingw32-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_CXX_COMPILER:
i686-w64-mingw32-g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
(no subject) (by whitequark)
Please use a git checkout for building (git clone https://github.com/solvespace/solvespace; git checkout v2.1), and follow the instructions in README (https://github.com/solvespace/solvespace/tree/v2.1#building-for-linux).
Your first error indicates that you aren't using a git checkout. Your second error indicates that cmake is trying to use a Windows cross-compiler. Since you don't mention cross-compilation, I assume this is not what you want, so you shouldn't pass any -DCMAKE_TOOLCHAIN_FILE options.
Your first error indicates that you aren't using a git checkout. Your second error indicates that cmake is trying to use a Windows cross-compiler. Since you don't mention cross-compilation, I assume this is not what you want, so you shouldn't pass any -DCMAKE_TOOLCHAIN_FILE options.
(no subject) (by Fernando)
Thank you, it happened smoothly this time.
(no subject) (by User1)
@Fernando, please, upload resulted deb for us!
Post a reply to this comment: