Can't find Botan

630 views
Skip to first unread message

Stan Stringfellow

unread,
Jan 21, 2016, 5:30:27 AM1/21/16
to Kaa project
Trying to run the C++ Configuration demo. I have installed Botan with apt-get on Ubuntu. I'm seeing the attached. Any guidance? Thanks!
Botan.png

Denis Kimcherenko

unread,
Jan 21, 2016, 6:03:27 AM1/21/16
to Kaa project
Hi Stan,

Please, ensure that you have installed the Botan library according to instructions.
Try to clean up the directory where you are building Kaa C++ SDK and re-build.

If this doesn't help, please, attach the output of the following commands:
ls /usr/local/libbota*
ls /usr/local/include/botan*

Best regards,
Denis



Stan Stringfellow

unread,
Feb 5, 2016, 3:59:25 AM2/5/16
to Denis Kimcherenko, Kaa project, Stan Stringfellow
I followed all the instructions on that page, and everything installed successfully. Then I downloaded the C++ Configuration Demo, and ran ./build.sh deploy. It still is having a problem with Botan. Can you provide guidance based on the screenshot?

Thanks! Stan

--
You received this message because you are subscribed to a topic in the Google Groups "Kaa project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaaproject/3vy1wMRtnJA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaaproject+...@googlegroups.com.
Visit this group at https://groups.google.com/group/kaaproject.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaaproject/1a053398-8e61-4c86-acfe-ade69393a1e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

BotanIssue.png

Stan Stringfellow

unread,
Feb 5, 2016, 4:05:28 AM2/5/16
to Denis Kimcherenko, Kaa project, Stan Stringfellow
ps. Botan doesn't exist in either of these locations:

ls /usr/local/libbota*
ls /usr/local/include/botan*

Denis Kimcherenko

unread,
Feb 5, 2016, 4:22:44 AM2/5/16
to Kaa project, dyos...@gmail.com, Stan.Str...@m2infinity.com
Hi Stan,

On the last attached screenshot I noticed the following items:
1. There is libkaacpp_s.a in the /usr/local/lib/ directory. It is not recommended to install Kaa SDK library to system folders.
2. According to the terminal window Botan is installed to /usr/include/ and /usr/lib/. It is normal case.
3. Try to clean and re-build the demo:
./build.sh clean
./build.sh deploy

Please, attach the full log of a build if some issue occur.

Best regards,
Denis

Stan Stringfellow

unread,
Feb 5, 2016, 4:44:20 AM2/5/16
to Denis Kimcherenko, Kaa project, Stan Stringfellow
Denis, I did not yet re-install the Kaa SDK library to another location. Just tried doing the clean and deploy, but I have the same result. Thanks for your help... Stan

stan@stan-m2infinity-1:~/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo$ ./build.sh clean
stan@stan-m2infinity-1:~/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo$ ls
build.bat  build.sh  CMakeLists.txt  libs  src
stan@stan-m2infinity-1:~/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo$ ./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.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
CONFIGURATION ENABLED
OPERATION_TCP_CHANNEL ENABLED
BOOTSTRAP_HTTP_CHANNEL ENABLED
CONNECTIVITY_CHECKER ENABLED
KAA_THREADSAFE ENABLED
==================================
-- Boost version: 1.54.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.5
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- Include directory: /usr/include
-- Library: /usr/lib/libbotan-1.10.a;-lrt
-- KAA WILL BE INSTALLED TO  /usr/local 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stan/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo/libs/kaa/build
Scanning dependencies of target kaacpp_o
[  2%] [  5%] [  7%] [ 10%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/configuration/manager/ConfigurationManager.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/configuration/ConfigurationProcessor.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/configuration/storage/ConfigurationPersistenceManager.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/configuration/ConfigurationTransport.cpp.o
[ 12%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/configuration/storage/FileConfigurationStorage.cpp.o
[ 15%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultOperationTcpChannel.cpp.o
[ 17%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/DefaultBootstrapChannel.cpp.o
[ 20%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/connectivity/IPConnectivityChecker.cpp.o
[ 23%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/http/HttpUrl.cpp.o
[ 25%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/http/MultipartPostHttpRequest.cpp.o
[ 28%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/http/HttpResponse.cpp.o
[ 30%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/http/HttpClient.cpp.o
[ 33%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/transport/HttpDataProcessor.cpp.o
[ 35%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/impl/AbstractHttpChannel.cpp.o
[ 38%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/utils/ThreadPool.cpp.o
[ 41%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/ClientStatus.cpp.o
[ 43%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/KaaDefaults.cpp.o
[ 46%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/Kaa.cpp.o
[ 48%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/KaaClient.cpp.o
[ 51%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/logging/Log.cpp.o
[ 53%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/logging/LoggerFactory.cpp.o
[ 56%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/security/KeyUtils.cpp.o
[ 58%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/security/RsaEncoderDecoder.cpp.o
[ 61%] [ 64%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/common/EndpointObjectHash.cpp.o
Building CXX object CMakeFiles/kaacpp_o.dir/impl/profile/ProfileTransport.cpp.o
[ 66%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/bootstrap/BootstrapManager.cpp.o
[ 69%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/bootstrap/BootstrapTransport.cpp.o
[ 71%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/SyncDataProcessor.cpp.o
[ 74%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/RedirectionTransport.cpp.o
[ 76%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/KaaChannelManager.cpp.o
[ 79%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/kaatcp/KaaTcpCommon.cpp.o
[ 82%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/kaatcp/KaaTcpParser.cpp.o
[ 84%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/kaatcp/ConnackMessage.cpp.o
[ 87%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/kaatcp/KaaSyncResponse.cpp.o
[ 89%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/kaatcp/KaaTcpResponseProcessor.cpp.o
[ 92%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/TransportProtocolIdConstants.cpp.o
[ 94%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/channel/IPTransportInfo.cpp.o
[ 97%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/failover/DefaultFailoverStrategy.cpp.o
[100%] Building CXX object CMakeFiles/kaacpp_o.dir/impl/context/SimpleExecutorContext.cpp.o
[100%] Built target kaacpp_o
Scanning dependencies of target kaacpp
Scanning dependencies of target kaacpp_s
Linking CXX shared library libkaacpp.so
Linking CXX static library libkaacpp_s.a
[100%] Built target kaacpp_s
[100%] Built target kaacpp
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.54.0

  Boost include path: /usr/include

  Detected version of Boost is too old.  Requested version was 1.55 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:42 (find_package)



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.5
-- BOTAN_HOME env is not set, setting it to /usr/local
-- Looking for botan in /usr/local
-- Include directory: /usr/include
-- Library: /usr/lib/libbotan-1.10.a;-lrt
-- Configuring incomplete, errors occurred!
See also "/home/stan/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
./build.sh: line 108: ./demo_client: No such file or directory
stan@stan-m2infinity-1:~/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo$ ^C
stan@stan-m2infinity-1:~/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo$ 


--
You received this message because you are subscribed to a topic in the Google Groups "Kaa project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaaproject/3vy1wMRtnJA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaaproject+...@googlegroups.com.
Visit this group at https://groups.google.com/group/kaaproject.

Denis Kimcherenko

unread,
Feb 5, 2016, 4:52:14 AM2/5/16
to Kaa project, dyos...@gmail.com, Stan.Str...@m2infinity.com
Hm, according to the build output it is not a Botan issue.
Could you provide the demo sources and /home/stan/Documents/Kaa/Projects/ConfigurationDemoCode/CppConfigurationDemo/build/CMakeFiles/CMakeOutput.log ?

Stan Stringfellow

unread,
Feb 5, 2016, 5:04:41 AM2/5/16
to Denis Kimcherenko, Kaa project, Stan Stringfellow
They are attached. 

It is 2:00 AM where I am, and I'm going to bed, but I will follow up with anything further tomorrow. If I am finding bugs, I am happy to help out. 

Appreciate it!
CMakeOutput.log
KaaDemo.cpp

Denis Kimcherenko

unread,
Feb 5, 2016, 5:48:13 AM2/5/16
to Kaa project, dyos...@gmail.com, Stan.Str...@m2infinity.com
I didn't find any error in the CMake log file.

But by the demo sources I meant the full demo archive both with demo sources (KaaDemo.cpp, CMakeLists.txt, build.sh and etc.) and Kaa C++ SDK.

By the way, do you use Kaa Sandbox?

Stan Stringfellow

unread,
Feb 5, 2016, 8:03:22 PM2/5/16
to Denis Kimcherenko, Kaa project, Stan Stringfellow
Gmail won't let me attach the following:

build.bat

@REM
@REM Copyright 2014-2015 CyberVision, Inc.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM

@echo off

setlocal EnableDelayedExpansion

if "%1" == "" goto help
if not "%2" == "" goto help

set RUN_DIR=%CD%

set APP_NAME="demo_client"
set PROJECT_HOME=%CD%
set BUILD_DIR=build
set LIBS_PATH=libs
set KAA_LIB_PATH=%LIBS_PATH%\kaa
set KAA_C_LIB_HEADER_PATH=%KAA_LIB_PATH%\src
set KAA_CPP_LIB_HEADER_PATH=%KAA_LIB_PATH%\kaa
set KAA_SDK_TAR="kaa-client*.tar.gz"

set KAA_SDK_TAR_NAME=

call :checkEnv

if /i %1 == build (
   call :build_thirdparty
   call :build_app
   goto :eof
)

if /i %1 == run goto run

if /i %1 == deploy (
   call :clean
   call :build_thirdparty
   call :build_app
   call :run
   goto :eof
)

if /i %1 == clean goto clean

goto help


:build_thirdparty
 IF NOT EXIST %KAA_C_LIB_HEADER_PATH%\NUL (
IF NOT EXIST %KAA_CPP_LIB_HEADER_PATH%\NUL (
for /R %PROJECT_HOME% %%f in (kaa-client*.tar.gz) do (
                        set val=%%f
                        set KAA_SDK_TAR_NAME=!val:\=/!
)
        md %KAA_LIB_PATH%
        7z x -y !KAA_SDK_TAR_NAME! -o%KAA_LIB_PATH%
7z x -y !KAA_SDK_TAR_NAME:~0,-3! -o%KAA_LIB_PATH%
)
 )

 IF NOT EXIST %KAA_LIB_PATH%\%BUILD_DIR%\NUL (
        cd %KAA_LIB_PATH%
        call avrogen.bat 
        md %BUILD_DIR%
        cd %BUILD_DIR%
        cmake -G "NMake Makefiles" ^
     -DKAA_DEBUG_ENABLED=1 ^
              -DKAA_WITHOUT_EVENTS=1 ^
              -DKAA_WITHOUT_LOGGING=1 ^
              -DKAA_WITHOUT_NOTIFICATIONS=1 ^
              -DKAA_WITHOUT_OPERATION_LONG_POLL_CHANNEL=1 ^
              -DKAA_WITHOUT_OPERATION_HTTP_CHANNEL=1 ^
              -DKAA_MAX_LOG_LEVEL=3 ^
              ..
 )

 cd %PROJECT_HOME%\%KAA_LIB_PATH%\%BUILD_DIR%
 nmake
 cd %PROJECT_HOME%
goto :eof

:build_app
 cd %PROJECT_HOME%
 md %PROJECT_HOME%\%BUILD_DIR%
 xcopy %KAA_LIB_PATH%\%BUILD_DIR%\kaa* %PROJECT_HOME%\%BUILD_DIR%\
 cd %BUILD_DIR%
 cmake -G "NMake Makefiles" -DAPP_NAME=%APP_NAME% ..
 nmake
goto :eof

:clean
 call :deleteDir "%KAA_LIB_PATH%\%BUILD_DIR%"
 call :deleteDir "%PROJECT_HOME%\%BUILD_DIR%"
goto :eof

:run
 cd %PROJECT_HOME%\%BUILD_DIR%
 call %APP_NAME%.exe
goto :eof

:deleteDir
 del /s /f /q %1\*.*
 for /f %%f in ('dir /ad /b %1\') do rd /s /q %1\%%f
 rd /s /q %1
goto :eof

:checkEnv

IF EXIST %PROJECT_HOME%\env.bat (
    call %PROJECT_HOME%\env.bat
)

goto :eof

:help
echo "Choose one of the following: {build|run|deploy|clean}"
goto :eof

endlocal


build.sh

#
# Copyright 2014-2015 CyberVision, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#!/bin/bash

RUN_DIR=`pwd`

function help {
    echo "Choose one of the following: {build|run|deploy|clean}"
    echo "Supported platforms: x86-64, edison"
    exit 1
}

if [ $# -eq 0 ]
then
    help
fi

APP_NAME="demo_client"
PROJECT_HOME=$(pwd)
BUILD_DIR="build"
LIBS_PATH="libs"
KAA_LIB_PATH="$LIBS_PATH/kaa"
KAA_C_LIB_HEADER_PATH="$KAA_LIB_PATH/src"
KAA_CPP_LIB_HEADER_PATH="$KAA_LIB_PATH/kaa"
KAA_SDK_TAR="kaa-client*.tar.gz"
KAA_TOOLCHAIN_PATH_SDK=""

function select_arch {
    echo "Please enter architecture(default is x86-64):"
    read arch
    case "$arch" in
        edison)
 KAA_TOOLCHAIN_PATH_SDK="-DCMAKE_TOOLCHAIN_FILE=$RUN_DIR/libs/kaa/toolchains/$arch.cmake"
        ;;
        *)
          KAA_TOOLCHAIN_PATH_SDK=""
        ;;
    esac
}

function build_thirdparty {
    if [[ ! -d "$KAA_C_LIB_HEADER_PATH" &&  ! -d "$KAA_CPP_LIB_HEADER_PATH" ]]
    then
        KAA_SDK_TAR_NAME=$(find $PROJECT_HOME -iname $KAA_SDK_TAR)

        if [ -z "$KAA_SDK_TAR_NAME" ]
        then
            echo "Please, put the generated C/C++ SDK tarball into the libs/kaa folder and re-run the script."
            exit 1
        fi

        mkdir -p $KAA_LIB_PATH &&
        tar -zxf $KAA_SDK_TAR_NAME -C $KAA_LIB_PATH
    fi

    if [ ! -d "$KAA_LIB_PATH/$BUILD_DIR" ]
    then
        cd $KAA_LIB_PATH &&
        chmod 755 ./avrogen.sh &&
        ./avrogen.sh && 
        mkdir -p $BUILD_DIR && cd $BUILD_DIR &&
        cmake -DKAA_DEBUG_ENABLED=1 \
              -DKAA_WITHOUT_EVENTS=1 \
              -DKAA_WITHOUT_LOGGING=1 \
              -DKAA_WITHOUT_NOTIFICATIONS=1 \
              -DKAA_WITHOUT_OPERATION_LONG_POLL_CHANNEL=1 \
              -DKAA_WITHOUT_OPERATION_HTTP_CHANNEL=1 \
              -DKAA_MAX_LOG_LEVEL=3 \
               $KAA_TOOLCHAIN_PATH_SDK \
              ..
    fi

    cd "$PROJECT_HOME/$KAA_LIB_PATH/$BUILD_DIR"
    make -j4 &&
    cd $PROJECT_HOME
}

function build_app {
    cd $PROJECT_HOME &&
    mkdir -p "$PROJECT_HOME/$BUILD_DIR" &&
    cp "$KAA_LIB_PATH/$BUILD_DIR/"libkaa* "$PROJECT_HOME/$BUILD_DIR/" &&
    cd $BUILD_DIR &&
    cmake -DAPP_NAME=$APP_NAME $KAA_TOOLCHAIN_PATH_SDK ..
    make
}

function clean {
    rm -rf "$KAA_LIB_PATH/$BUILD_DIR"
    rm -rf "$PROJECT_HOME/$BUILD_DIR"
}

function run {
    cd "$PROJECT_HOME/$BUILD_DIR"
    ./$APP_NAME
}

for cmd in $@
do

case "$cmd" in
    build)
        select_arch
        build_thirdparty &&
        build_app
    ;;

    run)
        run
    ;;

    deploy)
        clean
        select_arch
        build_thirdparty
        build_app
        run
        ;;

    clean)
        clean
    ;;
    
    *)
        help
    ;;
esac

done

CMakeLists.txt

#
# Copyright 2014-2015 CyberVision, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

cmake_minimum_required(VERSION 2.8.8)

project (Cpp-SDK-sample)
enable_language(CXX)

# Path to CMake's scripts.
set(CMAKE_MODULE_PATH 
${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/libs/kaa/Modules
    )

if(MSVC)   
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -I/usr/local/include")
endif()

if (CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L/usr/lib/x86_64-linux-gnu -std=c++0x")
endif()

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L/usr/local/lib -std=gnu++11 -stdlib=libc++")
endif()

find_package (Boost 1.55 REQUIRED COMPONENTS log system)
find_package (Avro REQUIRED)
find_package (Botan REQUIRED)

if (WIN32 AND NOT CYGWIN AND NOT MSYS)
add_definitions (/EHs)
add_definitions (
    -DBOOST_REGEX_DYN_LINK
    -DBOOST_FILESYSTEM_DYN_LINK
    -DBOOST_SYSTEM_DYN_LINK
    -DBOOST_PROGRAM_OPTIONS_DYN_LINK
    -DBOOST_LOG_DYN_LINK
    -DBOOST_ALL_NO_LIB)
endif()

include_directories(${Boost_INCLUDE_DIRS}
                    ${AVRO_INCLUDE_DIRS}
                    ${BOTAN_INCLUDE_DIR}
                    ${CMAKE_CURRENT_SOURCE_DIR}/src
                    ${CMAKE_CURRENT_SOURCE_DIR}/libs/kaa)

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/build)

set (SAMPLE_SOURCE_FILES
            src/KaaDemo.cpp
)

add_executable(${APP_NAME} ${SAMPLE_SOURCE_FILES})

if (CMAKE_COMPILER_IS_GNUCXX)
    target_link_libraries(${APP_NAME} kaacpp_s ${BOTAN_LIBRARY} ${AVRO_LIBRARIES} ${Boost_LIBRARIES} pthread)
endif()

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    target_link_libraries(${APP_NAME} kaacpp_s ${BOTAN_LIBRARY} ${AVRO_LIBRARIES} ${Boost_LIBRARIES})
endif()

if (MSVC)
    target_link_libraries(${APP_NAME} kaacpp_s ${BOTAN_LIBRARY} ${AVRO_LIBRARIES} ${Boost_LIBRARIES} dbghelp)
endif()

Stan Stringfellow

unread,
Feb 5, 2016, 8:07:54 PM2/5/16
to Kaa project
configuration_demo.tar.gz

Stan Stringfellow

unread,
Feb 5, 2016, 8:13:52 PM2/5/16
to Kaa project


On Thursday, January 21, 2016 at 2:30:27 AM UTC-8, Stan Stringfellow wrote:
Build Scripts.tar.gz

Stan Stringfellow

unread,
Feb 5, 2016, 8:27:49 PM2/5/16
to Kaa project

Trying to add a reference to the build folder, on Google Drive.

On Thursday, January 21, 2016 at 2:30:27 AM UTC-8, Stan Stringfellow wrote:

Stan Stringfellow

unread,
Feb 5, 2016, 8:33:00 PM2/5/16
to Kaa project


On Thursday, January 21, 2016 at 2:30:27 AM UTC-8, Stan Stringfellow wrote:
CMakeCache.txt
CMakeFiles.tar.gz

Stan Stringfellow

unread,
Feb 5, 2016, 8:47:29 PM2/5/16
to Kaa project
Yes, I am using the Sandbox.

Let me know if I missed anything above.


On Thursday, January 21, 2016 at 2:30:27 AM UTC-8, Stan Stringfellow wrote:

Denis Kimcherenko

unread,
Feb 6, 2016, 4:56:14 AM2/6/16
to Kaa project
Well, I just remembered there is an issue in the use Botan library installed from Ubuntu repositories. Its static library has several unresolved linkage dependecies. We has fixed this issue by using a shared library. But thesechanges wiil be only in a future 0.8.0 release.

As for elder releases, I recommend to manually install (step 5b) Botan. In your case before this action you need to uninstall "Ubuntu" Botan.
Reply all
Reply to author
Forward
0 new messages