On Thu, Sep 16, 2010 at 1:02 PM, G E Naganna <[email protected]> wrote:
> Hi all,
>
>           I am not able to generate GLEW libraries from MinGW-w64.  I did
> not find Makefile.mingw64 in config folder so I compiled by using Msys. I
> am getting following error.
>
>     gcc -O2 -Wall -W -Iinclude  -DGLEW_BUILD -o src/glew.o -c src/glew.c In
> file included from src/glew.c:32:
>
> include/GL/glew.h:154: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'ptrdiff_t'
>
> In file included from src/glew.c:32:
>
> include/GL/glew.h:1637: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'GLsizeiptr'
>
> include/GL/glew.h:1638: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'GLintptr'
>
> include/GL/glew.h:1642: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:1643: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:1643: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:1651: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:1651: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:2745: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:2745: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:3063: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:3063: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:3063: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:3823: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:3823: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:3824: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:3824: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:5259: error: expected declaration specifiers or '...'
> before 'GLintptr'
>
> include/GL/glew.h:5259: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:5465: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'GLsizeiptrARB'
>
> include/GL/glew.h:5466: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'GLintptrARB'
>
> include/GL/glew.h:5469: error: expected declaration specifiers or '...'
> before 'GLsizeiptrARB'
>
> include/GL/glew.h:5470: error: expected declaration specifiers or '...'
> before 'GLintptrARB'
>
> include/GL/glew.h:5470: error: expected declaration specifiers or '...'
> before 'GLsizeiptrARB'
>
> include/GL/glew.h:5475: error: expected declaration specifiers or '...'
> before 'GLintptrARB'
>
> include/GL/glew.h:5475: error: expected declaration specifiers or '...'
> before 'GLsizeiptrARB'
>
> include/GL/glew.h:6511: error: expected declaration specifiers or '...'
> before '*' token
>
> include/GL/glew.h:6511: warning: type defaults to 'int' in declaration of
> 'GLintptr'
>
> include/GL/glew.h:6511: error: 'GLintptr' declared as function returning a
> function In file included from src/glew.c:32:
>
> include/GL/glew.h:6858: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:6885: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:6908: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:6953: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:6954: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:6955: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:8907: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:10937: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:11008: error: 'PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC'
> declared as function returning a function
>
> include/GL/glew.h:11009: error: 'PFNGLVDPAUREGISTERVIDEOSURFACENVPROC'
> declared as function returning a function
>
> include/GL/glew.h:11144: error: expected declaration specifiers or '...'
> before 'GLsizeiptr'
>
> include/GL/glew.h:13717: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '__glewGetUniformOffsetEXT'
>
> src/glew.c:1285: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '__glewGetUniformOffsetEXT'
>
> src/glew.c: In function '_glewInit_GL_EXT_bindable_uniform':
>
> src/glew.c:5062: error: '__glewGetUniformOffsetEXT' undeclared (first use in
> this function)
>
> src/glew.c:5062: error: (Each undeclared identifier is reported only once
>
> src/glew.c:5062: error: for each function it appears in.)
>
> src/glew.c:5062: error: 'PFNGLGETUNIFORMOFFSETEXTPROC' undeclared (first use
> in this function)
>
> src/glew.c:5062: error: expected ')' before 'wglGetProcAddress'
>
> make: *** [src/glew.o] Error 1
>
>
> Steps followed to compile GLEW code
>
> 1. Downloaded glew-1.5.6-win32.zip from
> https://sourceforge.net/projects/glew/
>
> 2.  Open  command window (start -> Run and type cmd.exe ) 3.  Add MinGW bins
> to PATH like as follows
>
>          set PATH=C:\MinGW64\bin;C:\MinGW\msys\1.0\bin;%PATH%
>
> 4. Move to GLEW source code
>
> 5. Make
>
>
>     Could anybody please help me to fix the problem?  I am on XP64, SP1.
>
>
>
> Thanks and Regards
>
> G E Naganna
>

That glew.h header is trying to do all things by itself.  AFAICS, the heart of
the problem lies in the definition of ptrdiff_t type at line 154 where it uses
__int64 but without including any headers defining __int64 for mingw case.
At line 154, replace "__int64" by "long long" and see how things go.

--
Ozkan

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to