JetPack - Compiling oceanFFT on TX2
Hello, I have followed documentation and installed JetPack from my host computer to the TX2. The directory ~/NVIDIA_CUDA-8.0_Samples/bin/aarch64/linux/release contains the binaries, but does not include oceanFFT and many others, especially samples from 5_Simulations. So I tried to compile it by issuing the command: [code]SMS=53 EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs TARGET_ARCH=aarch64 make[/code] And unfortunately I get the following output with an error: [code] nvidia@tegra-ubuntu:~/NVIDIA_CUDA-8.0_Samples/5_Simulations/oceanFFT$ SMS=53 EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs TARGET_ARCH=aarch64 make /usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o oceanFFT.o -c oceanFFT.cpp oceanFFT.cpp: In function ‘void display()’: oceanFFT.cpp:522:5: error: reference to ‘glClientActiveTexture’ is ambiguous glClientActiveTexture(GL_TEXTURE0); ^ In file included from ../../common/inc/helper_gl.h:23:0, from oceanFFT.cpp:37: /usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum) GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture ); ^ In file included from oceanFFT.cpp:37:0: ../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum) USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC); ^ ../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’ #define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c ^ oceanFFT.cpp:527:5: error: reference to ‘glClientActiveTexture’ is ambiguous glClientActiveTexture(GL_TEXTURE1); ^ In file included from ../../common/inc/helper_gl.h:23:0, from oceanFFT.cpp:37: /usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum) GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture ); ^ In file included from oceanFFT.cpp:37:0: ../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum) USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC); ^ ../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’ #define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c ^ oceanFFT.cpp:579:5: error: reference to ‘glClientActiveTexture’ is ambiguous glClientActiveTexture(GL_TEXTURE0); ^ In file included from ../../common/inc/helper_gl.h:23:0, from oceanFFT.cpp:37: /usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum) GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture ); ^ In file included from oceanFFT.cpp:37:0: ../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum) USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC); ^ ../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’ #define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c ^ oceanFFT.cpp:581:5: error: reference to ‘glClientActiveTexture’ is ambiguous glClientActiveTexture(GL_TEXTURE1); ^ In file included from ../../common/inc/helper_gl.h:23:0, from oceanFFT.cpp:37: /usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum) GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture ); ^ In file included from oceanFFT.cpp:37:0: ../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum) USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC); ^ ../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’ #define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c ^ Makefile:270: recipe for target 'oceanFFT.o' failed make: *** [oceanFFT.o] Error 1 [/code] Any ideas, help or reccomendations greatly appreciated. Best regards, C.
Hello,

I have followed documentation and installed JetPack from my host computer to the TX2.

The directory ~/NVIDIA_CUDA-8.0_Samples/bin/aarch64/linux/release contains the binaries, but does not include oceanFFT and many others, especially samples from 5_Simulations.

So I tried to compile it by issuing the command:

SMS=53 EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs TARGET_ARCH=aarch64 make


And unfortunately I get the following output with an error:

nvidia@tegra-ubuntu:~/NVIDIA_CUDA-8.0_Samples/5_Simulations/oceanFFT$ SMS=53 EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs TARGET_ARCH=aarch64 make
/usr/local/cuda-8.0/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o oceanFFT.o -c oceanFFT.cpp
oceanFFT.cpp: In function ‘void display()’:
oceanFFT.cpp:522:5: error: reference to ‘glClientActiveTexture’ is ambiguous
glClientActiveTexture(GL_TEXTURE0);
^
In file included from ../../common/inc/helper_gl.h:23:0,
from oceanFFT.cpp:37:
/usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum)
GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
^
In file included from oceanFFT.cpp:37:0:
../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum)
USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC);
^
../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’
#define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c
^
oceanFFT.cpp:527:5: error: reference to ‘glClientActiveTexture’ is ambiguous
glClientActiveTexture(GL_TEXTURE1);
^
In file included from ../../common/inc/helper_gl.h:23:0,
from oceanFFT.cpp:37:
/usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum)
GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
^
In file included from oceanFFT.cpp:37:0:
../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum)
USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC);
^
../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’
#define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c
^
oceanFFT.cpp:579:5: error: reference to ‘glClientActiveTexture’ is ambiguous
glClientActiveTexture(GL_TEXTURE0);
^
In file included from ../../common/inc/helper_gl.h:23:0,
from oceanFFT.cpp:37:
/usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum)
GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
^
In file included from oceanFFT.cpp:37:0:
../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum)
USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC);
^
../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’
#define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c
^
oceanFFT.cpp:581:5: error: reference to ‘glClientActiveTexture’ is ambiguous
glClientActiveTexture(GL_TEXTURE1);
^
In file included from ../../common/inc/helper_gl.h:23:0,
from oceanFFT.cpp:37:
/usr/include/GL/gl.h:1825:23: note: candidates are: void glClientActiveTexture(GLenum)
GLAPI void GLAPIENTRY glClientActiveTexture( GLenum texture );
^
In file included from oceanFFT.cpp:37:0:
../../common/inc/helper_gl.h:107:17: note: void (* __HelperGL::glClientActiveTexture)(GLenum)
USE_GL_FUNC(glClientActiveTexture, PFNGLACTIVETEXTUREPROC);
^
../../common/inc/helper_gl.h:45:44: note: in definition of macro ‘USE_GL_FUNC’
#define USE_GL_FUNC(name, proto) proto name = (proto) glXGetProcAddress ((c
^
Makefile:270: recipe for target 'oceanFFT.o' failed
make: *** [oceanFFT.o] Error 1


Any ideas, help or reccomendations greatly appreciated.

Best regards,
C.

#1
Posted 03/15/2017 09:41 PM   
Hi, I am also having the same issue. [code]$ make TARGET_ARCH=aarch64[/code] ...results with the same error as OP's.
Hi,

I am also having the same issue.
$ make TARGET_ARCH=aarch64

...results with the same error as OP's.

#2
Posted 03/15/2017 11:11 PM   
Hi, Thanks for your quick test. Please help us do the following modification: In common/inc/helper_gl.h [code] line105: --- #if !defined(GLX_EXTENSION_NAME) || defined(__arm__) || defined(__aarch64__) line105: +++ #if !defined(GLX_EXTENSION_NAME) || !defined(GL_VERSION_1_3) [/code] Please also let us know the results. Thanks.
Answer Accepted by Original Poster
Hi,

Thanks for your quick test.
Please help us do the following modification:

In common/inc/helper_gl.h
line105: --- #if !defined(GLX_EXTENSION_NAME) || defined(__arm__) || defined(__aarch64__)
line105: +++ #if !defined(GLX_EXTENSION_NAME) || !defined(GL_VERSION_1_3)

Please also let us know the results.
Thanks.

#3
Posted 03/16/2017 03:35 AM   
Hi AastaLLL, Thanks for help, this change fixed the issue for me. [i]oceanFFT[/i] example now builds successfully and I am able to run the simulation. Regards, Bojan
Hi AastaLLL,

Thanks for help, this change fixed the issue for me. oceanFFT example now builds successfully and I am able to run the simulation.

Regards,
Bojan

#4
Posted 03/16/2017 09:20 AM   
Hello All, Yes this fixed the problem. Thanks, C.
Hello All,

Yes this fixed the problem.

Thanks,
C.

#5
Posted 03/16/2017 01:22 PM   
Scroll To Top

Add Reply