Показать сообщение отдельно

  #25  
Старый 25.07.2024, 02:10
uymuym
Новичок
Регистрация: 25.07.2024
Сообщений: 5
С нами: 951454

Репутация: 1
По умолчанию

Цитата:
Сообщение от neonpro5  

ИНУСТРУКЦИЯ ДЛЯ Linux серверов.
Подключаетесь к хостингу по ssh или запускаете на виртуалке тот дистрибутив линукса, на котором у вас стоит сервер.
Далее скачиваете git и cmake (вероятнее всего для вас это будет команда sudo apt install git, sudo apt install cmake).
Далее скачиваем репозиторий с помощью команды git clone https://github.com/atomlin-git/srv-crashfix.git
Переходим в него с помощью команды cd srv-crashfix
Создаём папку build, с помощью команды mkdir build
заходим в папку cd build
собираем проект с помощью cmake: cmake ..
компилируем проект make
проект собран
root@vds-97946:~/srv-crashfix# cmake cmake /root/srv-crashfix

-- The C compiler identification is GNU 5.4.0

-- The CXX compiler identification is GNU 5.4.0

-- 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

-- Detecting C compile features

-- Detecting C compile features - 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

-- Detecting CXX compile features

-- Detecting CXX compile features - done

You have called ADD_LIBRARY for library scf without any source files. This typically indicates a problem with your CMakeLists.txt file

-- Configuring done

-- Generating done

-- Build files have been written to: /root/srv-crashfix

root@vds-97946:~/srv-crashfix# cmake: cmake ..

-bash: cmake:: command not found

root@vds-97946:~/srv-crashfix# make

Scanning dependencies of target scf

[ 50%] Building CXX object CMakeFiles/scf.dir/source/main.cpp.o

In file included from /usr/include/dlfcn.h:22:0,

from /root/srv-crashfix/includes/urmem.hpp:32,

from /root/srv-crashfix/includes/headers.hpp:3,

from /root/srv-crashfix/source/main.cpp:1:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

compilation terminated.

CMakeFiles/scf.dir/build.make:62: recipe for target 'CMakeFiles/scf.dir/source/main.cpp.o' failed

make[2]: *** [CMakeFiles/scf.dir/source/main.cpp.o] Error 1

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/scf.dir/all' failed

make[1]: *** [CMakeFiles/scf.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

root@vds-97946:~/srv-crashfix# cd build

root@vds-97946:~/srv-crashfix/build# make

Scanning dependencies of target scf

[ 50%] Building CXX object CMakeFiles/scf.dir/source/main.cpp.o

In file included from /usr/include/dlfcn.h:22:0,

from /root/srv-crashfix/includes/urmem.hpp:32,

from /root/srv-crashfix/includes/headers.hpp:3,

from /root/srv-crashfix/source/main.cpp:1:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

compilation terminated.

CMakeFiles/scf.dir/build.make:62: recipe for target 'CMakeFiles/scf.dir/source/main.cpp.o' failed

make[2]: *** [CMakeFiles/scf.dir/source/main.cpp.o] Error 1

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/scf.dir/all' failed

make[1]: *** [CMakeFiles/scf.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

root@vds-97946:~/srv-crashfix/build# make

[ 50%] Building CXX object CMakeFiles/scf.dir/source/main.cpp.o

In file included from /usr/include/dlfcn.h:22:0,

from /root/srv-crashfix/includes/urmem.hpp:32,

from /root/srv-crashfix/includes/headers.hpp:3,

from /root/srv-crashfix/source/main.cpp:1:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

compilation terminated.

CMakeFiles/scf.dir/build.make:62: recipe for target 'CMakeFiles/scf.dir/source/main.cpp.o' failed

make[2]: *** [CMakeFiles/scf.dir/source/main.cpp.o] Error 1

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/scf.dir/all' failed

make[1]: *** [CMakeFiles/scf.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

что делать
 
Ответить с цитированием