Place env.bat to KAA_BUILD_DIR(). (File env.bat located in the 'tools' folder in C++ SDK)
4. Use the build.sh script to build and run the demo application (the 'deploy' option).
build_sdk_thirdparty.bat
env.bat
From my previous issue (script in wrong location), i could now work with the sandbox Kaa.
I'm using the tutorial here to understand how you can deploy a client to communicate with the server.
I have downloaded the SDK, extracted it... but the tutorial doesn't explain what i should do with it.
Sorry for my curiosity, but why did you run the change_kaa_host.sh script manually?
As for Kaa 0.8.0, sandbox has already pre-configured Storm demo:
PREREQUISITES
************************************
Before building the C endpoint SDK, ensure the following components are installed:
1. C compiler supporting the C99 standard <----- CHECK
2. cmake 2.8.8 or later <----- CHECK
To build the Kaa SDK for the x86-64 platform, ensure that OpenSSL libraries (ssl and crypto) are installed. <----- CHECK
INSTALL
************************************
To build the C endpoint SDK, do the following:
1. Download and untar the Kaa C SDK archive. <----- CHECK
2. Run the following commands:
mkdir build <----- CHECK (well, just make a folder in PS: "New-Item -ItemType Directory -Path build")
cd build <----- CHECK
For x86-64:
cmake .. <----- CHECK
make <----- UH NO .... Windows doesn't have it
make install
......\kaa-c-ep-sdk-aXrMkhHEE2BrPBehV_Vbxym2MfU\build>cmake -G "NMake Makefiles" ..
-- The C compiler identification is MSVC 19.0.23506.0
-- The CXX compiler identification is MSVC 19.0.23506.0
-- Check for working C compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:36 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
==================================
BUILD_TYPE = RELEASE
KAA_PLATFORM = x86-64
KAA_MAX_LOG_LEVEL = 4
==================================
EVENTS ENABLED
LOGGING ENABLED
CONFIGURATION ENABLED
NOTIFICATION ENABLED
==================================
-- Found OpenSSL: ....../software/openssl/dir/lib/ssleay32.lib;....../software/openssl/dir/lib/libeay32.lib (found version "1.0.2g")
KAA WILL BE INSTALLED TO C:/Program Files (x86)/Kaa-c
-- Configuring done
-- Generating done
-- Build files have been written to: ....../kaa-c-ep-sdk-aXrMkhHEE2BrPBehV_Vbxym2MfU/build
......\kaa-c-ep-sdk-aXrMkhHEE2BrPBehV_Vbxym2MfU\build>nmake
Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.
Scanning dependencies of target kaac_o
[ 2%] Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
posix_kaa_client.c
......\kaa-c-ep-sdk-aXrMkhHEE2BrPBehV_Vbxym2MfU\src\kaa\platform-impl\posix\posix_kaa_client.c(22): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
NMAKE : fatal error U1077: 'C:\PROGRA~2\VISUAL~1.0\VC\bin\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
I have been busy lately, but thank you for your response. Although I am not sure if I have understood your answer correctly.
I believe that you want to replace the cmake .. step to the cmake -G "NMake Makefiles" .. step ?
set BOOST_ROOT=D:\software\boost_1_55_0\
CMake Error at D:/software/cmake_3.4.3/share/cmake-3.4/Modules/FindBoost.cmake:1247 (message):
Unable to find the requested Boost libraries.
Boost version: 1.55.0
Boost include path: D:/software/boost_1_55_0
Could not find the following Boost libraries:
boost_filesystem
boost_system
boost_program_options
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:54 (find_package)
set BOOST_ROOT=D:\software\boost_1_55_0\boost
CMake Error at D:/software/cmake_3.4.3/share/cmake-3.4/Modules/FindBoost.cmake:1247 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:54 (find_package)
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:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory D:/kuleuven/thesis/kaa/kaaBuild/avro-src-1.7.5/lang/c++
<repeated x times ...>
-- Configuring incomplete, errors occurred!
set BOOST_ROOT=D:\software\boost_1_55_0\libs
PS D:\software\boost_1_55_0> dir -name
boost
doc
lib32-msvc-12.0
libs
more
status
tools
boost-build.jam
boost.css
boost.png
boostcpp.jam
bootstrap.bat
bootstrap.sh
index.htm
index.html
INSTALL
Jamroot
LICENSE_1_0.txt
rst.css
@REM
@REM Copyright 2014-2016 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 http://www.apache.org/licenses/LICENSE-2.0
@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
set MSVS_HOME=C:\Program Files (x86)\Visual Studio 14.0
set BOOST_ROOT=D:\software\boost_1_55_0\
set AVRO_ROOT_DIR=D:\kaa\kaaBuild\avrocpp
set BOTAN_HOME=D:\kaa\kaaBuild\botan
set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib32-msvc-12.0
set AVRO_LIBRARYDIR=%AVRO_ROOT_DIR%\lib
set PATH=%MSVS_HOME%\VC;%BOTAN_HOME%;%AVRO_ROOT_DIR%\bin;%AVRO_LIBRARYDIR%;%BOOST_LIBRARYDIR%;%PATH%
call vcvarsall.bat
PS D:\kaa\kaaBuild> dir -name
avro-src-1.7.5
botan-1.11.28
botan_archive
avro-src-1.7.5.tar
avro-src-1.7.5.tar.gz
botan-1.11.28.tar.gz
build_sdk_thirdparty.bat
env.bat
pax_global_header
@REM
@REM Copyright 2014-2016 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 http://www.apache.org/licenses/LICENSE-2.0
@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
set MSVS_HOME=C:\Program Files (x86)\Visual Studio 14.0
set BOOST_ROOT=D:\software\boost_1_55_0\
set BOOST_INCLUDEDIR=D:\software\boost_1_55_0\boost
set AVRO_ROOT_DIR=D:\kuleuven\thesis\kaa\kaaBuild\avrocpp
set BOTAN_HOME=D:\kuleuven\thesis\kaa\kaaBuild\botan
set BOOST_LIBRARYDIR=D:\software\boost_1_55_0\lib32-msvc-12.0
echo -----------------------------------------------
echo showing list of variables set;
echo MSVS_HOME:
echo %MSVS_HOME%
echo -
echo BOOST_ROOT:
echo %BOOST_ROOT%
echo -
echo BOOST_INCLUDEDIR:
echo %BOOST_INCLUDEDIR%
echo -
echo AVRO_ROOT_DIR:
echo %AVRO_ROOT_DIR%
echo -
echo BOTAN_HOME:
echo %BOTAN_HOME%
echo -
echo BOOST_LIBRARYDIR:
echo %BOOST_LIBRARYDIR%
echo -----------------------------------------------
set AVRO_LIBRARYDIR=%AVRO_ROOT_DIR%\lib
set PATH=%MSVS_HOME%\VC;%BOTAN_HOME%;%AVRO_ROOT_DIR%\bin;%AVRO_LIBRARYDIR%;%BOOST_LIBRARYDIR%;%PATH%
call vcvarsall.bat
D:\kaa\kaaBuild>build_sdk_thirdparty.bat
-----------------------------------------------
showing list of variables set;
MSVS_HOME:
C:\Program Files (x86)\Visual Studio 14.0
-
BOOST_ROOT:
D:\software\boost_1_55_0\
-
BOOST_INCLUDEDIR:
D:\software\boost_1_55_0\boost
-
AVRO_ROOT_DIR:
D:\kuleuven\thesis\kaa\kaaBuild\avrocpp
-
BOTAN_HOME:
D:\kuleuven\thesis\kaa\kaaBuild\botan
-
BOOST_LIBRARYDIR:
D:\software\boost_1_55_0\lib32-msvc-12.0
-----------------------------------------------
Building Kaa thirdparty components...
Building Avro...
-- The C compiler identification is MSVC 19.0.23506.0
-- The CXX compiler identification is MSVC 19.0.23506.0
-- Check for working C compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at D:/software/cmake_3.4.3/share/cmake-3.4/Modules/FindBoost.cmake:1247 (message):
Unable to find the requested Boost libraries.
Boost version: 1.55.0
Boost include path: D:/software/boost_1_55_0
Could not find the following Boost libraries:
boost_filesystem
boost_system
boost_program_options
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:54 (find_package)
-- Configuring incomplete, errors occurred!
See also "D:/kaa/kaaBuild/avro-src-1.7.5/lang/c++/build.win/CMakeFiles/CMakeOutput.log".
Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
PS D:\software\boost_1_55_0\lib32-msvc-12.0> Get-ChildItem boost_file* -name
boost_filesystem-vc120-1_55.dll
boost_filesystem-vc120-1_55.lib
boost_filesystem-vc120-gd-1_55.dll
boost_filesystem-vc120-gd-1_55.lib
boost_filesystem-vc120-mt-1_55.dll
boost_filesystem-vc120-mt-1_55.lib
boost_filesystem-vc120-mt-gd-1_55.dll
boost_filesystem-vc120-mt-gd-1_55.lib
PS D:\software\boost_1_55_0\lib32-msvc-12.0> Get-ChildItem boost_system* -name
boost_system-vc120-1_55.dll
boost_system-vc120-1_55.lib
boost_system-vc120-gd-1_55.dll
boost_system-vc120-gd-1_55.lib
boost_system-vc120-mt-1_55.dll
boost_system-vc120-mt-1_55.lib
boost_system-vc120-mt-gd-1_55.dll
boost_system-vc120-mt-gd-1_55.lib
PS D:\software\boost_1_55_0\lib32-msvc-12.0> Get-ChildItem boost_program_opt* -name
boost_program_options-vc120-1_55.dll
boost_program_options-vc120-1_55.lib
boost_program_options-vc120-gd-1_55.dll
boost_program_options-vc120-gd-1_55.lib
boost_program_options-vc120-mt-1_55.dll
boost_program_options-vc120-mt-1_55.lib
boost_program_options-vc120-mt-gd-1_55.dll
d:\kaa\kaabuild\botan-1.11.28\src\cli\cli.h(446): warning C4244: 'argument': conversion from 'std::streamsize' to 'size_t', possible loss of data
cl /MDd /bigobj /EHs /GR /Zi /FS /O2 /W3 /wd4275 /wd4267 /Ibuild\include /nologo /c src\cli\x509.cpp /Fobuild\obj\cli\x509.obj
x509.cpp
d:\kaa\kaabuild\botan-1.11.28\src\cli\cli.h(446): warning C4244: 'argument': conversion from 'std::streamsize' to 'size_t', possible loss of data
link /DEBUG /OUT:.\botan.exe build\obj\cli\asn1.obj build\obj\cli\cc_enc.obj build\obj\cli\compress.obj build\obj\cli\main.obj build\obj\cli\math.obj build\obj\cli\pubkey.obj build\obj\cli\speed.obj build\obj\cli\tls_client.obj build\obj\cli\tls_proxy.obj build\obj\cli\tls_server.obj build\obj\cli\utils.obj build\obj\cli\x509.obj .\botan.lib advapi32.lib user32.lib
Microsoft (R) Incremental Linker Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.
LINK : .\botan.exe not found or not built by the last incremental link; performing full link
copy doc\manual\*.rst build\docs\manual
doc\manual\aead.rst
doc\manual\bigint.rst
doc\manual\building.rst
doc\manual\compression.rst
doc\manual\contents.rst
doc\manual\credentials_manager.rst
doc\manual\cryptobox.rst
doc\manual\ffi.rst
doc\manual\filters.rst
doc\manual\firststep.rst
doc\manual\fpe.rst
doc\manual\index.rst
doc\manual\kdf.rst
doc\manual\lowlevel.rst
doc\manual\mceliece.rst
doc\manual\ocsp.rst
doc\manual\passhash.rst
doc\manual\pbkdf.rst
doc\manual\pubkey.rst
doc\manual\python.rst
doc\manual\rng.rst
doc\manual\secmem.rst
doc\manual\srp.rst
doc\manual\tls.rst
doc\manual\versions.rst
doc\manual\x509.rst
26 file(s) copied.
src\scripts\install.py --destdir=c:\Botan --build-dir="build" --bindir=bin --libdir=lib --docdir=docs --includedir=include
The system cannot find the path specified.
D:\kaa\kaaBuild>python -V
Python 3.4.4
python src\scripts\install.py
PS D:\kaa\kaaBuild\botan-1.11.28> python .\src\scripts\install.py
INFO: Botan 1.11.28 installation complete