Skip to content
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

Cannot open include file: 'Environment.hpp' #1

Closed
jhon opened this issue Aug 6, 2021 · 3 comments
Closed

Cannot open include file: 'Environment.hpp' #1

jhon opened this issue Aug 6, 2021 · 3 comments

Comments

@jhon
Copy link

jhon commented Aug 6, 2021

The code is looking for a header that is missing. I assume this is supposed to come from the godot-headers repo but I couldn't find that header in their either

Steps to reproduce:

  1. Clone this repository locally using the github desktop client
  2. Start the Visual Studio 2019 x64 Native Command Prompt
  3. Navigate the command prompt to the directory the repo was cloned to
  4. scons platform=windows

Expected Result:
Native plugin compiles successfully

Actual Result:

** Visual Studio 2019 Developer Command Prompt v16.10.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd \git\GodotHoloPlayNative

C:\git\GodotHoloPlayNative>scons platform=windows
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cl /Fosrc\godot_holoplay\HoloPlayVolume.obj /c src\godot_holoplay\HoloPlayVolume.cpp /TP /std:c++17 /nologo -W3 -GR -EHsc -MDd -ZI /DWIN32 /D_WIN32 /D_WINDOWS /D_CRT_SECURE_NO_WARNINGS /D_DEBUG /I. /Igodot-cpp\godot-headers /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /IHoloPlayCore\include /Iglfw\include /Iglad\include /Isrc
HoloPlayVolume.cpp
C:\git\GodotHoloPlayNative\src\godot_holoplay\HoloPlayVolume.h(4): fatal error C1083: Cannot open include file: 'Environment.hpp': No such file or directory
scons: *** [src\godot_holoplay\HoloPlayVolume.obj] Error 2
scons: building terminated because of errors.
@CaptainProton42
Copy link
Owner

You'll need to pull the submodules with

git submodule update --init --recursive

after you've cloned the repo and then follow the instructions from here to compile the bindings.

I'll keep this issue open until I've added that to the readme.

@jhon
Copy link
Author

jhon commented Aug 6, 2021

Thanks, I'm not too familiar with submodules nor used gdnative. Looks like the github desktop client handles the submodules for you. The piece I was missing was

cd godot-cpp
scons platform=windows generate_bindings=yes bits=64 -j8
cd ..

After running that command module built successfully.

@CaptainProton42
Copy link
Owner

Added better instructions to the README in 0baea32!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants