Hi Robert, So just comenting the lines referring to those libraries in the FindOpenCascade.cmake file did the trick. Also tested with a few igs files and all worked ok. So not sure for your opencascade version these libraries are needed to build or/and run, but definitely not needed for me (installed from apt).
Could it be version dependent issues? Cheers. 2017-11-30 21:30 GMT+01:00 Robert Osfield <[email protected]>: > Hi Jordi, > > On 30 November 2017 at 20:11, Jordi Torres <[email protected]> wrote: > > No I don't have this dependency in my system, fresh build. In fact > > > > OPENCASCADE_TKDCAF is part from the package oce-draw, so CMake does not > find > > it automatically. But OPENCASCADE_TKVCAF is definitely not there. > > I don't understand the what specifically happening on your system, the > FindOpenCascade script is long winded, I can only guess that some > combination of dependencies on your system are causing an issue. > > > > Can you tell me what packages do you have installed w.r.t opencascade? > Maybe > > a newer version? > > It's a year since I worked on the OpenCascade so I'm a bit rusty. > Looking at where it's installed on my system it's in > /usr/local/include/opencascade and /usr/local/lib so I probably > installed from a local install/build rather than pulling it in from > debian/ubuntu repositories. > > > > BTW Is probable that we don't need all the libraries here: > > https://github.com/openscenegraph/OpenSceneGraph/ > blob/master/CMakeModules/FindOpenCascade.cmake#L57-L112 > > to build the plugin. > > OpenCascade requires an massive number of separate libs to do even > basic things with it, I tried to keep the number down as much as I > possible could. It was one of these tasks that at the start looked to > be a straight forward but ended up a bit of nightmare to get things > linking, lib after lib had to be added. > > I'm pretty sure we can't cut down the number of libs that are linked > in. Whether we can cut down the number of Find's I don't know. It's > a whole heap of stuff to iterate through to find out the minimum > required. > > As to what is wrong with the FidOpenCascade script in your case I > don't know. Could it be finding a subset of all the libs but not all > of them but is still assuming that it can build the plugin? > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Jordi Torres
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

