添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Dear all,

I cloned the astra source code and tried to compile it. I previously downloaded and installed required deps. However, when executing cmake i get the error pasted below. Any suggestion?

Thanks

cesc@cesc-1000H:~/astra/build$ cmake …
flags -Wall -fPIC -std=c++11
CMake Error at vendor/CMakeLists.txt:1 (add_subdirectory):
The source directory

/home/cesc/astra/vendor/shinyprofiler

does not contain a CMakeLists.txt file.

– Found Astra includes in /home/cesc/astra/include
– Found Astra lib dir:
– Found Astra libraries: Astra;AstraAPI;AstraUL
– Found Astra TOML:
– Found Astra plugins:
– Found Astra plugin TOML:
Setting rpath to $ORIGIN/…/lib
– Found SFML … in /usr/include
– Found SFML … in /usr/include
– Found SFML … in /usr/include
– Found SFML … in /usr/include
– Found SFML … in /usr/include
– Found SFML … in /usr/include
CMAKE_INSTALL_PREFIX : /home/cesc/astra/build/sdk
CMAKE_SYSTEM_NAME: Linux
– Configuring incomplete, errors occurred!
See also “/home/cesc/astra/build/CMakeFiles/CMakeOutput.log”.
See also “/home/cesc/astra/build/CMakeFiles/CMakeError.log”.

How i can remove the shinyprofile from the build?

Looks like there are some deps in the source

#include <Shiny.h>

As you mentioned the git command fails due to perm errors. Where i should change the HTTP you specified in the previous email?

Thanks!

Encountering this cmake error:

CMake Error at src/plugins/openni_sensor/CMakeLists.txt:50 (include_directories):
include_directories given empty-string as include directory.

  • Ubuntu 14.04
  • Cloned the repository
  • Checkout developer branch
  • ran this command: git submodule update --init --recursive
  • created a build directory
  • from the build directory, ran command cmake …
  • which generated the above error. I’ve looked around and not found a fix for this issue. Trying to build the astra sdk.

    include_directories ("$ENV{OPENNI2_INCLUDE}")
    

    And this means you haven’t defined the OPENNI2_INCLUDE environment variable. For example:

    $ echo $OPENNI2_INCLUDE
    /usr/local/include/ni2.3-dev
    

    You should define these in your .bash_profile or equivalent:

    export OPENNI2_INCLUDE=/usr/local/include/ni2.3-dev
    export OPENNI2_REDIST=/usr/local/lib/ni2.3-dev
    

    Pointing to your own installation directories of course.

    Thank you for the quick response. The environment variables are set and I am still getting the same error.

    astra_cmake_error.png728×602 84.5 KB

    HI, josh
    I am facing a similar problem:
    cp: cannot stat ‘/usr/local/lib/ni2.3-dev/*’: No such file or directory
    Makefile:25: recipe for target ‘copy-redist’ failed

    I am not sure what sourcing the OpenNIDevEnvironment did or did not but how should i define the above export path in which .bash_profile.
    Please explain.

    I keep getting the error:
    Makefile:14: *** OPENNI2_INCLUDE is not defined. Please define it or ‘source’ the OpenNIDevEnvironment file from the installation. Stop.

    I guess running $source OpenNIDevEnvironment does nothing.

    What to do?

    Hello Josh,
    I’m using Astra SDK for Astra Pro. and using Ubuntu14.04. when trying to compile a .cpp file I’m getting this error.
    fatal error: astra/astra.hpp: No such file or directory
    #include <astra/astra.hpp>
    compilation terminated.

    I have put the lines below in .bashrc file

    export ASTRA_SDK_INCLUDE=/home/pkumars/Astra-SDK-Linux/install/include
    export ASTRA_SDK_LIB=/home/pkumars/Astra-SDK-Linux/install/lib

    *** and my CMakeLists.txt looks like this.

    cmake_minimum_required(VERSION 3.2)

    project( AstraTest )

    include_directories ("$ENV{ASTRA_SDK_INCLUDE}")

    add_executable( test1 main.cpp )

    target_link_libraries(test1
    ${astra_LIBRARIES})

    hope I made my point clear. any kind of help will be highly appreciated.

    Thanks,
    Prasanna