Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Issue Description
Hello guys,
based on DriveWorks SDK Reference: Hello World Application (nvidia.com), I wanted to create the Hello World Application by myself. First, I started Docker on the Host and created the folder mysample
under /usr/local/driveworks/samples/src/
. Then, I created the main.cpp
-file. I also created CMakeLists.txt
as following:
################################################################################
#
# Notice
# ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS"
# NVIDIA MAKES NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR
# OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED
# WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR
# PURPOSE.
#
# NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences
# of use of such information or for any infringement of patents or other rights
# of third parties that may result from its use. No license is granted by
# implication or otherwise under any patent or patent rights of NVIDIA
# CORPORATION & AFFILIATES. No third party distribution is allowed unless
# expressly authorized by NVIDIA. Details are subject to change without notice.
# This code supersedes and replaces all information previously supplied. NVIDIA
# CORPORATION & AFFILIATES products are not authorized for use as critical
# components in life support devices or systems without express written approval
# of NVIDIA CORPORATION & AFFILIATES.
#
# SPDX-FileCopyrightText: Copyright (c) 2016-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this material and related documentation without an express
# license agreement from NVIDIA CORPORATION or its affiliates is strictly
# prohibited.
#
################################################################################
project(sample_mysample)
#-------------------------------------------------------------------------------
# Project files
#-------------------------------------------------------------------------------
set(SOURCES main.cpp)
set(LIBRARIES
samples_framework_log
${Driveworks_LIBRARIES}
)
#-------------------------------------------------------------------------------
# Final target
#-------------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBRARIES})
# ------------------------------------------------------------------------------
# Install target
# ------------------------------
But when I try to build the file, I get the following error:
root@6.0.10.0-0009-build-linux-sdk:/usr/local/driveworks/samples/src/mysample# cmake -B build -S .
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/driveworks/samples/src/mysample/build
root@6.0.10.0-0009-build-linux-sdk:/usr/local/driveworks/samples/src/mysample# cmake --build build
[ 50%] Building CXX object CMakeFiles/sample_mysample.dir/main.cpp.o
/usr/local/driveworks/samples/src/mysample/main.cpp:2:10: fatal error: dw/core/context/Context.h: No such file or directory
2 | #include <dw/core/context/Context.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/sample_mysample.dir/build.make:63: CMakeFiles/sample_mysample.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/sample_mysample.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
root@6.0.10.0-0009-build-linux-sdk:/usr/local/driveworks/samples/src/mysample#
Is there anything I forgot?
Thanks in advance!