• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Linux cmake error

Status
Not open for further replies.

Troya

Respected Member
Hello my partner have problems with Cmake on Linux host.
We need some one who knows work with Cmake.. if can anyone help as I will be very grateful.

here is Cmake error:
Code:
root@server:~/Source# cmake -DCMAKE_INSTALL_PREFIX:PATH="/root/build/test" -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detected 64-bit platform -- UNIX: Using jemalloc -- UNIX: Using default configuration directory -- UNIX: Using default library directory CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file): configure_file attempted to configure a file: /root/Source/cmake_uninstall.cmake into a source directory. Call Stack (most recent call first): cmake/macros/CheckPlatform.cmake:15 (include) CMakeLists.txt:48 (include) -- Configuring incomplete, errors occurred! See also "/root/Source/CMakeFiles/CMakeOutput.log". root@server:~/Source# nano /root/Source/CMakeFiles/CMakeOutput.log
 

Hyperion

Founder
Hello my partner have problems with Cmake on Linux host.
We need some one who knows work with Cmake.. if can anyone help as I will be very grateful.

here is Cmake error:
Code:
root@server:~/Source# cmake -DCMAKE_INSTALL_PREFIX:PATH="/root/build/test" -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detected 64-bit platform -- UNIX: Using jemalloc -- UNIX: Using default configuration directory -- UNIX: Using default library directory CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file): configure_file attempted to configure a file: /root/Source/cmake_uninstall.cmake into a source directory. Call Stack (most recent call first): cmake/macros/CheckPlatform.cmake:15 (include) CMakeLists.txt:48 (include) -- Configuring incomplete, errors occurred! See also "/root/Source/CMakeFiles/CMakeOutput.log". root@server:~/Source# nano /root/Source/CMakeFiles/CMakeOutput.log



How did you cmake?

You should have the Server source in one dir and build in another.
ie: /home/user/server & /home/user/build, then you go in to the build dir and cmake ../server -DPREFIX=/home/user/build

Then everything will cmake in build and you can compile

Another note, don't cmake or compile as root. Just use root to install your dependencies. Compile + Run your server as a user
 

RaxPlay

Enthusiast
well, we do have the sources in: root/Source then the build is in root/build/server where the bin and etc folders are, this is what i ran: root@server:~/Source# cmake ../server -DPREFIX=/root/build/test

but it still gives this error:

CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file):
configure_file attempted to configure a file:
/root/Source/cmake_uninstall.cmake into a source directory.
Call Stack (most recent call first):
cmake/macros/CheckPlatform.cmake:15 (include)
CMakeLists.txt:48 (include)


-- Configuring incomplete, errors occurred!


I have no clue why that happends
 

Hyperion

Founder
well, we do have the sources in: root/Source then the build is in root/build/server where the bin and etc folders are, this is what i ran: root@server:~/Source# cmake ../server -DPREFIX=/root/build/test

but it still gives this error:

CMake Error at cmake/platform/unix/settings.cmake:22 (configure_file):
configure_file attempted to configure a file:
/root/Source/cmake_uninstall.cmake into a source directory.
Call Stack (most recent call first):
cmake/macros/CheckPlatform.cmake:15 (include)
CMakeLists.txt:48 (include)


-- Configuring incomplete, errors occurred!


I have no clue why that happends

Like I said, stop trying to cmake and compile as root.

You also need to be in the BUILD directory when you run the cmake command. "../server" is not your source.

Go in the Build dir, cmake ../Source -DPREFIX=/whatever

But stop doing it as root.
 
Status
Not open for further replies.
Top