Build extended Sample on Linux Host System

Hello

i want put some sample code together with lane/object/sign/freespace/etc. detector.
But failed to build the simple helloworld example on SDK Reference. I also tried to create this project in Nsight Eclipse and end up with the same error

cannot convert ‘dwContextObject**’ to ‘dwContextHandle_t {aka dwContextObject*}’ for argument ‘1’ to ‘dwStatus dwRelease(dwContextHandle_t)’

Another try to build the laneDetection sample in Nsight Eclipse was after setting up all includes

recipe for target ‘helloDriver’ failed makefile

and

Warning: undefined reference to »dw_samples::common::DriveWorksSample::~DriveWorksSample()«

For me it look like something is wrong with the linker
Hope somebody knows how to build some own samples for the host system.
Thanks
Cheers

Hi @rudolf.zobel,

Is following the doc (file:///usr/local/driveworks/doc/nvsdk_html/dwx_samples_building.html ; please open it with your host system browser) to build the sample applications working well on your side?

Hi @VickNV
thanks for the tip with cmake. I import, build and run a sample in Nsight Eclipse successfully. If i find time, i will post the steps i did.

1 Like

This are the steps to work with the DriveworksSamples in Nvidia Nsight Eclipse

  1. copy an sample folder e.g. /usr/local/driveworks/samples/src/laneDetection

sudo cp -R /…/laneDetection /…/test

  1. backup original CMakeList: /usr/local/driveworks/samples/CMakeLists.txt

sudo cp /…/CMakeLists.txt /…/CmakeLists.txt.backup

  1. edit CMakeLists at line 68

sudo nano /…/CMakeLists.txt
to
set(SAMPLES
framework;test)

  1. create Driveworks folder in workspace /…/workspaces/cuda
    and run Eclipse CMake Generator with sample source /usr/local/driveworks/samples/

mkdir Driveworks
cd Driveworks
cmake /…/samples -G"Eclipse CDT4 - Unix Makefiles"
make -j

  1. import existing CMake Project in Eclipse /…/workspaces/cuda/Driveworks
    and wait for build process

  2. run Application -> run Configurations -> make new one -> Run

  3. setup includes with cuda and driveworks

This was my starting point to build my first project.

2 Likes

Thanks for sharing this back!Below FAQ topic is also for your reference.

1 Like