From ca0d97442e719128d9264b33d7c3086347b8cb2f Mon Sep 17 00:00:00 2001 From: Thomas Trocha Date: Wed, 4 May 2016 16:01:40 +0200 Subject: [PATCH] linux: replaced CMake-build-system with vanilla makefile. --- linux/CMakeLists.txt | 5 ----- linux/Makefile | 3 +++ linux/README.md | 11 ++++++++--- 3 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 linux/CMakeLists.txt create mode 100644 linux/Makefile diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt deleted file mode 100644 index 4af2dfc..0000000 --- a/linux/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -cmake_minimum_required(VERSION 2.6) - -link_libraries(X11 Xtst) - -add_executable(controller Controller.cpp) diff --git a/linux/Makefile b/linux/Makefile new file mode 100644 index 0000000..cb6f651 --- /dev/null +++ b/linux/Makefile @@ -0,0 +1,3 @@ +controller: Controller.cpp + c++ -o controller Controller.cpp -lX11 -lXtst + diff --git a/linux/README.md b/linux/README.md index b06aa9b..ec151b2 100644 --- a/linux/README.md +++ b/linux/README.md @@ -30,9 +30,9 @@ There is a compiled version in the repositiory (linux/controller) Building ======== -You need libxtst and cmake. so if those are not present yet, install them: +You need libxtst. if this is not present yet, install it: -* sudo apt-get install libxtst-dev cmake +* sudo apt-get install libxtst-dev * cd linux * mkdir t * cd t @@ -47,7 +47,12 @@ To use the precompiled version you might need to make it executable: * chmod a+x controller -If there is an error like "bad descriptor" you might not have the kernel driver for ch940g installed: +If there is an error like "bad descriptor": + +1) you might have used the wrong serial-port (/dev/ttyUSB0 or /dev/ttyUSB1) check in the arduino-ide (TOOL>SERIAL_PORT) + + +2) you might not have the kernel driver for ch940g installed: * Download http://www.wch.cn/download/CH341SER_LINUX_ZIP.html * unzip