Compiling libigl on Ubuntu

#Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
libgl1-mesa-dev

#The RandR library and headers were not found
libxrandr-dev

#The Xinerama library and headers were not found
libxinerama-dev(Ubuntu 16.04)
#The Xcursor libraries and headers were not found
libxcursor-dev

#Fatal error: gl/glut.h: no such file or directory
sudo apt-get install freeglut3-dev

#/usr/bin/ld: cannot find -lXi
#collect2: error: ld returned 1 exit status
libxi-dev

#/usr/bin/ld: cannot find -lXxf86vm
libxxf86vm-dev
#For Windows
Error 66 error C2440: ‘=’ : cannot convert from ‘char *’ to ‘LPWSTR’ d:\meshediting\libigl-example-project\include\igl\file_dialog_open.cpp 50
—Now go into the project settings and change using Unicode to multi-byte character set and see if it still compiles.
Error 86 error C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\meshediting\testlibigl\include\igl\writeobj.cpp 27

— This is not an error, it is a warning from your Microsoft compiler.
Select your project and click “Properties” in the context menu.
In the dialog, chose Configuration Properties -> C/C++ -> Preprocessor

In the field PreprocessorDefinitions add ;_CRT_SECURE_NO_WARNINGS to turn those warnings off.

error LNK 2019 glBindTexture

—-glBindTexture is a “core” OpenGL feature. This function resides in opengl32.dll, so just add the opengl32.lib to your linker input.

error lnk2019 _glfwInit

—–error lnk2019 glewinit
glew32.lib
glfw3.lib

error C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

—c++/c -> preprocessor
_CRT_SECURE_NO_WARNINGS
Linker => input => ignore specific default library
libcmt.lib;libcmtd.lib

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol nvgDeleteGL3 MyMeshEditing D:\MeshEditing\MyMeshEditing\MyMeshEditing\main.obj 1
———–add library ‘nanogui.lib’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s