-
-
Notifications
You must be signed in to change notification settings - Fork 418
Autotools pkgconfig #54
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
Autotools pkgconfig #54
Conversation
Give others - e.g qmmp the chance to find projectM Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
That is where the were before switching to autotools and where projects expect them. Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
revmischa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay, thanks for adding pkg-config back! This is great.
I'm very curious how it's compiling at all on raspi. I thought raspi only supported OpenGLES, which does not have any support for the immediate-mode calls - see https://github.com/projectM-visualizer/projectm/blob/master/glES-porting.txt
|
|
||
| # system headers/libraries/data to install | ||
| # for compatibility reasons here as nobase_include | ||
| nobase_include_HEADERS = libprojectM/projectM.hpp libprojectM/Common.hpp libprojectM/dlldefs.h libprojectM/event.h libprojectM/fatal.h libprojectM/PCM.hpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were added here - #53 (diff)
What's the difference? What are the compatibility issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With CMake the files were installed to:
/usr/include/libprojectM
With Autotools all files are installed to
/usr/include
This is what this patch changes to avoid breakages in projects depending on projectM. Unfortunately it breaks make dist (haven't tested - my bad). I will try to fix and come back when I have something better. As said that might last because it is a just for fun issue to me and during the week there is not much time left for pure fun stuff...
How about a resend with pkg-config patch only and see if that passes Travis. If OK you can take that one before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the files should definitely all be installed to /usr/include/libprojectM, I'm pretty sure. So if they are now, great! Just update the test and we should be good to go. And do test out make dist if you get a chance.
| # CLEANFILES += src/libprojectM.pc | ||
| pkgconfig_DATA = libprojectM.pc | ||
| EXTRA_DIST += libprojectM.pc.in | ||
| CLEANFILES += libprojectM.pc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 💯 yay!
|
There is one failing test - https://travis-ci.org/projectM-visualizer/projectm/jobs/366837109#L4317 Was this file being installed in the wrong place? Please fix the test and/or add more tests for the new files you're installing (the .pc file and one or two new headers) |
Maybe it makes sense to add something similar here for Qt5 frontend - but first let's get this into shape... |
|
Awesomesauce. Does qmmp use projectM? Feel free to add it on the README! |
|
Need anything from me? |
|
Not really - the only thing I need is a bit of time... If you want you can apply the pkg-config patch. Or shall I send out a V2 with only that patch to get it tested by travis? |
|
Okay I think this is a simple thing to fix. I'll try it out. |
These two patches make qmmp/projectm analyser on RaspberryPi3 build and work!! OK a bit slow but this is the first time I see something...