install OpenGL module

211 views
Skip to first unread message

Yi Zhong

unread,
Mar 29, 2020, 4:31:01 PM3/29/20
to ProjectChrono
Hi, I am new to Chrono and cmake. I would like to install OpenGL module, but I didn't know how to add GLEW and GLFW libraries. I tried to set all the values for GLM_..., GLEW_..., GLFW_... to proper directory / file values. However, I found there are two .lib file for GLEW and GLFW. 
I really appreciate it if anyone could help me with this issue.
cmake.PNG

Radu Serban

unread,
Mar 30, 2020, 3:52:54 AM3/30/20
to projec...@googlegroups.com

For Windows, if you haven't done so already, I recommend obtaining the pre-compiled libraries (64-bit) for GLEW and GLFS.  GLM is headers-only, so no issues there.

Here are the relevant entries in my CMakeCache.txt.  You will need to adjust accordingly, based on where you placed your various packages. Note that I am using older versions of these packages.  Please let us know if you encounter issues with the newer releases.

/The GLEW DLL
GLEW_DLL:FILEPATH=C:/Users/udarn/Packages/glew-1.13.0/bin/Release/x64/glew32.dll

//The directory where GL/glew.h resides
GLEW_INCLUDE_DIR:PATH=C:/Users/udarn/Packages/glew-1.13.0/include

//The GLEW library
GLEW_LIBRARY:FILEPATH=C:/Users/udarn/Packages/glew-1.13.0/lib/Release/x64/glew32.lib

//The GLFW DLL
GLFW_DLL:FILEPATH=C:/Users/udarn/Packages/glfw-3.1.1/lib-vc2013/glfw3.dll

//Path to GLFW include directory.
GLFW_INCLUDE_DIR:PATH=C:/Users/udarn/Packages/glfw-3.1.1/include/GLFW

//Absolute path to GLFW library.
GLFW_LIBRARY:FILEPATH=C:/Users/udarn/Packages/glfw-3.1.1/lib-vc2013/glfw3dll.lib

//Path to a file.
GLM_INCLUDE_DIR:PATH=C:/Users/udarn/Packages/glm-0.9.7.1

Hope that this helps.  When I get a chance, I will add more details on this on the installation documentation page for Chrono::OpenGL.
Radu


On 3/29/2020 10:31 PM, Yi Zhong wrote:
Hi, I am new to Chrono and cmake. I would like to install OpenGL module, but I didn't know how to add GLEW and GLFW libraries. I tried to set all the values for GLM_..., GLEW_..., GLFW_... to proper directory / file values. However, I found there are two .lib file for GLEW and GLFW. 
I really appreciate it if anyone could help me with this issue.
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/cefcd0cf-c4c9-4117-b13c-075ff6d88b78%40googlegroups.com.

Yi Zhong

unread,
Mar 30, 2020, 1:26:07 PM3/30/20
to ProjectChrono
Thanks for your response. It worked in during Chrono installation. However, when I was trying to build some projects, it shows 

Library 'ChronoEngine_mkl' in package Chrono is not installed properly

Library 'ChronoEngine_opengl' in package Chrono is not installed properly

DLL 'ChronoEngine_mkl.dll' in package Chrono is not installed properly

DLL 'ChronoEngine_opengl.dll' in package Chrono is not installed properly

By the way, I am using the newest releases. GLEW 2.2.2, GLFW 3.3.2, and MKL 2020.
To unsubscribe from this group and stop receiving emails from it, send an email to projec...@googlegroups.com.

Yi Zhong

unread,
Mar 30, 2020, 1:35:03 PM3/30/20
to ProjectChrono
sorry, it's GLEW 2.2.0.
Reply all
Reply to author
Forward
0 new messages