Giter VIP home page Giter VIP logo

gl_vk_chopper's People

Contributors

chrisjhebert1973 avatar mklefrancois avatar nbickford avatar nbickford-nv avatar nvmheyer avatar pixeljetstream avatar tlorach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gl_vk_chopper's Issues

Vsync off: fps drops & freezes

Running on nvidia 364.16, ubuntu 16.04 x64, GTX Titan X: when vsync is ON it's OK(only minor fps drops sometimes, avg microseconds is 110), but turning vsync off(by pressing 'v' key) causes not only serious fps inconsistencies(avg microseconds changes from 66 to 580), but also freezes GUI(even mouse cursor stops moving).

Segfault with AMD Vega 64 on Linux

$ uname -ar
Linux orion.dev 5.6.0-0.rc7.git1.2.local.fc33.ppc64le #1 SMP Sun Mar 29 10:28:55 AEDT 2020 ppc64le ppc64le ppc64le GNU/Linux

$ ./gl_vk_chopper 
  unhandled argument: ./gl_vk_chopper
DEVICE: Radeon_RX_Vega_(VEGA10_DRM_3.36.0_5.6.0-0.rc7.git1.2.local.fc33.ppc64le_LLVM_10.0.0)
vsync: on
Initialising Devices
Found 1 Devices
Device ID : 0x1af556b0
No direct GLSL support
No direct GLSL support
No direct GLSL support
No direct GLSL support
No direct GLSL support
No direct GLSL support
No direct GLSL support
No direct GLSL support
GLSL programs validation failed
File name has length
File name has length
File name has length
File name has length
Found a file
Its a DDS file
loaded texture image ./../../gl_vk_chopper//images/environ.dds
Texture Loaded.
Floating Point Texture Loaded.
Loaded model ./../../gl_vk_chopper//chopper_pack32.vks
File name has length
File name has length
File name has length
File name has length
Found a file
Its a DDS file
loaded texture image ./../../gl_vk_chopper//images/gazelle_interior.dds
Segmentation fault (core dumped)


$ coredumpctl info 422062
           PID: 422062 (gl_vk_chopper)
           UID: 1000 (tle)
           GID: 1000 (tle)
        Signal: 11 (SEGV)
     Timestamp: Fri 2020-04-10 00:47:22 AEST (15s ago)
  Command Line: ./gl_vk_chopper
    Executable: /home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper
 Control Group: /user.slice/user-1000.slice/[email protected]/apps.slice/apps-org.gnome.Terminal.slice/vte-spawn-7fe65da0-a065-413f-a9da-eedd07d91771.scope
          Unit: [email protected]
     User Unit: vte-spawn-7fe65da0-a065-413f-a9da-eedd07d91771.scope
         Slice: user-1000.slice
     Owner UID: 1000 (tle)
       Boot ID: f7ed72365f974518aeaedbe4bbca5b7d
    Machine ID: 5632f07729a648c49d05933910ac9490
      Hostname: orion.dev
       Storage: /var/lib/systemd/coredump/core.gl_vk_chopper.1000.f7ed72365f974518aeaedbe4bbca5b7d.422062.1586443642000000000000.lz4
       Message: Process 422062 (gl_vk_chopper) of user 1000 dumped core.
                
                Stack trace of thread 422062:
                #0  0x00007fff5c1f61a8 radv_update_descriptor_sets (libvulkan_radeon.so + 0xc61a8)
                #1  0x00007fff5c1db728 radv_meta_push_descriptor_set (libvulkan_radeon.so + 0xab728)
                #2  0x00007fff5c20e66c radv_meta_blit2d_normal_dst (libvulkan_radeon.so + 0xde66c)
                #3  0x00007fff5c22719c meta_copy_image (libvulkan_radeon.so + 0xf719c)
                #4  0x00007fff93643948 vkCmdCopyImage (libvulkan.so.1 + 0x33948)
                #5  0x000000001004e958 n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x4e958)
                #6  0x000000001004e958 n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x4e958)
                #7  0x0000000010044f38 n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x44f38)
                #8  0x0000000010051668 n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x51668)
                #9  0x0000000010051a5c n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x51a5c)
                #10 0x000000001005651c n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x5651c)
                #11 0x000000001005c550 n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x5c550)
                #12 0x000000001002e81c n/a (/home/tle/src/gl_vk_chopper/bin_ppc64/gl_vk_chopper + 0x2e81c)
                #13 0x00007fff923480cc generic_start_main.constprop.0.isra.0 (libc.so.6 + 0x280cc)
                #14 0x00007fffda1ef99f n/a (n/a + 0x0)
                #15 0x00007fffda1ef99f n/a (n/a + 0x0)
                #16 0x4644534100726f6c n/a (n/a + 0x0)

Wondering if the demo supports AMD GPU or not?

Undefined reference glxSwapIntervalEXT

Building this on an ubuntu System with Nvidia-355.00.26 driver results in
undefined reference to glxSwapIntervalEXT .

Commenting out glxSwapIntervalEXT(..) call in shared_sources/main_x11.cpp allows linking to succeed. However, the resulting binary is likely not working as intended.

Environment map shows artifacts

when i change the view to look more straight downwards, i can see the buttom part of the environment map which seems to be wrong oriented or something else. Anyways i can very clearly see the seams of the cube map textures
chopper2
that is used.

Android support

Hello NVIDIA Team!

It was nice to see to find a link to this sample on NVIDIA Developer portal.
This moment we're actively engaging in Vulkan migration from OpenGL ES for our AR apps development.
And you mentioned "The demo is available on launch day for Windows, Linux and Embedded (L4T) and will be available in the coming days for Android."

But I've not found this.

So, can you confirm that Android support is still in your plans. Or something changed?

Best,
Dzmitry

cannot find -lpthreads

Could someone lend me a hand with what I'm missing to compile this please? This is the error I get:

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8b908.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_8b908.dir/CheckFunctionExists.c.o -o cmTC_8b908 -lpthreads
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_8b908.dir/build.make:87: cmTC_8b908] Error 1
gmake[1]: Leaving directory '/var/work/Install/Vulkan/nVidia Demos/BuildAll/gl_vk_chopper/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_8b908/fast] Error 2

Error initialising glew: Missing GL version & Segmentation fault

The function glewInit() fails in the WINinternal::initBase function (the file is shared_sources/main_x11.cpp). GL version is null at the time. A window flashes and then the application segfaults. My computer:
xfce@ryzen5pc:~$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD POLARIS11 (DRM 3.19.0 / 4.14.0-rc4, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel - padoka PPA

I can run the Collabora vkmark Vulkan benchmark.

CreateDevice pNext Field non-NULL?

Ran this demo with the api_dump layer enabled which resulted in a crash in CreateDevice (or maybe CreateInstance?). It looked like the pNext field was neither NULL nor a valid pointer to a Vulkan Extension Object.

fail build

[  2%] Building CXX object shared_sources/CMakeFiles/shared_sources.dir/nv_helpers_gl/GLSLProgram.cpp.o
In file included from /home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/nv_helpers_gl/GLSLProgram.cpp:16:0:
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:51: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                   ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/nv_helpers_gl/GLSLProgram.cpp:19:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 char* GLSLProgram::incPaths[] = {"/"};
                                     ^
In file included from /home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/nv_helpers_gl/GLSLProgram.cpp:16:0:
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/nv_helpers_gl/GLSLProgram.cpp: In member function 'GLuint GLSLProgram::compileProgram(const char*, const char*, const char*, GLenum, GLenum, int)':
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:63: error: unable to find string literal operator 'operator""__VA_ARGS__' with 'const char [105]', 'long unsigned int' arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/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);
             ^~~~
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:63: error: unable to find string literal operator 'operator""__VA_ARGS__' with 'const char [105]', 'long unsigned int' arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/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);
         ^~~~
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:63: error: unable to find string literal operator 'operator""__VA_ARGS__' with 'const char [105]', 'long unsigned int' arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/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);
             ^~~~
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:63: error: unable to find string literal operator 'operator""__VA_ARGS__' with 'const char [105]', 'long unsigned int' arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/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);
         ^~~~
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/nv_helpers_gl/GLSLProgram.cpp: In static member function 'static char* GLSLProgram::readTextFile(const char*)':
/home/sl1pkn07/aplicaciones/gl_vk_chopper/shared_sources/main.h:92:63: error: unable to find string literal operator 'operator""__VA_ARGS__' with 'const char [105]', 'long unsigned int' arguments
 #   define  LOGE(...)  { nvprintfLevel(2, __FILE__"("S__LINE__"): **ERROR**:\n"__VA_ARGS__); }
                                                               ^
/home/sl1pkn07/aplicaciones/gl_vk_chopper/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:207: 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

Vulkan from GIT

maybe problems with GCC 6.1.1?

greetings

ERROR [-1000011001] : Could not create buffer view.

Sys Exe Path : .
GLX Config Sample Buffers : 1.
GLX Config Samples : 8.
GLX Config Sample Buffers : 1.
GLX Config Samples : 8.
GLX Config Sample Buffers : 1.
GLX Config Samples : 16.
GLX Config Sample Buffers : 1.
GLX Config Samples : 16.
Creating Window.
Width : 1024 Height : 768.
Window : 56623106.
Window Created.
vsync: on
Initialising Devices
Found 1 Devices
Device ID : 0x11e89a0
File name has length
File name has length
File name has length
Found a file
Its a DDS file
ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create image view for texture.

INFO : Texture Loaded.
INFO : Floating Point Texture Loaded.
ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

File name has length
File name has length
File name has length
Found a file
Its a DDS file
File name has length
File name has length
File name has length
Found a file
Its a DDS file
File name has length
File name has length
File name has length
Found a file
Its a DDS file
File name has length
File name has length
File name has length
Found a file
Its a DDS file
File name has length
File name has length
File name has length
Found a file
Its a DDS file
File name has length
File name has length
File name has length
Found a file
Its a DDS file
ERROR [-1000011001] : Could not create buffer view.

ERROR [-1000011001] : Could not create buffer view.

Speicherzugriffsfehler (Speicherabzug geschrieben)

View gl_vk_chopper

Can you provide the commands in ReadMe to view this vulkan example after downloading it?

Segfaults with the last nvidia 364.16 driver

Running gl_vk-chopper binary I get:

vsync: on
Initialising Devices
Found 1 Devices
ERROR [-3] : Could not create logical device.

Device ID : 0
Segfault

The same is after clean and re-build (using glfw).

Gdb session:
(gdb) run
Starting program: /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/bin_x64/gl_vk_chopper
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
vsync: on
Initialising Devices
Found 1 Devices
ERROR [-3] : Could not create logical device.

Device ID : 0

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bc2bc9 in vkGetDeviceQueue () from /usr/lib/x86_64-linux-gnu/libvulkan.so.1
(gdb) bt
#0 0x00007ffff7bc2bc9 in vkGetDeviceQueue () from /usr/lib/x86_64-linux-gnu/libvulkan.so.1
#1 0x0000000000477609 in VulkanDC::Device::Queue::initQueue (inDevice=0xbd0160, this=0xac2400) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/VulkanDeviceContext.cpp:52
#2 VulkanDC::Device::newQueue (this=0xbd0160, inName="DEFAULT_GRAPHICS_QUEUE", inID=inID@entry=@0x7fffffffd3a4: 0) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/VulkanDeviceContext.cpp:350
#3 0x00000000004778b8 in VulkanDC::Device::createGraphicsQueue (inID=0, inName="DEFAULT_GRAPHICS_QUEUE", this=) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/VulkanDeviceContext.cpp:409
#4 VulkanDC::getQueueForGraphics (this=this@entry=0xa4b580, queueName="DEFAULT_GRAPHICS_QUEUE", outFormat=@0xab9260: VK_FORMAT_UNDEFINED)

at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/VulkanDeviceContext.cpp:418

#5 0x000000000045fd97 in VulkanAppContext::initAppContext (this=this@entry=0xab9250) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/VulkanAppContext.cpp:349
#6 0x000000000046e3ed in pathclipping::Sample::initVulkan (this=0x7fffffffd8d0) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/vukansandbox.cpp:173
#7 pathclipping::Sample::begin (this=0x7fffffffd8d0) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/vukansandbox.cpp:252
#8 0x00000000004d29bf in nv_helpers_gl::WindowProfiler::run(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, char const**, int, int, int, int) ()
#9 0x000000000046ec86 in sample_main (argc=1, argv=0x7fffffffdf78) at /media/dad/linux/dad/OpenGL/vulkan/nvpro-samples/gl_vk_chopper/vukansandbox.cpp:359
#10 0x000000000045e01a in main ()

gl_vk_chopper failed to run with Failed to create context: GLXBadFBConfig error

Context

gl_vk_chopper failed to run with following output:

$ LIBGL_DEBUG=verbose ./bin_ppc64/gl_vk_chopper
  unhandled argument: ./bin_ppc64/gl_vk_chopper
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/tle/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/tle/.drirc: No such file or directory.
libGL: pci id for fd 6: 1002:687f, driver radeonsi
libGL: MESA-LOADER: dlopen(/usr/lib64/dri/radeonsi_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/tle/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/tle/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/tle/.drirc: No such file or directory.
/usr/share/libdrm/amdgpu.ids version: 1.0.0
libGL: Using DRI3 for screen 0
GLX: Failed to create context: GLXBadFBConfig
Could not create window

For your information, here is additional details:

$ lspci | grep VGA
0001:03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] (rev c1)

$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.50
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.8
OpenGL shading language version string: 4.50
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix,

$ ./bin_ppc64/glfwinfo
GLFW header version: 3.3.1
GLFW library version: 3.3.1
GLFW library version string: "3.3.1 X11 GLX EGL OSMesa clock_gettime evdev"
OpenGL context version string: "4.5 (Compatibility Profile) Mesa 19.2.8"
OpenGL context version parsed by GLFW: 4.5.0
OpenGL context flags (0x00000000):
OpenGL context flags parsed by GLFW:
OpenGL profile mask (0x00000002): compat
OpenGL profile mask parsed by GLFW: compat
OpenGL robustness strategy (0x00008261): none
OpenGL robustness strategy parsed by GLFW: none
OpenGL context renderer string: "Radeon RX Vega (VEGA10, DRM 3.36.0, 5.5.0+, LLVM 9.0.0)"
OpenGL context vendor string: "X.Org"
OpenGL context shading language version: "4.50"
OpenGL framebuffer:
 red: 8 green: 8 blue: 8 alpha: 8 depth: 24 stencil: 8
 samples: 0 sample buffers: 0
 accum red: 0 accum green: 0 accum blue: 0 accum alpha: 0 aux buffers: 0
Vulkan loader: available
Vulkan loader API version: 1.2
Vulkan required instance extensions: VK_KHR_surface VK_KHR_xcb_surface
Vulkan discrete GPU device: "AMD RADV VEGA10 (LLVM 9.0.0)" API version 1.1

Debug information

See full build outputs

Several calls to vkMapMemory specify an invalid 0 size

As in the title, size 0 to vkMapMemory is invalid according to the spec:

If size is not equal to VK_WHOLE_SIZE, size must be greater than 0

I assume VK_WHOLE_SIZE is what's intended here, so it's an easy substitution.

Stuttering with vsync off

On my GTX 950M I am experiencing some weird image stuttering. NSight displays extremely abnormal activity when deactivating vsync (jumping cpu and gpu usage). I've lowered the chopper count in VkeGameRendererDynamic.cpp to 8 but the problem still persists. Also, is the chopper speed supposed to rely on fps count? Because at 200fps they are going at light speed.
Windows 8.1 (x64)

error: ‘VK_API_VERSION’ was not declared in this scope

Hi,

i was trying to build the chopper demo on Arch Linux using Nvidia 364.16 driver.
The cmake configuration went ok, but while building with make an error occured.

This was the cmake output:

$ cmake ..
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- -------------------------------
-- Processing Project gl_vk_chopper:
-- BASE_DIRECTORY = /home/olli/Programme/vulkan/gl_vk_chopper/..
-- CMAKE_CURRENT_SOURCE_DIR = /home/olli/Programme/vulkan/gl_vk_chopper
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so  
-- Found GLEW: /home/olli/Programme/vulkan/shared_sources/glew/include  
-- Could NOT find GLFW (missing:  GLFW_INCLUDE_DIR GLFW_LIBRARY) 
-- found Glew source code. Using it instead of library
-- VulkanSDK search paths: 
-- Vulkan Include : /usr/include
-- Vulkan Library : /lib64/libvulkan.so
-- VulkanSDK version: 
Using system for vulkan sdk. 
-- Found VULKANSDK: /usr/include/include  
-- --> using package VulkanSDK
-- --> using package AntTweakBar
-- Found ANTTWEAKBAR: /usr/include  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/olli/Programme/vulkan/gl_vk_chopper/build

And this are the last lines of the make output:

/home/olli/Programme/vulkan/gl_vk_chopper/VulkanAppContext.cpp: In member function ‘void VulkanAppContext::initAppContext()’:
/home/olli/Programme/vulkan/gl_vk_chopper/VulkanAppContext.cpp:322:23: error: ‘VK_API_VERSION’ was not declared in this scope
  appInfo.apiVersion = VK_API_VERSION;
                       ^
CMakeFiles/gl_vk_chopper.dir/build.make:734: recipe for target 'CMakeFiles/gl_vk_chopper.dir/VulkanAppContext.cpp.o' failed
make[2]: *** [CMakeFiles/gl_vk_chopper.dir/VulkanAppContext.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gl_vk_chopper.dir/all' failed
make[1]: *** [CMakeFiles/gl_vk_chopper.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

fail build in linux

no file intrin.h that include in vc

and

nvpro-samples/shared_sources/nv_helpers/bitarray.hpp:276:24: error: request for member ‘get’ in ‘((nv_helpers::BitArray*)this)->nv_helpers::BitArray::m_bits’, which is of non-class type ‘nv_helpers::BitArray::BitStorageType* restrict’ {aka ‘long unsigned int* restrict’}
bitTraverse(m_bits.get(), determineNumberOfElements(), visitor );

GNU 8.2.1

Don't works with AMD cards.

Is it my problem, it was planned by nvidia, or it's kinda compatibility problem?

gl_vk_chopper.exe has stopped working
Happends after device initialization
Using Asus R9 270X and Xeon 1241.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.