Glfw3+Angle

Monkey Targets Forums/Desktop/Glfw3+Angle

Wiering(Posted 2015) [#1]
This target works well for mojo2 stuff, but when I try to build anything that uses mojo, I get the following errors (while glfw3 target works fine):


"D:/Monkey/bin/transcc_winnt.exe" -target=Desktop_Game_(Glfw3+Angle) -config=Release -run "D:/Monkey/test/stars.monkey"
TRANS monkey compiler V1.85
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine version 14.0.22823.1
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 30/06/2015 01:51:20.
Project "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Win32".
Project "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.sln" (1) is building "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
Touching "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\build\Release\MonkeyGame.tlog\unsuccessfulbuild".
ClCompile:
All outputs are up-to-date.
D:\Programs\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /I../angle/include /I../stb /I../openal/include /I../glfw3/include /I../glfw3/src /Zi /nologo /W0 /WX- /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /Gm- /EHa /MT /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\build\Release\\" /Fd"D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\build\Release\vc120.pdb" /Gd /TP /analyze- /errorReport:queue /bigobj ..\main.cpp
main.cpp
..\main.cpp(3256): error C2065: 'GL_PROJECTION' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3256): error C3861: 'glMatrixMode': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3257): error C3861: 'glLoadIdentity': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3258): error C3861: 'glOrtho': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3259): error C2065: 'GL_MODELVIEW' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3259): error C3861: 'glMatrixMode': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3260): error C3861: 'glLoadIdentity': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3262): error C2065: 'GL_VERTEX_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3262): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3263): error C3861: 'glVertexPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3265): error C2065: 'GL_TEXTURE_COORD_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3265): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3266): error C3861: 'glTexCoordPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3268): error C2065: 'GL_COLOR_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3268): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3269): error C3861: 'glColorPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
Done Building Project "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.sln" (default target) (1) ->
"D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) ->
..\main.cpp(3256): error C2065: 'GL_PROJECTION' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3256): error C3861: 'glMatrixMode': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3257): error C3861: 'glLoadIdentity': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3258): error C3861: 'glOrtho': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3259): error C2065: 'GL_MODELVIEW' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3259): error C3861: 'glMatrixMode': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3260): error C3861: 'glLoadIdentity': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3262): error C2065: 'GL_VERTEX_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3262): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3263): error C3861: 'glVertexPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3265): error C2065: 'GL_TEXTURE_COORD_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3265): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3266): error C3861: 'glTexCoordPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3268): error C2065: 'GL_COLOR_ARRAY' : undeclared identifier [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3268): error C3861: 'glEnableClientState': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]
..\main.cpp(3269): error C3861: 'glColorPointer': identifier not found [D:\Monkey\test\stars.buildv84b\glfw3_angle\msvc\MonkeyGame.vcxproj]

0 Warning(s)
16 Error(s)

Time Elapsed 00:00:00.80
TRANS FAILED: Error executing '"c:\progra~2\MSBuild\14.0\Bin\MSBuild.exe" /p:Configuration=Release', return code=1
Done.


ImmutableOctet(SKNG)(Posted 2015) [#2]
@Wiering: The ANGLE target is for OpenGL code written with Monkey. The commands causing errors are deprecated/unsupported by modern OpenGL/GLES, and are therefore not supported by ANGLE. You're stuck with the normal GLFW target for code written with the original Mojo.


Wiering(Posted 2015) [#3]
@ImmutableOctet(SKNG), thanks for explaining that.


EdzUp(Posted 2015) [#4]
Maybe a mojo/mojo2 check would be in order so a error is thrown by that target if mojo is tried?


Richard Betson(Posted 2015) [#5]
I was wondering what this error might be. I have been getting it all along versions. Only fails in Glfw+Angle. Same reason? Deprecation?



ImmutableOctet(SKNG)(Posted 2015) [#6]
@Richard Betson: If you're not using the original Mojo's graphical functionality, building shouldn't fail for the reasons in Wiering's post.

Your build is failing because you have a space in the file path. Mark didn't add quotes to the project file for MSVC, so it complains about the path being incorrect when it hits a space. GCC/MinGW obviously won't have this problem. All Mark needs to do is add quotes to the project file. I'll make a bug report about this right now.

EDIT: My bug report can be found here; it explains what's wrong, if you want to fix it yourself.


Richard Betson(Posted 2015) [#7]
Oh wow, OK,

Awesome, and thanks for pointing out what the issue is and reporting it.

Thanks,