-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure builds for Windows users #37
Comments
Thank you for the detailed instructions. For those using CMake: |
don't forget to choose the solution platform to x64 if the original is x86 |
If using a different version of Panda3D, please note the filename prefix, may be different from “Panda3D-1.10.9-x64” |
@StarJade-Park thanks to make this explicit for newbies. very appreciated! |
Minor nitpick.
You don't have to hardcode the path. Since we define the path in the Additional Lib Directories, they will be found there. Also, if you don't want to change the output directory, change current working directory in Debugging settings to $(ProjectDir)demonstration. Sidenote, this will work for everything apart Shaders. Shader::load expects a path next to the executable, so change the relative paths in loadShader by appending "../../demonstration/" to the "shaders/..." strings. I didn't go through the code, perhaps sth changes cwd prior to loading shaders and it's not a Shader::load issue. UPDATE: All loaders seem to call upon VFS (VirtualFileSystem) to resolve the relative filenames, although shader is the only place vfs::find_file is called, while all the others call resolve_filename which internally calls find_file.... VFS internally has its own cwd. Although I didn't figure out why the rest of the assets resolve properly while the shaders don't. |
There are probably still people who want to run this project on Windows. So I tell you how I tried
It works in VS2022 (msvc v143), so it works in most cases
{cloned directory}\demonstration
demonstration\src\main.cxx
to the project directoymain.cxx
and comment out#include <unistd.h>
$(SolutionDir)..\
in the General tabPATH=C:\Panda3D-1.10.9-x64\bin;%PATH%
in the Debugging tab -> EnvironmentC:\Panda3D-1.10.9-x64\include
in the VC++ directory tab -> External include directoiesC:\Panda3D-1.10.9-x64\lib
in the VC++ directories tab -> Library directories{cloned directory}\demonstration
The text was updated successfully, but these errors were encountered: