nmwsharp / polyscope

A C++ & Python viewer for 3D data like meshes and point clouds
https://polyscope.run
MIT License
1.76k stars 190 forks source link

Help! The directory "glfw" in the subdirectory"deps" is empty #248

Closed NoError404 closed 8 months ago

NoError404 commented 8 months ago

The directory "glfw" in the subdirectory"deps" is empty. Every time, I run cmake ../ in build directory. The WLS terminal shows image I'm new in sourecode project.

ymclsh commented 7 months ago

@NoError404 hello, I met the same issue, how did you solve it? Thanks.

NoError404 commented 7 months ago

@ymclsh First,u may download the source code of glfw, and put those code into the directory 'deps'. Then to compile them. U may google the way to compile the glfw.

ymclsh commented 7 months ago

@NoError404 Thank you so much.

nmwsharp commented 7 months ago

FYI, this problem probably stems from failing to clone submodules.

GLFW (and other dependencies) are managed as git submodules. Submodules allow a git repository to have subdirectories which are themselves references to other separate git repositories. However, it take extra commands to ensure that these subdirectories are populated.

If you clone the project like git clone --recursive ... it should automatically download all of the submodules, but if you forget the --recursive flag you will be left with empty subdirectories. If you forgot the flag initially, you can later run git submodule update --init --recursive to download them.

If you are using a GUI or IDE for git, look around for a button or option that says something about submodules.