Build in release mode

Hi,

Actually, I am able to compile a code using opencv in debug mode :

But if I build in debug mode, the compiler doesn’t recognize the path for opencv headers … :

Not that I am working with an ubuntu 18.04 host, and I am using ssh. As the target is jetson TX2, I am using cuda toolkit 6.2.

Thank you

Hi,

I think my problem here is what “release mode” and “debug mode” are you talking about? This is a cross-compilation project, right?

Hi,

It is not a cross compilation project. I connect the jetson through ssh, and work directly on it

Thank you

ok I see. What release/debug mode are we talking about here? Is it from nsight?

Hi,

To build the project, I have 2 options :
jetson IP
Debug
Release

I enclosed the screenshot in my first question. And yes, is it from nsight.

Thanks a lot !

Hi,

Could you also share the Release mode console log for us checking?
Thanks.

Hi,

Of course.
If I build in debug mode :

> 08:40:55 **** Incremental Build of configuration Debug for project Test ****
> make all -C /home/jetson/Desktop/Test/Debug 
> make: Entering directory '/home/jetson/Desktop/Test/Debug'
> make: Nothing to be done for 'all'.
> make: Leaving directory '/home/jetson/Desktop/Test/Debug'
> > Shell Completed (exit code = 0)
> 
> 08:40:55 Build Finished (took 736ms)

And in release mode :

> 08:42:15 **** Incremental Build of configuration Release for project Test ****
> make all -C /home/jetson/Desktop/Test/Release 
> make: Entering directory '/home/jetson/Desktop/Test/Release'
> Building file: ../src/vectorAdd.cu
> Invoking: NVCC Compiler
> /usr/local/cuda-10.0/bin/nvcc -I"/usr/local/cuda-10.0/samples/0_Simple" -I"/usr/local/cuda-10.0/samples/common/inc" -I"/home/nl37/Test" -O3 -ccbin aarch64-linux-gnu-g++ -gencode arch=compute_62,code=sm_62 -m64 -odir "src" -M -o "src/vectorAdd.d" "../src/vectorAdd.cu"
> ../src/vectorAdd.cu:8:9: fatal error: opencv2/core/core.hpp: No such file or directory
>  #include<opencv2/core/core.hpp>
>          ^~~~~~~~~~~~~~~~~~~~~~~
> src/subdir.mk:18: recipe for target 'src/vectorAdd.o' failed
> compilation terminated.
> make: Leaving directory '/home/jetson/Desktop/Test/Release'
> make: *** [src/vectorAdd.o] Error 1
> > Shell Completed (exit code = 2)
> 
> 08:42:16 Build Finished (took 1s.54ms)

This is exactly the same code.

Thank you

Hi,

Sorry for the late update.

It looks like the Debug folder already has a binary so the compiling is not triggered.

> make: Nothing to be done for 'all'.

Could you clean the Debug folder and recompile it again to get the detail compile log for us?

Thanks.

Hi Astall,

Thank you for your answer. I am new with nsight and I noticed that we can have different configurations for debug and release mode … That was my mistake.