From d638096a1b61bbe42cd4dfbcf33ad18bb7cea5c6 Mon Sep 17 00:00:00 2001 From: Pedro Velho Date: Thu, 27 Dec 2018 16:25:30 +0100 Subject: [PATCH 1/2] Solve cmake error while importing SDL2. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index caddb8ae..08184b80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,7 @@ endif (UNIX) find_package(SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIR}) +string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES) link_libraries(${SDL2_LIBRARIES}) add_executable(${PROJECT_WX} ${SOURCES}) From b965bded4c4b07983384a002e15027cdb1f62570 Mon Sep 17 00:00:00 2001 From: Pedro Velho Date: Thu, 27 Dec 2018 16:27:36 +0100 Subject: [PATCH 2/2] Add common dependence packagens needed. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3f0e18de..9ceec2c8 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,14 @@ As for the rest, the interface should be pretty straightforward. If you have a q ### Linux: +* Install dependencies: + +```sh +sudo apt-get install libpcap0.8-dev libcurl4-gnutls-dev libsdl2-dev gtk+-3.0 +``` + +* Compile: + ```sh mkdir -p build cd build @@ -42,6 +50,8 @@ cmake .. make ``` + + ### Windows: * use CodeBlocks