gameknife / gkNextRenderer

A Realtime PathTracer
50 stars 4 forks source link

How to add library from vcpkg? #72

Closed tigrazone closed 2 months ago

tigrazone commented 2 months ago

I want to add nativefiledialog-extended. What to do and which files I must to change and how? Thank you

gameknife commented 2 months ago

you can refer this commit, add library to vcpkg_xxx.sh/bat, add the requirement in cmakelist.txt, then build all platforms or use marco to divide.

https://github.com/gameknife/gkNextRenderer/commit/23d7425c565322cb1aae08c07d1b790527fdc209#diff-148715d6ea0c0ea0a346af3f6bd610d010d490eca35ac6a9b408748f7ca9e3f4

tigrazone commented 2 months ago

one more question. where you check(URL of page) name of package?

gameknife commented 2 months ago

https://vcpkg.link/

tigrazone commented 2 months ago

Hmm work strange

vcpkg install nativefiledialog-extended Computing installation plan... error: while looking for nativefiledialog-extended:x64-windows: C:\msys64\home\user\from-git\gkNextRenderer-my-private\build\vcpkg.windows\ports\nativefiledialog-extended: error: nativefiledialog-extended does not exist

https://vcpkg.link/ports/nativefiledialog-extended

gameknife commented 2 months ago

you use general windows environment or mingw?

tigrazone commented 2 months ago

I use VS, for windows. Mingw is work with issues for me and I dont want to use it now with gkNextRenderer

tigrazone commented 2 months ago

I used mingw before often and I have as usual folders structure like C:\msys64\home\user\from-git\ But with gkNextRenderer I use VS

gameknife commented 2 months ago

the vcpkg.bat should be execute from general console of windows, mingw env may failed? I didn't try it

tigrazone commented 2 months ago

I use cmd.exe I dont use mingw now Yes, it is general console of windows