-
Notifications
You must be signed in to change notification settings - Fork 2k
Freeglut #5238
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
Freeglut #5238
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
901450a
to
295c7a6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
baa0605
to
9644adc
Compare
This comment has been minimized.
This comment has been minimized.
/* | ||
glutInit(&argc,argv); | ||
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA); | ||
glutInitWindowPosition(100,100); | ||
glutInitWindowSize(320,320); | ||
glutCreateWindow("Lighthouse3D - GLUT Tutorial"); | ||
|
||
// register callbacks | ||
glutDisplayFunc(renderScene); | ||
|
||
// enter GLUT event processing cycle | ||
glutMainLoop();*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this?
/* | |
glutInit(&argc,argv); | |
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA); | |
glutInitWindowPosition(100,100); | |
glutInitWindowSize(320,320); | |
glutCreateWindow("Lighthouse3D - GLUT Tutorial"); | |
// register callbacks | |
glutDisplayFunc(renderScene); | |
// enter GLUT event processing cycle | |
glutMainLoop();*/ | |
glutInit(&argc,argv); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure yet why, but I get a runtime error when calling glutInit
on WSL (it passes on windows), with the following output failed to open display ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WSL is missing the support to run graphics ... the API is there but it fails AFAIK
Been a while since I had this problem, but last time I used the usual headless CI flags to trick it to run from my travis CI scripts doing electron
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
def requirements(self): | ||
self.requires("opengl/system") | ||
self.requires('glu/system') | ||
if self.settings.os == "Linux": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untested. Since you're the BSD specialist, you have the last word on this.
If accepted, this change should probably be applied to other places in this recipe.
if self.settings.os == "Linux": | |
if self.settings.os in ("Linux", "FreeBSD"): |
recipes/freeglut/all/conanfile.py
Outdated
if self.settings.os == "Windows": | ||
if not self.options.shared: | ||
self.cpp_info.components['freeglut_'].defines.append("FREEGLUT_STATIC=1") | ||
self.cpp_info.components['freeglut_'].defines.append("FREEGLUT_LIB_PRAGMAS=0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this macro also required for mingw?
#pragma warning
is only used by msvc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be required for Intel/Clang, not sure about MinGW
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
6b95548
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
All green in build 16 (
|
* add freeglut/3.2.1 this is a port of https://github.com/bincrafters/conan-freeglut * remove useless option * use standard libdirs * fix fpic * disable macos * test package as C project * disable gcc 10 * disable clang 11 too * Apply suggestions from code review Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * set cmake and pkg-config names also, fixup tabs and missing import in test recipe * increase test coverage * fix test * Update recipes/freeglut/all/conanfile.py Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> * Update recipes/freeglut/all/conanfile.py Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> * Update recipes/freeglut/all/conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * freeglut: change download to SourceForge + reformatting * cache cmake Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com> Co-authored-by: Croydon <git@cr0ydon.com>
Specify library name and version: freeglut/3.2.1
this is a port of https://github.com/bincrafters/conan-freeglut
conan-center hook activated.