Still problems running samples on Windows
wini3d opened this issue · 3 comments
wini3d commented
Hi, need help as I'm still getting errors on this one..
- Opened a prompt to C:/anki/samples/sponza
- Execute "../../build/bin/sponza" from that directory
- Errors below
This is latest commit (3/20/18). What I also noticed is it creates an empty cache directory in C://Users/wini3d/.anki
C:\anki\samples\sponza>"../../build/bin/sponza"
[I][CORE] Using settings dir "C://Users/wini3d/.anki" (C:\anki\src\anki\core\App.cpp:545 initDirs)
[I][CORE] Initializing application (version 0.1, optimized, NO dbg symbols, NO extra checks, compiler gcc 5.1.0, build d
ate Mar 19 2018, commit 8e7c35e) (C:\anki\src\anki\core\App.cpp:388 initInternal)
[I][CORE] Number of main threads: 4 (C:\anki\src\anki\core\App.cpp:405 initInternal)
[I][CORE] Creating SDL window. SDL version 2.0 (C:\anki\src\anki\core\NativeWindowSdl.cpp:39 init)
[I][CORE] SDL window created (C:\anki\src\anki\core\NativeWindowSdl.cpp:94 init)
[I][GL ] Creating GL 4.5 context... (C:\anki\src\anki\gr\gl\GrManagerImplSdl.cpp:40 createContext)
[I][GL ] OpenGL async thread started: OpenGL version "4.5.0 NVIDIA 368.69", GLSL version "4.50 NVIDIA" (C:\anki\src\ank
i\gr\gl\RenderingThread.cpp:181 prepare)
[I][GL ] GPU vendor is NVIDIA (C:\anki\src\anki\gr\gl\GlState.cpp:117 initRenderThread)
[I][GL ] Found GL_ARB_shader_ballot (C:\anki\src\anki\gr\gl\GlState.cpp:195 initRenderThread)
[I][RSRC] Added new data path "." that contains 233 files (C:\anki\src\anki\resource\ResourceFilesystem.cpp:329 addNewPa
th)
[I][RSRC] Added new data path "../.." that contains 11113 files (C:\anki\src\anki\resource\ResourceFilesystem.cpp:329 ad
dNewPath)
[I][RSRC] Will use 384MB of memory for transfer scratch (C:\anki\src\anki\resource\TransferGpuAllocator.cpp:105 init)
[I][R ] Initializing main renderer (C:\anki\src\anki\renderer\MainRenderer.cpp:43 init)
[I][R ] Initializing offscreen renderer. Size 1366x768 (C:\anki\src\anki\renderer\Renderer.cpp:78 initInternal)
[I][R ] Initializing image reflections (C:\anki\src\anki\renderer\Indirect.cpp:57 init)
(C:\anki\src\anki\resource\ShaderLoader.cpp:93 parseSource)
[E][RSRC] Failed to load resource: programs/DeferredShading.ankiprog (C:/anki/src/anki/resource/ResourceManager.inl.h:42
loadResource)
[E][R ] Failed to initialize image reflections (C:\anki\src\anki\renderer\Indirect.cpp:62 init)
[E][R ] Failed to initialize the renderer (C:\anki\src\anki\renderer\Renderer.cpp:67 init)
[I][R ] Destroying main renderer (C:\anki\src\anki\renderer\MainRenderer.cpp:30 ~MainRenderer)
[E][CORE] App initialization failed (C:\anki\src\anki\core\App.cpp:343 init)
[E][N/A ] Error reported. To run ../../build/bin/sponza you have to navigate to the /path/to/anki/samples/sponza. And th
en execute it (C:\anki\samples\sponza\Main.cpp:40 main)
C:\anki\samples\sponza>
marcobraghim commented
I'm getting error too, but I'm on linux debian.
pedepano@PeDePano:/var/www/anki/samples/sponza$ ../../build/bin/sponza
[I][CORE] Using settings dir "/home/pedepano/.anki" (/var/www/anki/src/anki/core/App.cpp:506 initDirs)
[I][CORE] Initializing application (version 0.1, optimized, NO dbg symbols, NO extra checks, compiler gcc 6.3.0 20170516, build date Aug 17 2018, commit 1b3baa2f) (/var/www/anki/src/anki/core/App.cpp:352 initInternal)
[I][CORE] Number of main threads: 2 (/var/www/anki/src/anki/core/App.cpp:365 initInternal)
[I][CORE] Creating SDL window. SDL version 2.0 (/var/www/anki/src/anki/core/NativeWindowSdl.cpp:39 init)
[I][CORE] SDL window created (/var/www/anki/src/anki/core/NativeWindowSdl.cpp:94 init)
[I][GL ] Creating GL 4.5 context... (/var/www/anki/src/anki/gr/gl/GrManagerImplSdl.cpp:40 createContext)
[E][GL ] SDL_GL_CreateContext() failed (/var/www/anki/src/anki/gr/gl/GrManagerImplSdl.cpp:63 createContext)
[E][CORE] App initialization failed (/var/www/anki/src/anki/core/App.cpp:302 init)
[E][N/A ] Error reported. To run ../../build/bin/sponza you have to navigate to the /path/to/anki/samples/sponza. And then execute it (/var/www/anki/samples/sponza/Main.cpp:40 main)
pedepano@PeDePano:/var/www/anki/samples/sponza$
SDL_GL_CreateContext failed - I'm trying to found why...
godlikepanos commented
Thanks for the report. Can you check the latest commit? I've added some debugging info. Also, you can try building for Vulkan. The CMake option is ANKI_GR_BACKEND=VULKAN (add -DANKI_GR_BACKEND=VULKAN when you generate the makefile from the command line)