nvpro-samples / gl_vk_threaded_cadscene

OpenGL and Vulkan comparison on rendering a CAD scene using various techniques

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not building (stops at GLSLProgram.cpp.o)

jpotier opened this issue · comments

build [master●] make
Scanning dependencies of target shared_sources
[  3%] Building CXX object shared_sources/CMakeFiles/shared_sources.dir/nv_helpers_gl/OpenGLText/OpenGLText.cpp.o
/tmp/shared_sources/nv_helpers_gl/OpenGLText/OpenGLText.cpp:182:6: attention : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
     "};
      ^
/tmp/shared_sources/nv_helpers_gl/OpenGLText/OpenGLText.cpp:197:6: attention : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
     "};
      ^
[  6%] Building CXX object shared_sources/CMakeFiles/shared_sources.dir/nv_helpers_gl/traceDisplay/tracedisplayogl.cpp.o
[ 10%] Building CXX object shared_sources/CMakeFiles/shared_sources.dir/nv_helpers/profiler.cpp.o
[ 13%] Building CXX object shared_sources/CMakeFiles/shared_sources.dir/nv_helpers_gl/GLSLProgram.cpp.o
In file included from /tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:16:0:
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:51: attention : suffixe de chaîne invalide ; C++11 requière un espace entre une chaîne et une macro de chaîne [-Wliteral-suffix]
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                   ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:19:37: attention : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 char* GLSLProgram::incPaths[] = {"/"};
                                     ^
In file included from /tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:16:0:
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp: Dans la fonction membre ‘GLuint GLSLProgram::compileProgram(const char*, const char*, const char*, GLenum, GLenum, int)’:
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:63: erreur : unable to find string literal operator ‘operator""__VA_ARGS__’ with ‘const char [68]’, ‘long unsigned int’ arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:324:13: note : in expansion of macro ‘LOGE’
             LOGE("%s: Failed to compile VtxShader:\n%s\n", curVSName ? curVSName:"VSNoname", temp);
             ^~~~
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:63: erreur : unable to find string literal operator ‘operator""__VA_ARGS__’ with ‘const char [68]’, ‘long unsigned int’ arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:341:9: note : in expansion of macro ‘LOGE’
         LOGE("%s: Failed to compile FragShader:\n%s\n", curFSName ? curFSName:"VSNoname", temp);
         ^~~~
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:63: erreur : unable to find string literal operator ‘operator""__VA_ARGS__’ with ‘const char [68]’, ‘long unsigned int’ arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:359:13: note : in expansion of macro ‘LOGE’
             LOGE("%s: Failed to compile GShader:\n%s\n", curGSName ? curGSName:"VSNoname", temp);
             ^~~~
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:63: erreur : unable to find string literal operator ‘operator""__VA_ARGS__’ with ‘const char [68]’, ‘long unsigned int’ arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:387:9: note : in expansion of macro ‘LOGE’
         LOGE("%s: Failed to link program:\n%s\n", curProgName ?curProgName:"Noname", temp);
         ^~~~
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp: Dans la fonction membre statique ‘static char* GLSLProgram::readTextFile(const char*)’:
/tmp/gl_vk_threaded_cadscene/../shared_sources/main.h:92:63: erreur : unable to find string literal operator ‘operator""__VA_ARGS__’ with ‘const char [68]’, ‘long unsigned int’ arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/tmp/shared_sources/nv_helpers_gl/GLSLProgram.cpp:404:3: note : in expansion of macro ‘LOGE’
   LOGE("Cannot open \"%s\" for read!\n", filename);
   ^~~~
make[2]: *** [shared_sources/CMakeFiles/shared_sources.dir/build.make:135: shared_sources/CMakeFiles/shared_sources.dir/nv_helpers_gl/GLSLProgram.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:123: shared_sources/CMakeFiles/shared_sources.dir/all] Error 2
make: *** [Makefile:128: all] Error 2

I'm running gcc version 6.1.1 20160707 (GCC) on linux 64 bit version 4.6.4 (archlinux kernel, unmodified)

I had the same error with gcc 6.2.0. I tried clang, after fixing nv_math.inl, and it compiled.

closing, as currently linux is not supported