• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Can't build games on Windows. OpenGL not found.

grant

Member
CX Code Contributor
3rd Party Module Dev
3rd Party Tool Dev
Joined
Nov 19, 2019
Messages
80
Hi,

I am having a hard time building projects on Windows.

The Android, HTML, and Mac targets are working good on my Mac computer. I'm having a hard time with Linux, but I'll make another thread for that later.

The first time I run Ted I get this message. This only happens once.

windows-first-start-error.png


Here is the log when I try to build the mojo2 helloworld example with Glfw3. I've tried building projects on a Windows 10 laptop and two virtual machines (Windows 10 and 8.1.) All are 64-bit. The Windows 10 laptop often times has problems with apps not finding OpenGL (especially Java apps), but I've never had any problems like this on the virtual machines.

Code:
"C:/Users/Grant/Downloads/cerberus-v2019-10-13/Cerberus/bin/transcc_winnt" -target=Desktop_Game_(Glfw3) -config=Release -run "C:/Users/Grant/Downloads/cerberus-v2019-10-13/Cerberus/examples/mojo2/helloworld/helloworld.cxs"
TRANS cerberus compiler V2019-10-13
Parsing...
Semanting...
Translating...
Building...
Copied openal32.dll to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
Copied openal32_COPYING to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
Copied openal32_LICENCE to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
Copied libcurl.dll to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
Copied libcrypto-1_1-x64.dll to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
Copied libssl-1_1-x64.dll to C:\Users\Grant\Downloads\cerberus-v2019-10-13\Cerberus\examples\mojo2\helloworld\helloworld.buildv2019-10-13\glfw3\gcc_winnt\Release64
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/context.o ../glfw3/src/context.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/egl_context.o ../glfw3/src/egl_context.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/init.o ../glfw3/src/init.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/input.o ../glfw3/src/input.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/monitor.o ../glfw3/src/monitor.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/osmesa_context.o ../glfw3/src/osmesa_context.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/vulkan.o ../glfw3/src/vulkan.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/wgl_context.o ../glfw3/src/wgl_context.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_init.o ../glfw3/src/win32_init.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_joystick.o ../glfw3/src/win32_joystick.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_monitor.o ../glfw3/src/win32_monitor.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_time.o ../glfw3/src/win32_time.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_thread.o ../glfw3/src/win32_thread.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/win32_window.o ../glfw3/src/win32_window.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/window.o ../glfw3/src/window.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/stb_vorbis.o ../stb/stb_vorbis.c
gcc  -m64  -O3 -DNDEBUG -Wno-free-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/stb_image.o ../stb/stb_image.c
windres ../resource.rc -o build/Release64/resource.o
g++  -m64  -O3 -DNDEBUG -Wno-freTRANS FAILED: Error executing 'CerberusGame', return code=3
e-nonheap-object -I../curl/include -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Release64/main.o ../main.cpp
g++ -m64  -s -LC:/Users/Grant/Downloads/cerberus-v2019-10-13/Cerberus/libs/Win64 -Wl,--subsystem,windows -o Release64/CerberusGame build/Release64/context.o build/Release64/egl_context.o build/Release64/init.o build/Release64/input.o build/Release64/monitor.o build/Release64/osmesa_context.o build/Release64/vulkan.o build/Release64/wgl_context.o build/Release64/win32_init.o build/Release64/win32_joystick.o build/Release64/win32_monitor.o build/Release64/win32_time.o build/Release64/win32_thread.o build/Release64/win32_window.o build/Release64/window.o build/Release64/stb_vorbis.o build/Release64/stb_image.o build/Release64/resource.o build/Release64/main.o -lcomdlg32 -lgdi32 -lopengl32 -lopenal32 -lws2_32
GLFW Error: err=65542, msg=WGL: The driver does not appear to support OpenGL
glfwCreateWindow FAILED!
Done.

When I try to build with Glfw3+Angle I get this log.
Code:
"C:/Users/Grant/Downloads/cerberus-v2019-10-13/Cerberus/bin/transcc_winnt" -target=Desktop_Game_(Glfw3+Angle) -config=Release -run "C:/Users/Grant/Downloads/cerberus-v2019-10-13/Cerberus/examples/mojo2/helloworld/helloworld.cxs"
TRANS cerberus compiler V2019-10-13
Parsing...
Semanting...
Translating...
Building...
'""' is not recognized as an internal or external command,
operable program or batch file.
TRANS FAILED: Error executing '"" /p:Configuration=Release', return code=1
Done.
 
Seems your system doesn't support OpenGl(Es) 2. Besides installing the current video drivers, there is currently nothing more you can do on your windows machine.

I plan to switch to a different render backend next year. And a different IDE.
 
I installed Mesa 3d on my Win10 laptop and virtual machine and now Glfw3 works.

I got Glfw3+Angle working on the laptop after changing two lines in Cerberus/bin/config.winnt.txt.

Old Lines:
Code:
'MSBUILD_PATH="C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"
MSBUILD_PATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
New Lines:
Code:
MSBUILD_PATH="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
'MSBUILD_PATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"

Is there any advantage to using Angle?
 
Angle translates opengl to directx. It usually is a little slower i think, because of the extra layer.
 
Back
Top Bottom