patriciogonzalezvivo / lygia_of_examples

18 stars 4 forks source link

VS Windows 10 doesn't compile shader correctly #5

Closed danzeeeman closed 1 year ago

danzeeeman commented 1 year ago

trying on windows with my A6000

'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\lygia_of_examples_debug.exe'. Symbols loaded. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\Wldap32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\FreeImage.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\fmod.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\vcomp140.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. The thread 0x5dac has exited with code 0 (0x0). 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\dinput8.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\XInput1_4.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'lygia_of_examples_debug.exe' (Win32): Unloaded 'C:\Windows\System32\kernel.appcore.dll' 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\hid.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\AppXDeploymentClient.dll'. 'lygia_of_examples_debug.exe' (Win32): Unloaded 'C:\Windows\System32\AppXDeploymentClient.dll' 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvltui.inf_amd64_f3e6fd40505d81a3\nvoglv64.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\cryptnet.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\drvstore.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'. The thread 0x6724 has exited with code 0 (0x0). The thread 0x664c has exited with code 0 (0x0). The thread 0x2144 has exited with code 0 (0x0). 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\nvspcap64.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\winsta.dll'. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B9D0. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B800. [ error ] ofShader: Could not open glsl include file C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\data\lygia/sdf/circleSDF.glsl Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B9D0. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B800. [ error ] ofShader: Could not open glsl include file C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\data\lygia/draw/fill.glsl Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B9D0. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B800. [ error ] ofShader: Could not open glsl include file C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\data\lygia/draw/stroke.glsl Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B9D0. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B800. [ error ] ofShader: Could not open glsl include file C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\data\lygia/draw/digits.glsl Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B9D0. Exception thrown at 0x00007FFA18B4CD29 in lygia_of_examples_debug.exe: Microsoft C++ exception: std::filesystem::filesystem_error at memory location 0x000000000014B800. [ error ] ofShader: Could not open glsl include file C:\Users\danm\src\of_v20221031_vs_release\apps\lygia_of_examples\bin\data\lygia/space/ratio.glsl [ error ] ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile [ error ] ofShader: GL_FRAGMENT_SHADER shader reports: 0(20) : error C1503: undefined variable "ratio" 0(22) : error C1503: undefined variable "circleSDF" 0(27) : error C1503: undefined variable "stroke" 0(31) : error C1503: undefined variable "fill" 0(34) : error C1503: undefined variable "digits" 0(35) : error C1503: undefined variable "digits" [ error ] ofShader: GL_FRAGMENT_SHADER, offending line 20: 18 vec2 xy = gl_FragCoord.xy/u_resolution.xy; 19
20 xy = ratio(xy, u_resolution); 21
22 float sdf = circleSDF(xy);

[ error ] ofShader: checkProgramLinkStatus(): program failed to link [ error ] ofShader: ofShader: program reports: Fragment info

0(20) : error C1503: undefined variable "ratio" 0(22) : error C1503: undefined variable "circleSDF" 0(27) : error C1503: undefined variable "stroke" 0(31) : error C1503: undefined variable "fill" 0(34) : error C1503: undefined variable "digits" 0(35) : error C1503: undefined variable "digits" (0) : error C2003: incompatible options for link 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Windows\System32\oleacc.dll'. 'lygia_of_examples_debug.exe' (Win32): Loaded 'C:\Program Files\NVIDIA Corporation\nview\nviewH64.dll'.

danzeeeman commented 1 year ago

nevermind it didn't clone the submodule correctly might want to update the submodules to not be a ssh path and use the http?

patriciogonzalezvivo commented 1 year ago

That's a good call. Do you mind a PR for it?

patriciogonzalezvivo commented 1 year ago

Made the change, do you mind testing it? https://github.com/patriciogonzalezvivo/lygia_of_examples/commit/04d0774b273a19db0407a409d857d7c5219e6a89

danzeeeman commented 1 year ago

I'll do a fresh clone

On Tue, Nov 1, 2022 at 1:13 PM Patricio Gonzalez Vivo < @.***> wrote:

Made the change, do you mind testing it? 04d0774 https://github.com/patriciogonzalezvivo/lygia_of_examples/commit/04d0774b273a19db0407a409d857d7c5219e6a89

— Reply to this email directly, view it on GitHub https://github.com/patriciogonzalezvivo/lygia_of_examples/issues/5#issuecomment-1298853135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFPVTDQ6XWDMG3L3NAXMTTWGFFUNANCNFSM6AAAAAARUHNS3U . You are receiving this because you modified the open/close state.Message ID: @.*** com>

-- Dan Moore makeitdoathing.com @theDANtheMAN @.***

danzeeeman commented 1 year ago

that worked

On Tue, Nov 1, 2022 at 1:17 PM Dan Moore @.***> wrote:

I'll do a fresh clone

On Tue, Nov 1, 2022 at 1:13 PM Patricio Gonzalez Vivo < @.***> wrote:

Made the change, do you mind testing it? 04d0774 https://github.com/patriciogonzalezvivo/lygia_of_examples/commit/04d0774b273a19db0407a409d857d7c5219e6a89

— Reply to this email directly, view it on GitHub https://github.com/patriciogonzalezvivo/lygia_of_examples/issues/5#issuecomment-1298853135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFPVTDQ6XWDMG3L3NAXMTTWGFFUNANCNFSM6AAAAAARUHNS3U . You are receiving this because you modified the open/close state.Message ID: @.*** com>

-- Dan Moore makeitdoathing.com @theDANtheMAN @.***

-- Dan Moore makeitdoathing.com @theDANtheMAN @.***