Raspberry Pi 2 B Installation issues, two problems

701 views
Skip to first unread message

Markus Noack

unread,
Oct 14, 2015, 4:56:50 AM10/14/15
to Kaa project

Hi, I try to follow the C++ SDK install instructions for Raspberry.

Do you have any ideas how I could fix this? Just want to test the Notification demo out of the Kaa sandbox on Raspberry Pi 2B.


On step 5 "Install Botan (1.10)" I get the following message:

pi@raspi2 ~/Botan-1.10.9 $ sudo make install
g++ -Ibuild/
include -O3
-finline-functions -march=armv7 -D_REENTRANT -Wno-long-long -W -Wall
-fPIC -fvisibility=hidden -c src/algo_base/symkey.cpp -o
build
/lib/algo_base_symkey.o
src
/algo_base/symkey.cpp:1:0: error: target CPU does not support ARM mode
 
/*
 ^
Makefile:571: recipe for target 'build/lib/algo_base_symkey.o' failed
make: *** [build/lib/algo_base_symkey.o] Error 1


---------------------

When I ignore this and try to deploy the source of Notification demo to the raspberry:


pi@raspi2 ~/CppNotificationDemo $ ./build.sh deploy
Generating necessary files according to Avro schemas
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
avrogen
.sh has been found
Generating necessary files according to Avro schemas
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
==================================
KAA_MAX_LOG_LEVEL
=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.10'
--   package 'botan-1.10' not found
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- KAA WILL BE INSTALLED TO  /usr/local
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOTAN_INCLUDE_DIR
(ADVANCED)
   used
as include directory in directory /home/pi/CppNotificationDemo/libs/kaa
   used
as include directory in directory /home/pi/CppNotificationDemo/libs/kaa
   used
as include directory in directory /home/pi/CppNotificationDemo/libs/kaa
BOTAN_LIBRARY
(ADVANCED)
    linked
by target "kaacpp" in directory /home/pi/CppNotificationDemo/libs/kaa

-- Configuring incomplete, errors occurred!
See also "/home/pi/CppNotificationDemo/libs/kaa/build/CMakeFiles/CMakeOutput.log".
make
: *** No targets specified and no makefile found.  Stop.
cp
: cannot stat 'libs/kaa/build/libkaa*': No such file or directory
make
: *** No targets specified and no makefile found.  Stop.
./build.sh: line 92: ./demo_client: No such file or directory


Denis Kimcherenko

unread,
Oct 14, 2015, 11:32:53 AM10/14/15
to Kaa project
Hi Markus,

On step 5 "Install Botan (1.10)" I get the following message:
pi@raspi2 ~/Botan-1.10.9 $ sudo make install
g++ -Ibuild/
include -O3
-finline-functions -march=armv7 -D_REENTRANT -Wno-long-long -W -Wall
-fPIC -fvisibility=hidden -c src/algo_base/symkey.cpp -o
build
/lib/algo_base_symkey.o
src
/algo_base/symkey.cpp:1:0: error: target CPU does not support ARM mode

I will recheck the Kaa RasberryPi instruction by myself tomorrow. Meanwhile you may try the following command to build Botan:
cd <Botan_home>
./configure.py --cpu=arm
sudo make install

Ragarding to the second issue, it seems that not all needed Boost libraries are installed on the board.
Generating necessary files according to Avro schemas
avrogencpp
: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory

Please, attach the output of 'ls /usr/lib/libboost_*' and 'ls /usr/local/lib/libboost_*'.

Best regards,
Denis

Markus Noack

unread,
Oct 15, 2015, 4:56:49 AM10/15/15
to Kaa project

cd <Botan_home>
./configure.py --cpu=arm
sudo make install

I deleted the existing Botan home directory and ran step 5 again with the "./configure.py --cpu=arm" command. Now it compiled/installed successfully, thank you very much!

And the second Problem with Avro is solved as well - the Notification demo now compiles and runs smoothly :)
 
Best regards,
Markus

Denis Kimcherenko

unread,
Oct 15, 2015, 5:29:01 AM10/15/15
to Kaa project
Hi Markus,

I've updated the Kaa Rasberry Pi instruction according to the result of our investigation.
So did you fail to build only Botan following this instruction or some other steps are invalid too?

Best regards,
Denis

Markus Noack

unread,
Oct 15, 2015, 5:44:22 AM10/15/15
to Kaa project

So did you fail to build only Botan following this instruction or some other steps are invalid too?

Yes, Botan was the only thing that failed. The rest of the tutorial worked well.
 

Denis Kimcherenko

unread,
Oct 15, 2015, 6:21:20 AM10/15/15
to Kaa project
Good, thanks.

Tomás Hidalgo

unread,
Nov 14, 2015, 9:33:59 AM11/14/15
to Kaa project
Hi, I've a similar issue while deploying on raspberry pi2

 ./build.sh deploy
Please enter architecture(default is x86-64):

Generating necessary files according to Avro schemas
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
avrogen.sh has been found
Generating necessary files according to Avro schemas
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
==================================
KAA_MAX_LOG_LEVEL=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.10'
--   found botan-1.10, version 1.10.9
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- Include directory: /usr/local/include
-- Library: /usr/local/lib/libbotan-1.10.a;-lrt
-- KAA WILL BE INSTALLED TO  /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/IoT/C++/CppNotificationDemo/libs/kaa/build



El jueves, 15 de octubre de 2015, 12:21:20 (UTC+2), Denis Kimcherenko escribió:
Good, thanks.

Denis Kimcherenko

unread,
Nov 14, 2015, 11:06:38 AM11/14/15
to Kaa project
Hi Tomas,

According to logs of a build, 
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory

Boost filesystem library isn't installed on your Raspberry or it is located not in one of system directories (/usr/lib/ or /usr/local/lib).

Tomás Hidalgo

unread,
Nov 14, 2015, 12:56:04 PM11/14/15
to Kaa project
Hi Denis,

Thanks for your quick answer. That is what I thought but must be other thin ... Look at this: 

pi@raspberrypi ~ $ ls /usr/local/lib | grep boost
libboost_atomic.a
libboost_atomic.so
libboost_atomic.so.1.58.0
libboost_chrono.a
libboost_chrono.so
libboost_chrono.so.1.58.0
libboost_container.a
libboost_container.so
libboost_container.so.1.58.0
libboost_context.a
libboost_context.so
libboost_context.so.1.58.0
libboost_coroutine.a
libboost_coroutine.so
libboost_coroutine.so.1.58.0
libboost_date_time.a
libboost_date_time.so
libboost_date_time.so.1.58.0
libboost_exception.a
libboost_filesystem.a
libboost_filesystem.so
libboost_filesystem.so.1.58.0
libboost_graph.a
libboost_graph.so
libboost_graph.so.1.58.0
libboost_iostreams.a
libboost_iostreams.so
libboost_iostreams.so.1.58.0
libboost_locale.a
libboost_locale.so
libboost_locale.so.1.58.0
libboost_log.a
libboost_log_setup.a
libboost_log_setup.so
libboost_log_setup.so.1.58.0
libboost_log.so
libboost_log.so.1.58.0
libboost_math_c99.a
libboost_math_c99f.a
libboost_math_c99f.so
libboost_math_c99f.so.1.58.0
libboost_math_c99l.a
libboost_math_c99l.so
libboost_math_c99l.so.1.58.0
libboost_math_c99.so
libboost_math_c99.so.1.58.0
libboost_math_tr1.a
libboost_math_tr1f.a
libboost_math_tr1f.so
libboost_math_tr1f.so.1.58.0
libboost_math_tr1l.a
libboost_math_tr1l.so
libboost_math_tr1l.so.1.58.0
libboost_math_tr1.so
libboost_math_tr1.so.1.58.0
libboost_prg_exec_monitor.a
libboost_prg_exec_monitor.so
libboost_prg_exec_monitor.so.1.58.0
libboost_program_options.a
libboost_program_options.so
libboost_program_options.so.1.58.0
libboost_python.a
libboost_python.so
libboost_python.so.1.58.0
libboost_random.a
libboost_random.so
libboost_random.so.1.58.0
libboost_regex.a
libboost_regex.so
libboost_regex.so.1.58.0
libboost_serialization.a
libboost_serialization.so
libboost_serialization.so.1.58.0
libboost_signals.a
libboost_signals.so
libboost_signals.so.1.58.0
libboost_system.a
libboost_system.so
libboost_system.so.1.58.0
libboost_test_exec_monitor.a
libboost_thread.a
libboost_thread.so
libboost_thread.so.1.58.0
libboost_timer.a
libboost_timer.so
libboost_timer.so.1.58.0
libboost_unit_test_framework.a
libboost_unit_test_framework.so
libboost_unit_test_framework.so.1.58.0
libboost_wave.a
libboost_wave.so
libboost_wave.so.1.58.0
libboost_wserialization.a
libboost_wserialization.so
libboost_wserialization.so.1.58.0

Tomás Hidalgo

unread,
Nov 15, 2015, 10:05:40 AM11/15/15
to Kaa project
Hello,


To complete information...Just executing 'avrogencpp' on the command line shows the following message:

pi@raspberrypi ~/IoT/C++/CppNotificationDemo $ avrogencpp
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory

Where is avrogencpp program looking for the libs ?

Tomás Hidalgo

unread,
Nov 15, 2015, 10:36:31 AM11/15/15
to Kaa project
Solved the problem with avrogencpp,

Something was wrong with the file avrogencpp located on:

 -rwxr-xr-x 1 root staff 815804 Nov 15 13:27 /usr/local/bin/avrogencpp

Substituting it for the upon rebuilt, avrogencpp works:

-rwxr-xr-x 1 root root 815804 Nov 15 13:27 /home/pi/avro-cpp-1.7.7/avrogencpp

But now the notification example built has new problems :-( :

pi@raspberrypi ~/IoT/C++/CppNotificationDemo $ ./build.sh deploy
Please enter architecture(default is x86-64):

Generating necessary files according to Avro schemas
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
avrogen.sh has been found
Generating necessary files according to Avro schemas
Scanning dependencies of target kaacpp_o
[  2%] [  5%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/notification/NotificationManager.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/notification/NotificationTransport.cpp.o
[  8%] [ 11%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultOperationTcpChannel.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultBootstrapChannel.cpp.o
In file included from /home/pi/IoT/C++/CppNotificationDemo/libs/kaa/kaa/channel/impl/DefaultOperationTcpChannel.hpp:38:0,
                 from /home/pi/IoT/C++/CppNotificationDemo/libs/kaa/impl/channel/impl/DefaultOperationTcpChannel.cpp:19:
/home/pi/IoT/C++/CppNotificationDemo/libs/kaa/kaa/utils/KaaTimer.hpp: In lambda function:
/home/pi/IoT/C++/CppNotificationDemo/libs/kaa/kaa/utils/KaaTimer.hpp:73:42:   instantiated from ‘kaa::KaaTimer<Signature, Function>::start(std::size_t, const Function&) [with Signature = void(), Function = std::function<void()>, std::size_t = unsigned int]::<lambda()>’
/home/pi/IoT/C++/CppNotificationDemo/libs/kaa/kaa/utils/KaaTimer.hpp:73:13:   instantiated from ‘void kaa::KaaTimer<Signature, Function>::start(std::size_t, const Function&) [with Signature = void(), Function = std::function<void()>, std::size_t = unsigned int]’
/home/pi/IoT/C++/CppNotificationDemo/libs/kaa/impl/channel/impl/DefaultOperationTcpChannel.cpp:275:99:   instantiated from here
/home/pi/IoT/C++/CppNotificationDemo/libs/kaa/kaa/utils/KaaTimer.hpp:73:46: error: ‘run’ was not declared in this scope
CMakeFiles/kaacpp_o.dir/build.make:100: recipe for target 'CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultOperationTcpChannel.cpp.o' failed
make[2]: *** [CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultOperationTcpChannel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/kaacpp_o.dir/all' failed
make[1]: *** [CMakeFiles/kaacpp_o.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
cp: cannot stat `libs/kaa/build/libkaa*': No such file or directory
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory

Denis Kimcherenko

unread,
Nov 15, 2015, 1:38:50 PM11/15/15
to Kaa project
It seems like installed GCC doesn't support some C++11 features what are used in Kaa C++ SDK.
To update a GCC compiler on Raspberry, please, follow these instructions.

Tomás Hidalgo

unread,
Nov 18, 2015, 4:38:31 PM11/18/15
to Kaa project
Mmmm, didn't work. I've noticed that my raspbian version is wheezy, I'll try to upgrade to jessi and restart the process.

Tomás Hidalgo

unread,
Nov 22, 2015, 12:57:43 PM11/22/15
to Kaa project
Same problems with jessi raspbian:

pi@raspberrypi ~/CppNotificationDemo $ ./build.sh deploy
Please enter architecture(default is x86-64):

Generating necessary files according to Avro schemas
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
avrogen.sh has been found
Generating necessary files according to Avro schemas
==================================
KAA_MAX_LOG_LEVEL=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so  
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.10'
--   found botan-1.10, version 1.10.9
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- Include directory: /usr/local/include/botan-1.10
-- Library: /usr/local/lib/libbotan-1.10.a;-lrt
-- KAA WILL BE INSTALLED TO  /usr/local 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/CppNotificationDemo/libs/kaa/build
Scanning dependencies of target kaacpp_o
[  2%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/notification/NotificationManager.cpp.o
[  5%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/notification/NotificationTransport.cpp.o
[  8%] [ 11%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultOperationTcpChan
nel.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultBootstrapChannel.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
CMakeFiles/kaacpp_o.dir/build.make:77: recipe for target 'CMakeFiles/kaacpp_o.dir/impl/notification
/NotificationTransport.cpp.o' failed
make[2]: *** [CMakeFiles/kaacpp_o.dir/impl/notification/NotificationTransport.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/kaacpp_o.dir/all' failed
make[1]: *** [CMakeFiles/kaacpp_o.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
cp: cannot stat ‘libs/kaa/build/libkaa*’: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory

Denis Kimcherenko

unread,
Nov 30, 2015, 2:58:20 AM11/30/15
to Kaa project
Is this issue still reproducible?

Akash R Vasishta

unread,
Feb 24, 2016, 9:54:12 AM2/24/16
to Kaa project

Hello Denis, I am still facing the same issues on Intel edison 

>>>>>>>>>>>
root@edison:~/CppNotificationDemo# ./build.sh deploy
Please enter architecture(default is x86-64):

Generating necessary files according to Avro schemas
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
Generating necessary files according to Avro schemas
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory
==================================
KAA_MAX_LOG_LEVEL=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so  
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.10'
--   package 'botan-1.10' not found
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- KAA WILL BE INSTALLED TO  /usr/local 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOTAN_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
BOTAN_LIBRARY (ADVANCED)
    linked by target "kaacpp" in directory /home/root/CppNotificationDemo/libs/kaa

-- Configuring incomplete, errors occurred!
See also "/home/root/CppNotificationDemo/libs/kaa/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
cp: cannot stat 'libs/kaa/build/libkaa*': No such file or directory
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory
root@edison:~/CppNotificationDemo# 
>>>>>>>>>>>


Installing Botan from this http://docs.kaaproject.org/display/KAA/Intel+Edison 
When I try "make install" it happens but the output goes on like this

>>>>>>>
root@edison:~/botan-1.11.28# make install
make: Warning: File 'src/lib/asn1/alg_id.cpp' has modification time 19568747 s in the future
g++  -pthread -fstack-protector -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -O3 -mtune=generic -momit-leaf-frame-pointer -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Ibuild/include -c ./src/lib/asn1/alg_id.cpp -o build/obj/lib/asn1_alg_id.o
g++  -pthread -fstack-protector -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -O3 -mtune=generic -momit-leaf-frame-pointer -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Ibuild/include -c ./src/lib/asn1/asn1_alt_name.cpp -o build/obj/lib/asn1_alt_name.o
.
.
.
.
>>>>>>>
Some missing declaration comes for all. But for RPi Botan installation is happening properly. 

On Monday, 30 November 2015 13:28:20 UTC+5:30, Denis Kimcherenko wrote:
Is this issue still reproducible?
Message has been deleted

Akash R Vasishta

unread,
Feb 24, 2016, 10:37:29 AM2/24/16
to Kaa project
*Sorry I am facing the same missing declaration on RPi as well. If I ignore that and run ./build.sh deploy , this is the output

>>>>>>>>>
pi@raspberrypi ~/CppNotificationDemo $ ./build.sh deploy
Please enter architecture(default is x86-64):

Generating necessary files according to Avro schemas
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
Generating necessary files according to Avro schemas
==================================
KAA_MAX_LOG_LEVEL=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so  
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.10'
--   package 'botan-1.10' not found
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- KAA WILL BE INSTALLED TO  /usr/local 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOTAN_LIBRARY (ADVANCED)
    linked by target "kaacpp" in directory /home/pi/CppNotificationDemo/libs/kaa

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
cp: cannot stat `libs/kaa/build/libkaa*': No such file or directory
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory
pi@raspberrypi ~/CppNotificationDemo $ 

Denis Kimcherenko

unread,
Feb 25, 2016, 6:03:55 AM2/25/16
to Kaa project
Hi Akash,

Let's walk through all issues in series:

1. avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory

First of all run the configuration tool for a dynamic linker and re-run avrogencpp:

cd ~
sudo ldconfig
avrogencpp

If the problem is still reproducible. Go to the root directory of Avro sources. 
Find there the avrogencpp binary and try to run it. If no errors occured, replace /usr/bin/avrogencpp (or /usr/local/bin/avrogencpp) by this binary.

2. Botan not found.

Here is a version mapping for Kaa C++ SDK and Botan:

Kaa 0.7.4 - Botan 1.10
Kaa 0.8.0 - Botan 1.11

According to the build lo, you have installed Botan 1.11. 
 
>>>>>>>
root@edison:~/botan-1.11.28# make install
make: Warning: File 'src/lib/asn1/alg_id.cpp' has modification time 19568747 s in the future
g++  -pthread -fstack-protector -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -O3 -mtune=generic -momit-leaf-frame-pointer -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Ibuild/include -c ./src/lib/asn1/alg_id.cpp -o build/obj/lib/asn1_alg_id.o

So you need to use Kaa 0.8.0, but the build log says what you use Kaa 0.7.4

Akash R Vasishta

unread,
Feb 29, 2016, 2:57:09 AM2/29/16
to Kaa project
Thank you for replying Denis,
I removed 
1. avrogencpp: error while loading shared libraries: libboost_filesystem.so.1.58.0: cannot open shared object file: No such file or directory 
this  error by doing - 
export LD_LIBRARY_PATH=/usr/local/lib

And now I am using kaa C++ SDK generated from kaa 0.8.0 and I am getting these errors-
>>>>>>>>.
root@edison:~/CppNotificationDemo# ./build.sh deploy
Please enter architecture(default is x86-64):
x86-32
Generating necessary files according to Avro schemas
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
==================================
Generating necessary files according to Avro schemas
==================================
KAA_MAX_LOG_LEVEL=3
NOTIFICATIONS ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   log
--   system
--   thread

Looking for Avro C++ headers and libraries
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'avro-cpp'
--   package 'avro-cpp' not found
-- Found Avro: /usr/local/lib/libavrocpp.so  
-- Include directories: /usr/local/include
-- Libraries: /usr/local/lib/libavrocpp.so
-- FindBotan check
-- checking for module 'botan-1.11'
--   package 'botan-1.11' not found
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- KAA WILL BE INSTALLED TO /usr/local 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOTAN_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
   used as include directory in directory /home/root/CppNotificationDemo/libs/kaa
BOTAN_LIBRARY (ADVANCED)
    linked by target "kaacpp" in directory /home/root/CppNotificationDemo/libs/kaa

-- Configuring incomplete, errors occurred!
See also "/home/root/CppNotificationDemo/libs/kaa/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
cp: cannot stat 'libs/kaa/build/libkaa*': No such file or directory
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory
root@edison:~/CppNotificationDemo# 

Denis Kimcherenko

unread,
Feb 29, 2016, 4:36:40 AM2/29/16
to Kaa project
Hi again,

So did you install Botan 1.11?
According to the build log, this library isn't installed on your board or it is installed not in one of system folders (/usr/include/ or /usr/local/include/).

Akash R Vasishta

unread,
Mar 7, 2016, 8:31:11 AM3/7/16
to Kaa project
Denis, I switched over to C, since it started working.

Vinayak Singh

unread,
Apr 18, 2018, 2:36:20 PM4/18/18
to Kaa project
Hi Denis,

 Many Thanks for your post. I faced similar issue and was able to resolve using steps provided by you (sudo ldconfig, avrogencpp) and after it my application is built successfully as described in KAA documentation.

Regards,
Vinayak
Reply all
Reply to author
Forward
0 new messages