On Thu, Mar 25, 2010 at 11:36 PM, Hugo Parente Lima
<[email protected]> wrote:
> Ok, now the next step... find a *non verbose* way to set these flags only when
> compiling on linux and under GCC.
GCC should work in the same manner on Linux and the FreeBSD and
others, so there is no need for this magic.
The linker error here is caused by two linkers present in the FreeBSD:
1. ld 2.15 located at /usr/bin/ld - system base
2. ld 2.20 located at /usr/local/bin/ld - part of the binutils-2.20
package - this one should be used to build
The first linker is being used instead of the second one. I have
changed the CMakeCache.txt file but still build uses the first linker
(probably forced by /usr/bin/c++). If I rename /usr/bin/ld the second
linker is being used and build goes fine with default CMakeList.txt,
but this not the solution. The question is - how to force using the
second linker?
>> Soon I will let you know the result, thank you! :-)
There are some errors in the QtOpenGL section, caused by improper
header include I think (all includes are in place):
cd# make
[ 1%] Built target pyside
[ 19%] Built target QtCore
[ 79%] Built target QtGui
[ 85%] Built target QtNetwork
[ 88%] Built target QtWebKit
[ 89%] Built target QtSvg
[ 95%] Built target QtXml
[ 96%] Built target QtTest
[ 96%] Building CXX object
PySide/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide/QtOpenGL/qgl_wrapper.cpp.o
In file included from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/pyside_qtopengl_python.h:55,
from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/qgl_wrapper.cpp:29:
/usr/local/include/qt4/QtOpenGL/qgl.h:75:20: error: GL/gl.h: No such
file or directory
/usr/local/include/qt4/QtOpenGL/qgl.h:77:23: error: GL/glu.h: No such
file or directory
In file included from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/pyside_qtopengl_python.h:55,
from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/qgl_wrapper.cpp:29:
/usr/local/include/qt4/QtOpenGL/qgl.h:290: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:292: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:294: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:296: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:298: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:298: error: 'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:299: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:299: error: 'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:298: error: 'GL_TEXTURE_2D' was
not declared in this scope
/usr/local/include/qt4/QtOpenGL/qgl.h:299: error: 'GL_TEXTURE_2D' was
not declared in this scope
/usr/local/include/qt4/QtOpenGL/qgl.h:446: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:448: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:450: error: 'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qgl.h:452: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:454: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:454: error: 'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:455: error: 'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:455: error: 'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qgl.h:454: error: 'GL_TEXTURE_2D' was
not declared in this scope
/usr/local/include/qt4/QtOpenGL/qgl.h:455: error: 'GL_TEXTURE_2D' was
not declared in this scope
In file included from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/pyside_qtopengl_python.h:59,
from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/qgl_wrapper.cpp:29:
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:66: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:67: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:70: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:70: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:72: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:72: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:96: error:
'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:102: error:
'GLuint' does not name a type
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:106: error:
'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:106: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:107: error:
'GLuint' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:107: error:
'GLenum' has not been declared
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:66: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:67: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:70: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:70: error:
'GL_RGBA8' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:72: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:72: error:
'GL_RGBA8' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:106: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglframebufferobject.h:107: error:
'GL_TEXTURE_2D' was not declared in this scope
In file included from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/pyside_qtopengl_python.h:60,
from
/temp/pyside/pyside-qt4.6+0.3.0/PySide/QtOpenGL/PySide/QtOpenGL/qgl_wrapper.cpp:29:
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:70: error: 'GLuint'
does not name a type
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:71: error: 'GLuint'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:73: error: 'GLuint'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:75: error: 'GLuint'
does not name a type
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:76: error: 'GLuint'
does not name a type
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:77: error: 'GLuint'
does not name a type
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:78: error: 'GLuint'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:80: error: 'GLuint'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:80: error: 'GLenum'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:81: error: 'GLuint'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:81: error: 'GLenum'
has not been declared
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:80: error:
'GL_TEXTURE_2D' was not declared in this scope
/usr/local/include/qt4/QtOpenGL/qglpixelbuffer.h:81: error:
'GL_TEXTURE_2D' was not declared in this scope
*** Error code 1
Stop in /temp/pyside/pyside-qt4.6+0.3.0.
*** Error code 1
Stop in /temp/pyside/pyside-qt4.6+0.3.0.
*** Error code 1
Stop in /temp/pyside/pyside-qt4.6+0.3.0.
But GL/gl.h is on position:
cd# find /usr/local/ -name "gl.h"
/usr/local/include/GL/gl.h
/usr/local/include/FL/gl.h
cd# ls /usr/local/include/GL/
dmesa.h gl_mangle.h glfbdev.h glut.h glx_mangle.h
mesa_wgl.h svgamesa.h
ggimesa.h gle.h glu.h glutf90.h glxext.h
mglmesa.h vms_x_fix.h
gl.h glext.h glu_mangle.h glx.h internal
osmesa.h wmesa.h
Also one thing is interesting to me - as the QtOpenGL (or some of its
components) depends on PyQT - the PySide GPL alternative - so isn't it
dangerous to depend LGPL code on GPL one, or maybe this is some
dependency insonsistency?
Best regards,
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside