[SOLVED] Unable to build from source

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
JeanBonnot
Posts: 8
Joined: Tuesday 22 October 2019 17:22
Target OS: Linux
Domoticz version: 2024.1
Location: France
Contact:

[SOLVED] Unable to build from source

Post by JeanBonnot »

Board : Orange pi5
OS: dietpi 9.11.2
boost : 1.84.0
cmake : 3.28.3

I followed the instructions given here: https://wiki.domoticz.com/Build_Domoticz_from_source

it seems that boost is not the right version...

Code: Select all

pi5@domoticz:~/dev-domoticz$  make
-- Submodule update
Depuis https://github.com/Thalhammer/jwt-cpp
 + 2d645c6...4d6a6e8 gh-pages   -> origin/gh-pages  (mise à jour forcée)
   71c3d36..482f4f1  master     -> origin/master
Chemin de sous-module 'extern/jwtcpp' : '482f4f1c050fb59db7f824636d8ab70ef8525544' extrait
-- LUA library found at: /usr/lib/aarch64-linux-gnu/liblua5.3.a
-- Python3 version 3.11.2 includes found at: /usr/include/python3.11
-- Building with I2C support
-- Building with SPI support
-- ###########################
-- Compiling Revision #16466
-- ###########################
-- Using builtin jsoncpp library
-- JsonCpp Version: 1.9.4
-- Using builtin Mosquitto library
-- WITH_DLT = OFF
-- Could NOT find cJSON (missing: CJSON_INCLUDE_DIR CJSON_LIBRARY)
-- Optional dependency cJSON not found. Some features will be disabled.
-- SQLite library found at: /usr/lib/aarch64-linux-gnu/libsqlite3.so
-- SQLite includes found at: /usr/include
CMake Deprecation Warning at extern/minizip/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using builtin jwt-cpp library
-- OPENSSL library found at: /usr/lib/aarch64-linux-gnu/libssl.so;/usr/lib/aarch64-linux-gnu/libcrypto.so
-- Linking against boost static libraries
-- Found Boost: /usr/local/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found version "1.84.0") found components: thread system
-- BOOST includes found at: /usr/local/include
-- ZLIB library found at: /usr/lib/aarch64-linux-gnu/libz.so
-- ZLIB includes found at: /usr/include
-- Curl library found at: /usr/lib/aarch64-linux-gnu/libcurl.so
-- Curl includes found at: /usr/include/aarch64-linux-gnu
-- LIBUSB library found at: /usr/lib/aarch64-linux-gnu/libusb.so
-- OpenZWave library found at: /home/pi5/open-zwave-read-only/libopenzwave.a
-- OpenZWave includes found at: /home/pi5/open-zwave-read-only/cpp/src
-- GPIO is available
-- Not found telldus-core (telldus-core.h), not adding tellstick support
-- Using precompiled headers
-- Using static libgcc/libstdc++
-- Configuring done (4.0s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pi5/dev-domoticz
[  0%] Built target minizip
-- Found Git: /usr/bin/git (found version "2.39.5")
[  0%] Built target revisiontag
[  0%] Built target jsoncpp_static
[ 14%] Built target libmosquitto_static
[ 16%] Building CXX object CMakeFiles/domoticz.dir/main/Camera.cpp.o
In file included from /home/pi5/dev-domoticz/main/../tcpserver/TCPServer.h:4,
                 from /home/pi5/dev-domoticz/main/mainworker.h:12,
                 from /home/pi5/dev-domoticz/main/Camera.cpp:7:
/home/pi5/dev-domoticz/main/../tcpserver/TCPClient.h:41:43: error: expected ‘)’ before ‘&’ token
   41 |         CTCPClient(boost::asio::io_service& ios, CTCPServerIntBase *pManager);
      |                   ~                       ^
      |                                           )

/home/pi5/dev-domoticz/main/../tcpserver/TCPServer.h:74:22: error: ‘io_service’ in namespace ‘boost::asio’ does not name a type; did you mean ‘use_service’?
   74 |         boost::asio::io_service io_service_;
      |                      ^~~~~~~~~~
      |                      use_service
In file included from /home/pi5/dev-domoticz/main/../webserver/connection_manager.hpp:16,
                 from /home/pi5/dev-domoticz/main/../webserver/server.hpp:13,
                 from /home/pi5/dev-domoticz/main/../webserver/cWebem.h:5,
                 from /home/pi5/dev-domoticz/main/WebServer.h:4,
                 from /home/pi5/dev-domoticz/main/Camera.cpp:12:
/home/pi5/dev-domoticz/main/../webserver/connection.hpp:47:68: error: expected ‘)’ before ‘&’ token
   47 |                         explicit connection(boost::asio::io_service& io_service,
      |                                            ~                       ^
      |                                                                    )
/home/pi5/dev-domoticz/main/../webserver/connection.hpp:50:68: error: expected ‘)’ before ‘&’ token
   50 |                         explicit connection(boost::asio::io_service& io_service,
      |                                            ~                       ^
      |                                                                    )
/home/pi5/dev-domoticz/main/../webserver/server.hpp:50:38: error: ‘io_service’ in namespace ‘boost::asio’ does not name a type; did you mean ‘use_service’?
   50 |                         boost::asio::io_service io_service_;
      |                                      ^~~~~~~~~~
      |                                      use_service
/home/pi5/dev-domoticz/main/../webserver/cWebem.h:262:38: error: ‘io_service’ in namespace ‘boost::asio’ does not name a type; did you mean ‘use_service’?
  262 |                         boost::asio::io_service m_io_service;
      |                                      ^~~~~~~~~~
      |                                      use_service
make[2]: *** [CMakeFiles/domoticz.dir/build.make:141 : CMakeFiles/domoticz.dir/main/Camera.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:384 : CMakeFiles/domoticz.dir/all] Erreur 2
make: *** [Makefile:156 : all] Erreur 2
pi5@domoticz:~/dev-domoticz$ ^C
pi5@domoticz:~/dev-domoticz$
Last edited by JeanBonnot on Tuesday 25 February 2025 12:20, edited 1 time in total.
User avatar
JeanBonnot
Posts: 8
Joined: Tuesday 22 October 2019 17:22
Target OS: Linux
Domoticz version: 2024.1
Location: France
Contact:

Re: Unable to build from source

Post by JeanBonnot »

It's fixed, the origin of the problem is the prior installation/compilation of boost (v1.87), you have to delete all the boost folders in /usr/local/include and /usr/local/lib, then build boost version 1.84
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest