Skip to content

How to configure builds for Windows users #37

Open
@StarJade-Park

Description

@StarJade-Park

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

  1. Clone this project and install Panda3D(1.10.9)
    git clone https://github.com/lettier/3d-game-shaders-for-beginners.git
    
  2. Open the visual studio
  3. Create new c++ empty project
    • project name: whatever you want
    • location: {cloned directory}\demonstration
    • check "place solution and project in the same directory"
  4. Move demonstration\src\main.cxx to the project directoy
  5. Add to the project by 'Add Existing File'
  6. Open main.cxx and comment out #include <unistd.h>
  7. Change "Debug" to "Release" below the menu bar
  8. Open up the project configuration pages
  9. Change output directory to $(SolutionDir)..\ in the General tab
  10. Add PATH=C:\Panda3D-1.10.9-x64\bin;%PATH% in the Debugging tab -> Environment
  11. Add C:\Panda3D-1.10.9-x64\include in the VC++ directory tab -> External include directoies
  12. Add C:\Panda3D-1.10.9-x64\lib in the VC++ directories tab -> Library directories
  13. Add the path below in the Linker tab -> input -> Additional Dependencies
    C:\Panda3D-1.10.9-x64\lib\libp3framework.lib
    C:\Panda3D-1.10.9-x64\lib\libpanda.lib
    C:\Panda3D-1.10.9-x64\lib\libpandaexpress.lib
    C:\Panda3D-1.10.9-x64\lib\libp3dtool.lib
    C:\Panda3D-1.10.9-x64\lib\libpandaphysics.lib
    C:\Panda3D-1.10.9-x64\lib\libp3dtoolconfig.lib
    C:\Panda3D-1.10.9-x64\lib\libp3openal_audio.lib
    
  14. Build the project
  15. Execute the binary file (.exe) created in {cloned directory}\demonstration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions