This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error while building vision apps

Hello,

I am trying to build the vision apps but the compilation is getting terminated by errors.

I have attached the log below.

I am building for the target not for host pc emulation.

the config is as follows:

profile : all

A72:yes

target_mode:yes

Pc emulation_mode :yes

The problem is with the glew package but the glew is already there in my machine.

Please help to solve the problem

Regards,

Aneesh

  • Hello Aneesh,

    Can you confirm that you've run the below command from your workarea directory as per the Vision Apps User Guide -> Build and Run -> Build Environment Setup -> Step 4?  This downloads all external dependencies needed for the build.

    ./psdk_rtos_auto/scripts/setup_psdk_rtos_auto.sh

    Regards,

    Lucas

  • Hi Lucas,

    I have  run the all the commands and followed steps in the document. 

    Regards,

    Aneesh

  • Hello Aneesh,

    Could you please do an "ls" in the psdk_rtos_auto_j7_06_01_00_15 directory and send me the results?

    Regards,

    Lucas

  • Hi Lucas,

    I have given the result.

    paneesh@ip-:~/psdk_rtos_auto_j7_06_01_00_15$ ls
    bios_6_76_03_01
    bootfs
    boot-j7-evm.tar.gz
    dsplib_c66x_3_4_0_0
    ethfw
    gateway-demos
    gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu
    gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf
    gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf
    glew-2.0.0
    glm
    imaging
    index.html
    ivision
    j7_c_models
    mcusw
    mmalib_01_00_00_00
    ndk_3_61_01_01
    ns_2_60_01_06
    pdk
    perception
    psdk_rtos_auto
    remote_device
    targetfs
    tiadalg_src_j7_00_05_00_00
    ti-cgt-arm_18.12.1.LTS
    ti-cgt-c6000_8.3.2
    ti-cgt-c7000_1.2.0.STS
    tidl_j7_01_00_00_00
    tiovx
    tisdk-rootfs-image-j7-evm.tar.xz
    video_codec
    vision_apps
    vxlib_c66x_1_1_4_0
    xdais_7_24_00_04
    xdctools_3_55_02_22_core

    Regards,

    Aneesh

  • Hello Aneesh,

    Can you please check whether glew.h is present in /usr/include/GL/

    Regards,

    Don

  • Hello Aneesh,

    These results look fine.  I see in your initial question that you said you are building for the target not for host pc emulation.  However, you also mentioned that you have the flag "Pc emulation_mode :yes".  Could you please clarify if you need PC emulation mode or not?  The error you are getting has to do with PC emulation mode so if you do not need it, we can simply bypass it.

    Additionally, in the meantime, could you please send me the results of "make sdk_show_config"?

    Regards,

    Lucas

  • Hi Lucas,

    Sorry for the confusion.I am trying for PC emulation mode only.

    I did not found the glew.h file in the usr/include path.

    I attached the results of the sdk_show_config below.

    SHELL=/bin/sh
    TARGET_MAKEFILES=applibs/srv_bowl_lut_gen_applib/concerto.mak applibs/srv_calibration_applib/concerto.mak applibs/test/concerto.mak apps/basic_demos/app_c7x_kernel/c7x/concerto.mak apps/basic_demos/app_c7x_kernel/concerto.mak apps/basic_demos/app_dof/concerto.mak apps/basic_demos/app_linux_arm_ipc/concerto.mak apps/basic_demos/app_linux_arm_mem/concerto.mak apps/basic_demos/app_linux_arm_opengl_mosaic/concerto.mak apps/basic_demos/app_linux_arm_remote_log/concerto.mak apps/basic_demos/app_multi_cam/concerto.mak apps/basic_demos/app_single_cam/concerto.mak apps/basic_demos/app_stereo/concerto.mak apps/basic_demos/app_test_framework/concerto.mak apps/basic_demos/app_tirtos/common/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/c66x_1/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/c66x_2/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/c7x_1/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/mcu2_0/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/mcu2_1/concerto.mak apps/basic_demos/app_tirtos/tirtos_linux/mpu1/concerto.mak apps/basic_demos/app_vx_conformance/concerto.mak apps/basic_demos/app_vx_tutorial/concerto.mak apps/cockpit_demos/app_tirtos_linux/concerto.mak apps/dl_demos/app_tidl/concerto.mak apps/dl_demos/app_tidl_avp/concerto.mak apps/dl_demos/app_tidl_avp2/concerto.mak apps/dl_demos/app_visual_localization/concerto.mak apps/ptk_demos/app_common/concerto.mak apps/ptk_demos/app_dof_sfm_fisheye/concerto.mak apps/ptk_demos/app_ldc/concerto.mak apps/ptk_demos/app_ldc_dof/concerto.mak apps/ptk_demos/app_lidar_ogmap/concerto.mak apps/ptk_demos/app_radar_gtrack/concerto.mak apps/ptk_demos/app_sfm_fisheye/concerto.mak apps/ptk_demos/app_surround_radar_ogmap/concerto.mak apps/ptk_demos/app_valet_parking/concerto.mak apps/ptk_demos/applibs/fused_ogmap_applib/concerto.mak apps/ptk_demos/applibs/lidar_ogmap_applib/concerto.mak apps/ptk_demos/applibs/ps_mapping_applib/concerto.mak apps/ptk_demos/applibs/radar_gtrack_applib/concerto.mak apps/ptk_demos/applibs/surround_radar_ogmap_applib/concerto.mak apps/ptk_demos/applibs/surround_sfm_ogmap_applib/concerto.mak apps/srv_demos/app_srv_calibration/concerto.mak apps/srv_demos/app_srv_camera/concerto.mak apps/srv_demos/app_srv_fileio/concerto.mak kernels/common/target/concerto.mak kernels/img_proc/arm/concerto.mak kernels/img_proc/c66/concerto.mak kernels/img_proc/host/concerto.mak kernels/lidar/arm/concerto.mak kernels/lidar/host/concerto.mak kernels/park_assist/host/concerto.mak kernels/park_assist/target/concerto.mak kernels/park_assist/test/concerto.mak kernels/sample/a72/concerto.mak kernels/sample/host/concerto.mak kernels/srv/c66/concerto.mak kernels/srv/gpu/3dsrv/Tools/concerto.mak kernels/srv/gpu/3dsrv/concerto.mak kernels/srv/gpu/concerto.mak kernels/srv/host/concerto.mak kernels/srv/test/concerto.mak kernels/stereo/arm/concerto.mak kernels/stereo/c7x/concerto.mak kernels/stereo/host/concerto.mak utils/console_io/src/concerto.mak utils/draw2d/src/concerto.mak utils/dss/src/concerto.mak utils/grpx/src/concerto.mak utils/hwa/src/concerto.mak utils/ipc/src/concerto.mak utils/iss/src/concerto.mak utils/mem/src/concerto.mak utils/misc/src/concerto.mak utils/mmc_sd/src/concerto.mak utils/opengl/src/a72/concerto.mak utils/opengl/src/pc/concerto.mak utils/perf_stats/src/concerto.mak utils/remote_service/src/concerto.mak utils/sciclient/src/concerto.mak utils/sensors/src/concerto.mak utils/udma/src/concerto.mak
    file TIARMCGT_ROOT=$(PSDK_PATH)/ti-cgt-arm_18.12.1.LTS
    file GCC_SYSBIOS_ARM_ROOT=$(PSDK_PATH)/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf
    file CGT6X_ROOT=$(PSDK_PATH)/ti-cgt-c6000_8.3.2
    file CGT7X_ROOT=$(PSDK_PATH)/ti-cgt-c7000_1.2.0.STS
    undefined GCC_WINDOWS_ROOT=
    file GCC_LINUX_ROOT=/usr/
    #######################################################################
    TARGET_COMBO=PC:LINUX:x86_64:1:release:GCC_LINUX
    HOST_ROOT=/data/home/paneesh/psdk_rtos_auto_j7_06_01_00_15/vision_apps
    HOST_COMPILER=GCC_LINUX
    HOST_PLATFORM=PC
    HOST_OS=LINUX
    HOST_CPU=x86_64
    HOST_ARCH=64
    HOST_FAMILY=x86_64
    HOST_NUM_CORES=8
    TARGET_OS=LINUX
    TARGET_CPU=x86_64
    TARGET_ARCH=64
    TARGET_FAMILY=x86_64
    TARGET_NUM_CORES=1
    TARGET_PLATFORM=PC
    TARGET_BUILD=release
    TARGET_OUT=/data/home/paneesh/psdk_rtos_auto_j7_06_01_00_15/vision_apps/out/PC/x86_64/LINUX/release
    TARGET_DOC=/data/home/paneesh/psdk_rtos_auto_j7_06_01_00_15/vision_apps/out/PC/x86_64/LINUX/release/docs
    BUILD_DEFS =  CUSTOM_KERNEL_PATH BUILD_TUTORIAL BUILD_CONFORMANCE_TEST
    PC_LINUX_x86_64_1_release_GCC_LINUX_DEFS = LINUX PC x86_64="x86_64" TARGET_NUM_CORES=1 TARGET_ARCH=64 ARCH_64 TARGET_BUILD=1
    PC_LINUX_x86_64_1_release_GCC_LINUX_LDIRS =
    SCM_ROOT=
    SCM_VERSION=
    #
    ### Below make variables control how the SDK is built. Modify as required.
    #
    ### Build flags in vision_apps/vision_apps_build_flags.mak,
    # BUILD_CPU_MPU1=yes
    # BUILD_CPU_MCU2_0=yes
    # BUILD_CPU_MCU2_1=yes
    # BUILD_CPU_C6x_1=yes
    # BUILD_CPU_C6x_2=yes
    # BUILD_CPU_C7x_1=yes
    # BUILD_CPU_MCU1_0=no
    # BUILD_CPU_MCU1_1=no
    # BUILD_CPU_MCU3_0=no
    # BUILD_CPU_MCU3_1=no
    #
    # BUILD_APP_TIRTOS_FILEIO=no
    # BUILD_APP_TIRTOS_LINUX=no
    #
    # BUILD_PDK_BOARD=j721e_evm
    #
    ### Build flags in tiovx/build_flags.mak,
    # PROFILE=release
    # BUILD_TARGET_MODE=no
    # BUILD_EMULATION_MODE=yes
    # BUILD_LINUX_A72=no
    #
    # BUILD_CT_KHR=yes
    # BUILD_CT_TIOVX=yes
    # BUILD_CT_TIOVX_TEST_KERNELS=yes
    # BUILD_CT_TIOVX_IVISION=yes
    # BUILD_CT_TIOVX_TIDL=yes
    # BUILD_CT_TIOVX_HWA=yes
    # BUILD_CT_TIOVX_HWA_NEGATIVE_TESTS=yes
    #
    # BUILD_CONFORMANCE_TEST=yes
    # BUILD_TUTORIAL=yes
    # BUILD_BAM=no
    # BUILD_EMULATION_ARCH=x86_64
    

    Regards,

    Aneesh

  • Hi Aneesh,

    If you had run the script setup_psdk_rtos_auto.sh with the argument --skip_sudo , as mentioned in Vision Apps User Guide -> Build and Run -> Build Environment Setup -> Step 4, then it will skip the installation of the packages which requires sudo permission.

    And Glew is a package which needs sudo permission to install.

    Now can you please try the following:

    cd to the folder glew-2.0.0 in psdk_rtos_auto_j7_06_01_00_15 directory and run sudo make install

    Regards,

    Don Dominic

  • Hi Domnic,

    It resolved my issue.

    Thnak you.

    Regards,

    Aneesh