Importing project from the source into NetBeans

96 views
Skip to first unread message

Sasko Karakulev

unread,
Feb 16, 2016, 4:23:55 AM2/16/16
to Kaa project
Hi Kaa
Kindly ask to get some help.
I'm trying to import project gpio_artik (slave) into NetBeans from the source.  All of the time I'm getting printout with two  Errors as bellow:

-- 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/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/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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
CMake Error at CMakeLists.txt:71 (add_executable):
  add_executable called with incorrect number of arguments


CMake Error at CMakeLists.txt:74 (target_link_libraries):
  Cannot specify link libraries for target "kaacpp_s" which is not built by
  this project.


-- Configuring incomplete, errors occurred!

CMAKE FAILED (exit value 1, total time: 7s)


Where I'm getting wrong?

Thank You in advance
Sasko

Maxim Olender

unread,
Feb 24, 2016, 11:16:59 AM2/24/16
to Kaa project
Hi Sasko!

Could you please provide exact steps that you are performing when importing project into the NetBeans?

Also, have you tried to compile SDK for Artik manually using this guide http://docs.kaaproject.org/display/KAA074/Samsung+Artik+5 ?

Regards,
Max

Sasko Karakulev

unread,
Feb 25, 2016, 7:03:27 AM2/25/16
to Kaa project
Hi Max
In fact,  I'm trying to port GPIO app to Raspberry PI, and I faced with problems related to DEMO_ACCESS_TOKEN. This ENV variable is used by  build.sh script and is mandatory as input parameter for cmake.  Here is the build.sh script If you pay attention into the script you can notice

cmake -DAPP_NAME=$APP_NAME $KAA_TOOLCHAIN_PATH_SDK -DDEMO_ACCESS_TOKEN=$DEMO_ACCESS_TOKEN ..

I've noticed that you are talking about NotificationDemo app where DEMO_ACCESS_TOKEN is not used/needed..

BTW here is description how to use/import C++ project in NetBeans from source 

BR
Sasko








In order to avoid

Maxim Olender

unread,
Mar 2, 2016, 7:02:35 AM3/2/16
to Kaa project
Hi Sasko,

Demo access token is generated in the same script here. You can use it during build of your GPIO demo for Raspberry as well as for artik.

Regarding previous error :


CMake Error at CMakeLists.txt:71 (add_executable):
  add_executable called with incorrect number of arguments

is caused by missing APP_NAME argument to cmake. Make sure you pass it when building from NetBeans.

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