Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gz-rendering: Text geometry #1476

Open
azeey-test opened this issue Aug 29, 2024 · 2 comments
Open

gz-rendering: Text geometry #1476

azeey-test opened this issue Aug 29, 2024 · 2 comments

Comments

@azeey-test
Copy link
Collaborator

Configuration

  • os: Windows

Links

Process

Step 1 - Instructions work

Step 2 - Images (if there are any) match the result

@j-rivero
Copy link
Contributor

Build is broken on Windows:

cl : command line  error D8021: invalid numeric argument '/Wno-deprecated-declarations' [C:\Users\josel\code\conda\gz
-ws\src\gz-rendering\examples\text_geom\build\text_geom.vcxproj]
Done Building Project "C:\Users\josel\code\conda\gz-ws\src\gz-rendering\examples\text_geom\build\text_geom.vcxproj" (
default targets) -- FAILED.

Easy to fix. But more problems with compilation exists:

index 7149d1df..292db5de 100644
--- a/examples/text_geom/Main.cc
+++ b/examples/text_geom/Main.cc
@@ -18,7 +18,7 @@
 #if defined(__APPLE__)
   #include <OpenGL/gl.h>
   #include <GLUT/glut.h>
-#elif not defined(_WIN32)
+#else
   #include <GL/glew.h>
   #include <GL/gl.h>

At the end the executable works but display a black screen instead of the "Hello World" example. The GlutWindow.cc has some empty conditionals for WIN32 so I'm afraid that this probably not going to work out-of-the-box.

@j-rivero j-rivero added the bug Something isn't working label Sep 12, 2024
@azeey
Copy link
Contributor

azeey commented Sep 13, 2024

Can you try including windows.h before the gl includes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants