[問題] WebSocket++ Makefile.txt error

作者: smartjay (高毛毛)   2018-03-16 14:14:35
最近因為研究網路websocket 下載github上的專案 websocketpp
https://github.com/zaphoyd/websocketpp
欲測試裡面examples/echo_server 利用
Makefile.txt 下 cmake . 發生錯誤
目前還在研究Linux系統,以下是錯誤訊息
[email protected]T:~$ cd websocketpp/examples/echo_server
[email protected]:~/websocketpp/examples/echo_server$ ls
CMakeCache.txt CMakeLists.txt echo_server.cpp
CMakeFiles echo_handler.hpp SConscript
[email protected]:~/websocketpp/examples/echo_server$ cmake .
CMake Error at CMakeLists.txt:5 (init_target):
Unknown CMake command "init_target".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.5)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake
作者: hizuki (ayaka)   2018-03-16 14:49:00
cmake請在top執行,你這個位置是cmake ./../..
作者: smartjay (高毛毛)   2018-03-16 21:59:00
謝謝指導,在websocketpp/可以執行cmake cmakefile.txt在example/echo_server 位置內的cmake makefile.txt無法

Links booklink

Contact Us: admin [ a t ] ucptt.com