Bug 241165 - cad/opencascade: Fails to configure without qmake
Summary: cad/opencascade: Fails to configure without qmake
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Thierry Thomas
Keywords: needs-qa
Depends on:
Reported: 2019-10-09 19:52 UTC by dgilbert
Modified: 2020-03-04 18:46 UTC (History)
1 user (show)

See Also:
thierry: maintainer-feedback+
koobs: merge-quarterly?

Patch to add qmake (417 bytes, patch)
2019-10-09 19:52 UTC, dgilbert
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dgilbert 2019-10-09 19:52:09 UTC
Created attachment 208213 [details]
Patch to add qmake

So... Included here is a patch to add qmake.  The port doesn't even configure without it right now.

In the end, it doesn't compile due to a missing header I can't find yet.  I tried configuring for vtk8 rather than vtk6, but that didn't work.

... so help?  Maintainer?
Comment 1 dgilbert 2019-10-09 19:55:24 UTC
Hrm... log too big to attach.  Here' is the pertinent part:

FAILED: src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o 
/usr/local/libexec/ccache/c++  -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_TBB -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL)" -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingMatplotlib)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)" -I/usr/local/include/vtk-6.2 -I/usr/local/include/freetype2 -I/usr/local/include/python2.7 -I/usr/local/include/tcl8.6 -I/usr/local/include/tk8.6 -Iusr/local/include/OpenCASCADE -std=c++0x -O2 -pipe -I/usr/local/include -fstack-protector-strong -fno-strict-aliasing -fexceptions -fPIC -Wall -Wextra  -O2 -pipe -I/usr/local/include -fstack-protector-strong -fno-strict-aliasing -DNo_Exception -fPIC -MD -MT src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -MF src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o.d -o src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -c /wrkdirs/usr/ports/cad/opencascade/work/opencascade-7.4.0/src/IVtkDraw/IVtkDraw.cxx
/wrkdirs/usr/ports/cad/opencascade/work/opencascade-7.4.0/src/IVtkDraw/IVtkDraw.cxx:121:10: fatal error: 'vtkXRenderWindowInteractor.h' file not found
#include <vtkXRenderWindowInteractor.h>
1 error generated.

the whole log can be poked at:

Comment 2 Thierry Thomas freebsd_committer 2019-10-09 20:35:48 UTC
It seems that your VTK package if not complete:

$ locate vtkXRenderWindowInteractor.h

$ pkg which /usr/local/include/vtk-6.2/vtkXRenderWindowInteractor.h
/usr/local/include/vtk-6.2/vtkXRenderWindowInteractor.h was installed by package vtk6-6.2.0_9
Comment 3 dgilbert 2019-10-09 22:42:25 UTC
Ok.  It seems to be the option to GL render that removes that file.
Comment 4 dgilbert 2020-01-06 17:03:36 UTC
regardless, this patch is required to build on my system.  Without patch, I have no success... with patch, works.
Comment 5 dgilbert 2020-01-06 17:04:23 UTC
What does QA involve?  Is this where someone foists a ports commit bit on me?
Comment 6 Thierry Thomas freebsd_committer 2020-01-06 17:27:18 UTC
Did you build VTK6 with the option QT5?
Comment 7 dgilbert 2020-01-06 23:28:00 UTC
(In reply to Thierry Thomas from comment #6)
Just checked that.  math/vtk6 has qt5 checked in my poudriere and cad/opencascade still required the addition of qmake to compile.

It's quite specific.. qt:5 is insuffient to compile  USE_QT = qmake is required.
Comment 8 dgilbert 2020-03-04 18:46:06 UTC
(In reply to Thierry Thomas from comment #6)
Here i am ... visiting this requirement again on another build server.

Yes, I have VTK6 requiring qt5.