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

CGAL complains about missing QGLWidget #151

Merged
merged 1 commit into from
Aug 25, 2012

Conversation

boegel
Copy link
Member

@boegel boegel commented Aug 24, 2012

Hi there,

while building target CGAL-4.0-goalf-1.1.0-no-OFED-Python-2.7.3.eb
I came across an error mentioning missing "QGLWidget", as per
http://www.cgal.org/Manual/latest/doc_html/installation_manual/Chapter_installation_manual.html#Subsection_4.13

On debian squeeze I resolved it by bringing libqglviewer-qt4-2, libqglviewer-qt4-dev and their deps;
for RedHat and its offsprings you might wish to call your "dag" neighbour for more info:
http://rpmfind.net//linux/RPM/dag/redhat/el5/i386/libqglviewer-2.2.3-1.el5.rf.i386.html
(a quick search in an SL5 with default repos did not reveal the answer to this)

cheers,
Fotis

Scanning dependencies of target CGAL
[  5%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL.so
[  5%] Built target CGAL
[ 10%] [ 15%] [ 20%] [ 25%] [ 30%] [ 35%] [ 40%] [ 45%] Generating qrc_Triangulation_2.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsViewNavigation.cxx
Generating __/__/include/CGAL/Qt/moc_DemosMainWindow.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsItem.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsViewInput.cxx
Generating qrc_CGAL.cxx
Generating qrc_Input.cxx
Generating qrc_File.cxx
Scanning dependencies of target CGAL_Core
[ 50%] Building CXX object src/Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
Scanning dependencies of target CGAL_ImageIO
[ 55%] Building CXX object src/ImageIO/CMakeFiles/CGAL_ImageIO.dir/all_files.cpp.o
Scanning dependencies of target CGAL_Qt4
[ 60%] [ 65%] [ 70%] [ 75%] [ 80%] Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/all_files.cpp.o
[ 85%] Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsViewNavigation.cxx.o
[ 90%] Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_DemosMainWindow.cxx.o
[ 95%] [100%] Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsItem.cxx.o
Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsViewInput.cxx.o
Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_CGAL.cxx.o
Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_Input.cxx.o
Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_Triangulation_2.cxx.o
Building CXX object src/Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_File.cxx.o
In file included from /tmp/CGAL/4.0/goalf-1.1.0-no-OFED-Python-2.7.3/CGAL-4.0/src/Qt4/all_files.cpp:1:0:
/tmp/CGAL/4.0/goalf-1.1.0-no-OFED-Python-2.7.3/CGAL-4.0/src/CGALQt4/DemosMainWindow.cpp:33:21: fatal error: QGLWidget: No such file or directory
compilation terminated.
make[2]: *** [src/Qt4/CMakeFiles/CGAL_Qt4.dir/all_files.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/Qt4/CMakeFiles/CGAL_Qt4.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library ../../lib/libCGAL_Core.so
[100%] Built target CGAL_Core
Linking CXX shared library ../../lib/libCGAL_ImageIO.so
[100%] Built target CGAL_ImageIO
make: *** [all] Error 2

@boegel
Copy link
Member

boegel commented Aug 24, 2012

Seems like we have these deps installed on our end, which explains why we missed this:

-bash-3.2$ locate QGLWidget
/usr/lib64/qt4/include/QtOpenGL/QGLWidget
/usr/lib64/qt45/include/QtOpenGL/QGLWidget
-bash-3.2$ rpm -q --whatprovides /usr/lib64/qt4/include/QtOpenGL/QGLWidget
qt4-devel-4.2.1-1.el5_7.1

So, we'll need to see if we can add support to EasyBuild build/install qt4.

For now, we'll add qt4-devel as os dependency for CGAL, which at least makes this issue clearer.

@boegel
Copy link
Member

boegel commented Aug 24, 2012

pull request to be reviewed, real fix (supporting qt4 in EasyBuild) will have to wait for now

@ghost ghost assigned boegel Aug 25, 2012
@boegel
Copy link
Member

boegel commented Aug 25, 2012

I'm going ahead and merging this simple pull request. I want develop to be complete, so I can run a full regression test before making any more major changes (e.g. renaming functions).

boegel added a commit that referenced this pull request Aug 25, 2012
CGAL complains about missing QGLWidget
@boegel boegel merged commit cd8af07 into easybuilders:develop Aug 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant