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
add raptor2 compatibility for lrdf #194
Comments
Hi Ray! I'm trying to reproduce the situation on my Ubuntu, but i couldn't make it happen.. Here liblrdf0-dev depends on libraptor1-dev, which provides /usr/include/raptor.h. So it is guaranteed that the file is there. What is the situation on your system? |
This is simply for compatibility with systems that have lrdf + raptor2 (as per issue title). In this case lrdf.h includes raptor.h, which does not exist on the system. What exists on the system is raptor2, which includes both versions of the header in its own directory (/usr/include/raptor2). Pkg-config picks this up nicely, but with cmake you have to tell it what information to use for the found dependency (lrdf.h). |
Thanks Ray, this is now in the repository. |
* Possible fix for missing raptor.h #496 * this line was added for #194 but it seems like it's not needed * fixed spelling error * added checkboxes for view menu's options * remove unneeded header I added by mistake * removed fix for #496 to match with main branch of the main repository * revert last commit * workaround for my wrong branch managment * added checkboxes for view menu's options * remove unneeded header I added by mistake * workaround for my wrong branch managment * commit CMakeList as in the main branch * converted spaces to tabs
Hello fellow drummers
Hydrogen will fail to build with lrdf if raptor2 is installed:
This is obviously because the includes are in a different path for raptor2, and although cmake (by way of pkg-config, whether or not LRDF is ON) populates the relevant env vars, they are not used:
This is actually an old issue and I have propagated fixes to some other upstream projects since 2011, but I never got around to reporting to hydrogen.
Now that the buildsystem changed to cmake, my old patch no longer works. The fix is buildsystem-dependent, so here I propose a simple cmake-friendly modification:
That should be it -- keep up the good work, guys!
The text was updated successfully, but these errors were encountered: