| Summary: | kstars uses incorrect include file for OpenGL | ||
|---|---|---|---|
| Product: | [Applications] kstars | Reporter: | Marko Käning <mk-lists> |
| Component: | general | Assignee: | Akarsh Simha <akarsh.simha> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | normal | CC: | mutlaqja, snc |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | MacPorts | ||
| OS: | macOS | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Proposed patch
patch to find OpenGL header files |
||
|
Description
Marko Käning
2011-08-02 18:02:27 UTC
See http://trac.macports.org/ticket/30512 for reference. Created attachment 62556 [details]
Proposed patch
Could you check if this fixes the issue?
Sorry, it didn't work. From the CMakeCache file:
{{{
//Path to a file.
KDE4_PLASMA_OPENGL_FOUND:FILEPATH=/opt/local/include/plasma/glapplet.h
//Include for OpenGL on OSX
OPENGL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenGL.framework
//OpenGL lib for OSX
OPENGL_gl_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenGL.framework
}}}
Inside this OpenGL.framework is:
{{{
$ ls -l /System/Library/Frameworks/OpenGL.framework/
total 48
lrwxr-xr-x 1 root wheel 24 Dec 4 2010 CodeResources -> Versions/A/CodeResources
lrwxr-xr-x 1 root wheel 24 Jun 3 16:34 Headers -> Versions/Current/Headers
lrwxr-xr-x 1 root wheel 26 Dec 4 2010 Libraries -> Versions/Current/Libraries
lrwxr-xr-x 1 root wheel 23 Dec 4 2010 OpenGL -> Versions/Current/OpenGL
lrwxr-xr-x 1 root wheel 24 Jun 3 16:33 PlugIns -> Versions/Current/PlugIns
lrwxr-xr-x 1 root wheel 26 Dec 4 2010 Resources -> Versions/Current/Resources
drwxr-xr-x 4 root wheel 136 Dec 4 2010 Versions
}}}
This gives us this path to finding gl.h:
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h
Similarly, these other variables are set in the CmakeCache:
{{{
//Path to a file.
QT_QTOPENGL_INCLUDE_DIR:PATH=/opt/local/include/QtOpenGL
//Path to a library.
QT_QTOPENGL_LIBRARY_DEBUG:FILEPATH=QT_QTOPENGL_LIBRARY_DEBUG-NOTFOUND
//Path to a library.
QT_QTOPENGL_LIBRARY_RELEASE:FILEPATH=/opt/local/lib/libQtOpenGL.dylib
}}}
There is a fix for MacOSX finally. See http://trac.macports.org/changeset/85854 for reference. I'll attach the patch herewith. Created attachment 64640 [details]
patch to find OpenGL header files
|