[mythtv] OSX Compile fails on has_altivec ld error

David Snider dsnider at thesniderpad.com
Sat Nov 17 04:51:38 UTC 2007


Nigel Pearson wrote:
>> I try not to bother this list with the automated
>> builds, they tend to fix themselves.
>>     
>
> :-) In this case, it took me a while. One more fix: [14880]
>
> That gave me an error-free build on a 10.3.9 G4.
>
>   
OK, downloaded 14883, looks like I'm peeling the onion here... 

g++ -c -pipe -mcpu=7450 -mpowerpc-gfxopt -fomit-frame-pointer -O3 
-faltivec -maltivec -mabi=altivec -Wall -Wno-switch -Wpointer-arith 
-Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS 
-Wno-long-double -I/nobackup/myth/.osx-packager/build/include/freetype2 
-I/nobackup/myth/.osx-packager/build/include 
-F/System/Library/Frameworks/{AGL,ApplicationServices,Carbon,Cocoa,OpenGL,QuickTime}.framework/Frameworks 
-F/System/Library/PrivateFrameworks/{DVD}.framework/Frameworks 
-F/Developer/FireWireSDK23/Examples/Framework -fno-inline-functions 
-DPIC -fPIC  -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-DPREFIX=\"/nobackup/myth/.osx-packager/build\" 
-DLIBDIR=\"/nobackup/myth/.osx-packager/build/lib\" -D_LARGEFILE_SOURCE 
-DUSING_H264TOOLS -DUSING_OPENGL -DUSING_FRONTEND -DUSING_OSX_FIREWIRE 
-DUSING_FIREWIRE -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN 
-DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 
-DQT_ACCESSIBILITY_SUPPORT 
-I/nobackup/myth/.osx-packager/build/mkspecs/default -I. 
-I../../../../../build/include -I../../../../../build/include -I../.. 
-I.. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 
-Idvbdev -Impeg -Iiptv 
-I../libmythlivemedia/BasicUsageEnvironment/include 
-I../libmythlivemedia/groupsock/include 
-I../libmythlivemedia/liveMedia/include 
-I../libmythlivemedia/UsageEnvironment/include 
-I/nobackup/myth/.osx-packager/build/include 
-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers 
-I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -o 
util-opengl.o util-opengl.cpp
In file included from util-opengl.cpp:3:
util-opengl.h:13:20: error: GL/glx.h: No such file or directory
util-opengl.h:14:20: error: GL/glu.h: No such file or directory
util-opengl.h:81: error: 'XID' does not name a type
util-opengl.h: In function 'int __glCheck__(const QString&, const char*, 
int)':
util-opengl.h:86: error: 'glGetError' was not declared in this scope
util-opengl.h:89: error: 'gluErrorString' was not declared in this scope
util-opengl.h: At global scope:
util-opengl.h:97: error: 'Display' was not declared in this scope
util-opengl.h:97: error: 'XJ_disp' was not declared in this scope
util-opengl.h:97: error: expected primary-expression before '&' token
util-opengl.h:97: error: 'major' was not declared in this scope
util-opengl.h:97: error: expected primary-expression before '&' token
util-opengl.h:97: error: 'minor' was not declared in this scope
util-opengl.h:97: error: initializer expression list treated as compound 
expression
util-opengl.h:105: error: 'GLXFBConfig' does not name a type
util-opengl.h:108: error: 'GLXPbuffer' does not name a type
util-opengl.h:112: error: 'Window' does not name a type
util-opengl.h:118: error: 'GLXWindow' does not name a type
util-opengl.h:131: error: '__GLXextFuncPtr' does not name a type
util-opengl.h:141: error: 'PFNGLGENPROGRAMSARBPROC' does not name a type
util-opengl.h:142: error: 'PFNGLBINDPROGRAMARBPROC' does not name a type
util-opengl.h:143: error: 'PFNGLPROGRAMSTRINGARBPROC' does not name a type
util-opengl.h:144: error: 'PFNGLPROGRAMENVPARAMETER4FARBPROC' does not 
name a type
util-opengl.h:145: error: 'PFNGLDELETEPROGRAMSARBPROC' does not name a type
util-opengl.h:146: error: 'PFNGLGETPROGRAMIVARBPROC' does not name a type
util-opengl.h:151: error: typedef 'MYTH_GLGENFRAMEBUFFERSEXTPROC' is 
initialized (use __typeof__ instead)
util-opengl.h:151: error: 'GLsizei' was not declared in this scope
util-opengl.h:151: error: 'GLuint' was not declared in this scope
util-opengl.h:151: error: 'framebuffers' was not declared in this scope
util-opengl.h:153: error: typedef 'MYTH_GLBINDFRAMEBUFFEREXTPROC' is 
initialized (use __typeof__ instead)
util-opengl.h:153: error: 'GLenum' was not declared in this scope
util-opengl.h:153: error: 'GLuint' was not declared in this scope
util-opengl.h:155: error: typedef 'MYTH_GLFRAMEBUFFERTEXTURE2DEXTPROC' 
is initialized (use __typeof__ instead)
util-opengl.h:155: error: 'GLenum' was not declared in this scope
util-opengl.h:155: error: 'GLenum' was not declared in this scope
util-opengl.h:155: error: 'GLenum' was not declared in this scope
util-opengl.h:156: error: 'GLuint' was not declared in this scope
util-opengl.h:156: error: 'GLint' was not declared in this scope
util-opengl.h:157: error: ISO C++ forbids declaration of 'GLenum' with 
no type
util-opengl.h:157: error: typedef 'GLenum' is initialized (use 
__typeof__ instead)
util-opengl.h:157: error: 'MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC' was not 
declared in this scope
util-opengl.h:158: error: expected ',' or ';' before '(' token
util-opengl.h:160: error: typedef 'MYTH_GLDELETEFRAMEBUFFERSEXTPROC' is 
initialized (use __typeof__ instead)
util-opengl.h:160: error: 'GLsizei' was not declared in this scope
util-opengl.h:160: error: expected primary-expression before 'const'
util-opengl.h:165: error: 'MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC' does 
not name a type
util-opengl.h:168: error: 'PFNGLXGETVIDEOSYNCSGIPROC' does not name a type
util-opengl.h:169: error: 'PFNGLXWAITVIDEOSYNCSGIPROC' does not name a type
util-opengl.cpp:6: error: 'PFNGLGENPROGRAMSARBPROC' does not name a type
util-opengl.cpp:7: error: 'PFNGLBINDPROGRAMARBPROC' does not name a type
util-opengl.cpp:8: error: 'PFNGLPROGRAMSTRINGARBPROC' does not name a type
util-opengl.cpp:9: error: 'PFNGLPROGRAMENVPARAMETER4FARBPROC' does not 
name a type
util-opengl.cpp:10: error: 'PFNGLDELETEPROGRAMSARBPROC' does not name a type
util-opengl.cpp:11: error: 'PFNGLGETPROGRAMIVARBPROC' does not name a type
util-opengl.cpp:16: error: 'MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC' does 
not name a type
util-opengl.cpp:19: error: 'PFNGLXGETVIDEOSYNCSGIPROC' does not name a type
util-opengl.cpp:20: error: 'PFNGLXWAITVIDEOSYNCSGIPROC' does not name a type
util-opengl.cpp: In function 'bool init_opengl()':
util-opengl.cpp:33: error: 'gMythGLGenProgramsARB' was not declared in 
this scope
util-opengl.cpp:33: error: 'PFNGLGENPROGRAMSARBPROC' was not declared in 
this scope
util-opengl.cpp:34: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:35: error: 'gMythGLBindProgramARB' was not declared in 
this scope
util-opengl.cpp:35: error: 'PFNGLBINDPROGRAMARBPROC' was not declared in 
this scope
util-opengl.cpp:36: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:37: error: 'gMythGLProgramStringARB' was not declared in 
this scope
util-opengl.cpp:37: error: 'PFNGLPROGRAMSTRINGARBPROC' was not declared 
in this scope
util-opengl.cpp:38: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:39: error: 'gMythGLProgramEnvParameter4fARB' was not 
declared in this scope
util-opengl.cpp:39: error: 'PFNGLPROGRAMENVPARAMETER4FARBPROC' was not 
declared in this scope
util-opengl.cpp:40: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:41: error: 'gMythGLDeleteProgramsARB' was not declared 
in this scope
util-opengl.cpp:41: error: 'PFNGLDELETEPROGRAMSARBPROC' was not declared 
in this scope
util-opengl.cpp:42: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:43: error: 'gMythGLGetProgramivARB' was not declared in 
this scope
util-opengl.cpp:43: error: 'PFNGLGETPROGRAMIVARBPROC' was not declared 
in this scope
util-opengl.cpp:44: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:47: error: 'get_gl_proc_address' was not declared in 
this scope
util-opengl.cpp:52: error: 'gMythGLCheckFramebufferStatusEXT' was not 
declared in this scope
util-opengl.cpp:53: error: 'MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC' was 
not declared in this scope
util-opengl.cpp:54: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:58: error: 'gMythGLXGetVideoSyncSGI' was not declared in 
this scope
util-opengl.cpp:58: error: 'PFNGLXGETVIDEOSYNCSGIPROC' was not declared 
in this scope
util-opengl.cpp:59: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp:60: error: 'gMythGLXWaitVideoSyncSGI' was not declared 
in this scope
util-opengl.cpp:60: error: 'PFNGLXWAITVIDEOSYNCSGIPROC' was not declared 
in this scope
util-opengl.cpp:61: error: expected `;' before 'get_gl_proc_address'
util-opengl.cpp: At global scope:
util-opengl.cpp:66: error: redefinition of 'bool get_glx_version'
util-opengl.h:97: error: 'bool get_glx_version' previously defined here
util-opengl.cpp:66: error: 'Display' was not declared in this scope
util-opengl.cpp:66: error: 'XJ_disp' was not declared in this scope
util-opengl.cpp:66: error: expected primary-expression before '&' token
util-opengl.cpp:66: error: 'major' was not declared in this scope
util-opengl.cpp:66: error: expected primary-expression before '&' token
util-opengl.cpp:66: error: 'minor' was not declared in this scope
util-opengl.cpp: In function 'const int* get_attr_cfg(FrameBufferType)':
util-opengl.cpp:116: error: 'GLX_CONFIG_CAVEAT' was not declared in this 
scope
util-opengl.cpp:116: error: 'GLX_NONE' was not declared in this scope
util-opengl.cpp:117: error: 'GLX_RENDER_TYPE' was not declared in this scope
util-opengl.cpp:117: error: 'GLX_RGBA_BIT' was not declared in this scope
util-opengl.cpp:118: error: 'GLX_RED_SIZE' was not declared in this scope
util-opengl.cpp:119: error: 'GLX_GREEN_SIZE' was not declared in this scope
util-opengl.cpp:120: error: 'GLX_BLUE_SIZE' was not declared in this scope
util-opengl.cpp:121: error: 'GLX_DOUBLEBUFFER' was not declared in this 
scope
util-opengl.cpp:122: error: 'GLX_STEREO' was not declared in this scope
util-opengl.cpp:123: error: 'GLX_LEVEL' was not declared in this scope
util-opengl.cpp:124: error: 'GLX_DRAWABLE_TYPE' was not declared in this 
scope
util-opengl.cpp:124: error: 'GLX_PBUFFER_BIT' was not declared in this scope
util-opengl.cpp:124: error: 'GLX_WINDOW_BIT' was not declared in this scope
util-opengl.cpp:125: error: 'GLX_X_VISUAL_TYPE' was not declared in this 
scope
util-opengl.cpp:125: error: 'GLX_TRUE_COLOR' was not declared in this scope
util-opengl.cpp:126: error: 'None' was not declared in this scope
util-opengl.cpp:131: error: 'GLX_RGBA' was not declared in this scope
util-opengl.cpp: At global scope:
util-opengl.cpp:151: error: 'GLXFBConfig' does not name a type
util-opengl.cpp:188: error: 'GLXPbuffer' does not name a type
util-opengl.cpp:210: error: 'Window' does not name a type
util-opengl.cpp:236: error: 'GLXWindow' does not name a type
util-opengl.cpp: In function 'void copy_pixels_to_texture(const unsigned 
char*, int, const QSize&, int, int)':
util-opengl.cpp:276: error: 'glBindTexture' was not declared in this scope
util-opengl.cpp:282: error: 'GL_LUMINANCE' was not declared in this scope
util-opengl.cpp:285: error: 'GL_RGB' was not declared in this scope
util-opengl.cpp:288: error: 'GL_RGBA' was not declared in this scope
util-opengl.cpp:291: error: 'GL_ALPHA' was not declared in this scope
util-opengl.cpp:301: error: 'GL_UNSIGNED_BYTE' was not declared in this 
scope
util-opengl.cpp:302: error: 'glTexSubImage2D' was not declared in this scope
util-opengl.cpp: At global scope:
util-opengl.cpp:305: error: '__GLXextFuncPtr' does not name a type
util-opengl.cpp: In function 'bool has_gl_fbuffer_object_support(const 
QString&)':
util-opengl.cpp:345: error: 'gMythGLCheckFramebufferStatusEXT' was not 
declared in this scope
util-opengl.cpp: In function 'bool has_gl_fragment_program_support(const 
QString&)':
util-opengl.cpp:355: error: 'gMythGLGenProgramsARB' was not declared in 
this scope
util-opengl.cpp:356: error: 'gMythGLBindProgramARB' was not declared in 
this scope
util-opengl.cpp:357: error: 'gMythGLProgramStringARB' was not declared 
in this scope
util-opengl.cpp:358: error: 'gMythGLDeleteProgramsARB' was not declared 
in this scope
util-opengl.cpp:359: error: 'gMythGLGetProgramivARB' was not declared in 
this scope
util-opengl.cpp:360: error: 'gMythGLProgramEnvParameter4fARB' was not 
declared in this scope
util-opengl.cpp: In function 'bool has_glx_video_sync_support(const 
QString&)':
util-opengl.cpp:370: error: 'gMythGLXGetVideoSyncSGI' was not declared 
in this scope
util-opengl.cpp:370: error: 'gMythGLXWaitVideoSyncSGI' was not declared 
in this scope
make[2]: *** [util-opengl.o] Error 1
make[1]: *** [sub-libmythtv] Error 2
make: *** [sub-libs] Error 2
[osx-pkg] Failed system call: " /usr/bin/make  " with error code 2
Died at /tmp/OSX/osx-packager.pl line 905.

I did a simple locate glx.h and found the following references:
$ locate glx.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/GL/glx.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/GL/glx.h
sr/X11R6/include/GL/glx.h


More information about the mythtv-dev mailing list