Deady Online
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Deady Online

Delivering information to the world. You are always welcomed to join!
 
AcasaPortalUltimele imaginiCăutareÎnregistrareConectare

 

 How to set up glew library on codeblocks, and other ide softwares, full guide!

In jos 
AutorMesaj
Oscuridao
Admin



Mesaje : 352
Data de inscriere : 27/08/2011
Varsta : 30
Localizare : Romania

How to set up glew library on codeblocks, and other ide softwares, full guide! Empty
MesajSubiect: How to set up glew library on codeblocks, and other ide softwares, full guide!   How to set up glew library on codeblocks, and other ide softwares, full guide! Icon_minitimeVin Mar 25, 2016 5:00 pm

How to install glew on Codeblocks!

Steps:
1. Download Glew from the internet or from here! (this is win32 version working for all the IDE);
2. Extract it with Winrar!
3. Link it to Codeblocks:
- Open the Codeblocks
After you did that, go to Setting -> Compiler -> Search Directories -> Compiler -> Click ADD -> and Browse for the Extracted Glew Directory/include

Example:
C:\Users\Black2\Desktop\glew-1.6.0\include

- after you select the include directory, click ok.

After you did that, go to Setting -> Compiler -> Search Directories -> Linker -> Click ADD -> and Browse for the Extracted Glew Directory/lib

Example:
C:\Users\Black2\Desktop\glew-1.6.0\lib

-after you select the lib directory, click ok.

After you did that, go to Settings -> Compiler -> Linker Settings -> Link Libraries -> Browse for the Extracted Glew Directory/lib

Example:
C:\Users\Black2\Desktop\glew-1.6.0\lib

- select all the files in there, and then click OK button.

4. Before including glew.h to your source code, be sure you #define GLEW_STATIC

- when you include glew.h you would have to do it as follows:

#define GLEW_STATIC
#include <GL/glew.h>

5. Be sure you copy the content of Extracted Glew Directory/bin in the same place where your executable file is. In order to avoid getting the error glew.dll not found, etc.

Compilation errors:
- if you fail to link glew corectly you will receive compilations errors as follows:

undefined reference to 'glewInit@0'
undefined referece to 'glewInit'
glew.h "No such file in the directory"
undefined reference to '_imp_glewInit()'
etc

Runtime errors:
- if you fail putting the dll files corectly, or if you put another version glew.dll, into your executable folder, you will receive an error as follows:

How to set up glew library on codeblocks, and other ide softwares, full guide! Cbwb610
or

How to set up glew library on codeblocks, and other ide softwares, full guide! 92bpui10

- in order to fix this error you have to install the right glew.dll into your computer, either in WINDOWS/System32 or in the same file with your created executable file.
Sus In jos
https://deady.forumgratuit.ro
 
How to set up glew library on codeblocks, and other ide softwares, full guide!
Sus 
Pagina 1 din 1
 Subiecte similare
-
» Glew errors after linking, undefined reference to function, fixing guide, misplaced files
» How to add c++ 11 support in codeblocks with gnu gcc compiler, guide
» Codeblocks version 16.10 with gnu gcc compiler included and SDL2, glew, opengl, soil, development libraries (download)
» Sdl libraries linking for codeblocks, installation guide
» Glew OpenGL extension wrangler library for mingw ide compilers 32bit windows (download)

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Deady Online :: Others :: Altele!-
Mergi direct la: