-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Unable to install open-scene-graph: missing dae.h for collada-dom #43536
Comments
Looks like this is causing the failure:
|
So I have this file in my filesystem
Maybe it should symlink to |
There should be a flag we can pass to CMake to let it know where to find that header; if you want to poke around that'd be great, otherwise I'll give it a shot when I have a chance. |
Hmm...
@dunn Can you give me a clue? |
Oh, the problem is the include directory is named "collada-dom2.4" instead of "collada-dom". I guess we'll have to change that manually for each minor version bump. |
Thanks, @dunn hardcoding |
Was this resolved? |
Woops, I guess not. One way to avoid hardcoding the collada version number into the open-scene-graph formula would be to do something silly like: if build.with? "collada-dom"
collada_dir = `ls #{Formula["collada-dom"].opt_include}/collada-dom*`
args << "-DCOLLADA_INCLUDE_DIR=#{collada_dir} I don't know which is worse. |
This sounds like an upstream bug in OSG's build process. By default,
So, it looks like OpenSceneGraph can't compile against a default installation of It's kind of unusual for software to qualify its include dirs by minor version by default. And since OSG is the only formula in Homebrew using We could change the Not sure what the official Right Way to do it is, or if there even is one. The Collada doco on the OSG Wiki is out of date, and the library client guide on the Collada DOM Wiki also looks out of date, and doesn't match how OSG is using it. I'm inclined to just include an unqualified |
On second thought, @dunn's hack seems like a better approach, since it doesn't require any patching or change Made a PR for it: #46380. Tests out okay for me on 10.9.5 doing |
Oops. The test I ran for #46380 was wrong. Now it is failing with this.
It looks like this is due to it not picking up the |
I submitted an upstream issue: openscenegraph/OpenSceneGraph#48. |
Hmm. Since this directory location is more a property of the |
Sounds like this was fixed in #46776. Otherwise: we'll accept PRs for this but we're not actively working on it at this time. |
Trying to install open-scene-graph with:
brew install --with-collada-dom --with-docs --with-ffmpeg --with-gdal --with-jasper --with-librsvg --with-qt open-scene-graph
Make fails on
[ 95%] Built target osgdb_ive make: *** [all] Error 2
My brew logs are here:
https://gist.github.com/b55823b91e605648ccfc
The text was updated successfully, but these errors were encountered: