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

Make the compiling step more explicit #1088

Open
philippefutureboy opened this issue Oct 4, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@philippefutureboy
Copy link

commented Oct 4, 2017

Hi!

I rarely use cmake/make on my UNIX distributions, and as such I have limited knowledge to how to use said programs. I am a web dev trying to learn WebGL through OpenGL, and the formulation of the step "Compiling the library" on the page Compiling GLFW is a bit obscure.

I suggest that rather than the current:

## Compiling the library
You should now have all required dependencies and the project files or makefiles necessary to compile GLFW. Go ahead and compile the actual GLFW library with these files, as you would with any other project.

...

The following be used:

## Compiling the library
You should now have all required dependencies and the project files or makefiles necessary to compile GLFW. You can now compile the GLFW library with these files. You can generally do so with 

\```
cd <glfw-root-dir>
make install
\```

Cheers! 👍

@felselva

This comment has been minimized.

Copy link
Contributor

commented Oct 4, 2017

Hi, @philippefutureboy, the actual process is explained in the section before, using cmake: http://www.glfw.org/docs/latest/compile_guide.html#compile_generate

mkdir glfw-build
cd glfw-build
cmake <glfw-root-dir>

So, if you downloaded the library to /home/username/glfw, you can make something like:

cd /home/username/glfw
mkdir build
cd ./build
cmake ..
make

The cmake will generate the Makefile based on the CMakeLists.txt that is on the parent directory (that is specified by the ..). Then, after the Makefile is generated, you can build using make. The built library will be in the current directory build/.

@philippefutureboy

This comment has been minimized.

Copy link
Author

commented Oct 5, 2017

Fair point! I suggest then that the use of make be made explicit in the http://www.glfw.org/docs/latest/compile_guide.html#compile_generate section with:

mkdir glfw-build
cd glfw-build
cmake <glfw-root-dir>

being supplemented with make at the end of the code snippet.

Let me know,
Cheers

@elmindreda elmindreda changed the title Documentation: Make the compiling step more explicit Make the compiling step more explicit Oct 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.