Giter Site home page Giter Site logo

Some windows problems about gl_vs_vk HOT 6 CLOSED

ripper37 avatar ripper37 commented on June 5, 2024
Some windows problems

from gl_vs_vk.

Comments (6)

RippeR37 avatar RippeR37 commented on June 5, 2024 1

@mirh I've created separate issue for that. You're right, it's not added there by default - my mistake. I must have added it so long ago that I simply forgot about it.

Anyway, I'll deal with this when I have some more time to tinker with it, as it's not a priority for me right now. Anyway - thanks for reporting it.

from gl_vs_vk.

RippeR37 avatar RippeR37 commented on June 5, 2024

First, afaiu you are missing ../../../third_party/vulkan/src/;../../../third_party/vulkan-hpp/; from include directories.

Yep, I forgot to add this to MSVC project too. I'll fix it with some other changes soon.

Second, I think you should be specifying in the readme Vulkan SDK needs to be installed (for vulkan-1.lib)

There already is something like: VulkanSDK might be needed on Windows (v1.0.46.0 or higher). Actually one doesn't have to use SDK if he want to manually override paths to libraries (e.g. using CMake on Windows) and will provide path to Vulkan's loader himself, so it's not hard-requirement as you only need headers (already added as submodules and lib file).

Third, something requires glfw3.lib, which means you are gonna need GLFW bins too.

Again, please read README.md, it states that you use script install_msvc_dependencies.bat which should build GLFW3 on your computer - no need to provide binaries there.

I'm not really sure storing binaries in source control is really the best solution.
Couldn't you just point to sources, then having compile them?
Or perhaps modify the install_msvc_dependencies script to just download end binaries.

Building GLEW on Windows just from GIT repository is not that easy as it requires some extra tools to download first data regarding OpenGL specification and then parsing it. Unfortunately repository owner doesn't include this generated glew.c file in it, so to make things easier I added GLEW binaries for windows in source. Also note, that putting small binaries which won't change is not that problematic. It would be a bigger problem if these would change frequently.

So only the first mentioned problem will be handled here.

from gl_vs_vk.

mirh avatar mirh commented on June 5, 2024

Mhh.. I guess that may something to do with msbuild not being in path.

for /f "skip=2 tokens=2,*" %%A in ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v MSBuildToolsPath /reg:32 2^> nul') do SET "MSBUILDDIR=%%B"
for /f "skip=2 tokens=2,*" %%A in ('reg.exe query "HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v 15.0 /reg:32 2^> nul') do SET "MSBUILDDIR=%%BMSBuild\15.0\Bin\"

SET PATH=%PATH%;%MSBUILDDIR%

MSBuild.exe ALL_BUILD.vcxproj >nul 2>&1
MSBuild.exe ALL_BUILD.vcxproj /property:Configuration=Release >nul 2>&1
IF ERRORLEVEL 9009 IF NOT EXIST "%MSBUILDDIR%" (echo "Couldn't find MSBuild path") & pause

This elegantly solves the situation imo.
Otherwise you'd have to rely on external tools.

from gl_vs_vk.

RippeR37 avatar RippeR37 commented on June 5, 2024

I've fixed paths to Vulkan/Vulkan-Hpp headers. Linker still searched by default for loader in Vulkan_SDK folder, but as this is de-factor standard on Windows at this moment, I'm not going to support other possibilities by default. You can always use CMake and add paths on your own.

As for above solution - again, this project doesn't aim to give best-user-experience and is intended at most for "power-users" only. Having MSBuild in PATH (which I believe is added there by default) is on user who wants to use MSVC project. I'm not a fan of using such hacks to work around users problems.

from gl_vs_vk.

mirh avatar mirh commented on June 5, 2024

MSBuild isn't added by default.
Otherwise I mean yes, I would have agreed.
(so I don't see how it would be an hack then)

from gl_vs_vk.

mirh avatar mirh commented on June 5, 2024

Cool.
Even though users haven't 7za in path either 🙃

from gl_vs_vk.

Related Issues (6)

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.