Closed schwatter closed 3 years ago
Ok, i solved now my problem easy with using cmake instead of make.
Use this description -> https://github.com/openv/openv/wiki/Vcontrold-Kompilieren
At the point "cmake .." i get some error
root@raspi3fhem:~/vcontrold/vcontrold/build# cmake ..
-- The C compiler identification is GNU 8.3.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
-- Found LibXml2: /usr/lib/arm-linux-gnueabihf/libxml2.so (found version "2.9.4")
CMake Error at CMakeLists.txt:25 (message):
Could not find a rst2man executable. Either set the "MANPAGES" option to
"OFF" (via cmake -DMANPAGES=OFF) or install Python's Docutils (cf.
http://docutils.sourceforge.net/).
-- Configuring incomplete, errors occurred! See also "/root/vcontrold/vcontrold/build/CMakeFiles/CMakeOutput.log".
3. To solve this
sudo apt-get install python-docutils
4. Now "cmake .." runs
root@raspi3fhem:~/vcontrold/vcontrold/build# cmake .. -- Found rst2man: /usr/bin/rst2man -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /root/vcontrold/vcontrold/build root@raspi3fhem:~/vcontrold/vcontrold/build# cmake --build . Scanning dependencies of target UpdateVersion [ 5%] Updating version header. -- Updating version information to 0.98.9-4-g198d986 ... [ 5%] Built target UpdateVersion Scanning dependencies of target vcontrold [ 10%] Building C object CMakeFiles/vcontrold.dir/src/io.c.o [ 15%] Building C object CMakeFiles/vcontrold.dir/src/common.c.o [ 20%] Building C object CMakeFiles/vcontrold.dir/src/xmlconfig.c.o [ 25%] Building C object CMakeFiles/vcontrold.dir/src/parser.c.o [ 30%] Building C object CMakeFiles/vcontrold.dir/src/socket.c.o [ 35%] Building C object CMakeFiles/vcontrold.dir/src/semaphore.c.o [ 40%] Building C object CMakeFiles/vcontrold.dir/src/framer.c.o [ 45%] Building C object CMakeFiles/vcontrold.dir/src/unit.c.o [ 50%] Building C object CMakeFiles/vcontrold.dir/src/arithmetic.c.o [ 55%] Building C object CMakeFiles/vcontrold.dir/src/vcontrold.c.o [ 60%] Linking C executable vcontrold [ 60%] Built target vcontrold Scanning dependencies of target vclient [ 65%] Building C object CMakeFiles/vclient.dir/src/common.c.o [ 70%] Building C object CMakeFiles/vclient.dir/src/socket.c.o [ 75%] Building C object CMakeFiles/vclient.dir/src/io.c.o [ 80%] Building C object CMakeFiles/vclient.dir/src/client.c.o [ 85%] Building C object CMakeFiles/vclient.dir/src/vclient.c.o [ 90%] Linking C executable vclient [ 90%] Built target vclient Scanning dependencies of target man [ 95%] Converting vcontrold.rst from ReStructuredText into manpage vcontrold.1 [100%] Converting vclient.rst from ReStructuredText into manpage vclient.1 [100%] Built target man root@raspi3fhem:~/vcontrold/vcontrold/build#
sudo make install
Well, the make system told you what was wrong:
"2.9.4") CMake Error at CMakeLists.txt:25 (message): Could not find a rst2man executable. Either set the "MANPAGES" option to "OFF" (via cmake -DMANPAGES=OFF) or install Python's Docutils (cf. http://docutils.sourceforge.net/).
;-)
But nice to hear that you could build it now!
Yes, that was easy :) So i can close now.
Hallo,
i have problems with compiling on RaspiZeroW and Raspi3. Please help. I used this instructions: https://github.com/openv/openv/wiki/vcontrold-mit-Raspberry-Pi
My pi's are all on latest buster with all updates.