-
Notifications
You must be signed in to change notification settings - Fork 380
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
Buildsys: python issue with unit tests build #77
Comments
Hi @RomainNaour Great to see aubio in buildroot. Did you try the Looking at this patch, you could do something similar for all external libraries. All of them are useful, but none are strictly required to build and run aubio. And you don't really need libsndfile/libsamplerate when using libav. Looking at the current Config.in, pthread is required in aubio when using libfftw3 for now. Making fftw3 optional, you should be able to build aubio on a toolchain that does not have threads or dynamic libraries. Otherwise, I just added the sha256 hash for 0.4.3, which it should match the one you have in aubio.hash. There is also a GPG signature for it. Let me know how it goes! cheers, piem |
Hi @piem Thanks for your feedback. Ok, I see the problem. Thanks for the --notests suggestion 👍 Regarding the external libraries dependencies, each of them are optional. I will look at the pthread dependency latter, I added it when I saw pthread.h in src/spectral/fft.c. For the static only build, the src/wscript_build bundled with 0.4.3 release doesn't handle the --static option in LDFLAGS (missing patch "src/wscript_build: honor --includedir"). Thanks for adding a secure hash and GPG signature ! Best regards, |
Paul Brossier, the aubio maintainer, added a sha256 hash for the Buildroot package. Thanks ! aubio/aubio#77 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Hi, It seems waf doesn't store the --notests option at configuration time, that's why I have to pass it to each build step. See [1] Thanks! [1] http://lists.busybox.net/pipermail/buildroot/2016-December/179015.html |
Oh, I see what you mean: waf forgets the option In practice, you can simply pass the same string of options to each waf step: WAFOPTS="--destdir=/tmp/destdir --notests --disable-docs"
./waf distclean $WAFOPTS
./waf configure $WAFOPTS
./waf build $WAFOPTS
./waf install $WAFOPTS
|
Yes, this is my workaround, see the patch series [1][2][3]. [1] http://lists.busybox.net/pipermail/buildroot/2016-December/179018.html |
Hi @piem I'm closing the issue since the 3 previous patches has been merged in Buildroot. Best regards, |
Hi @RomainNaour, great, thank you! I added a note in the documentation, just in case. cheers, piem |
Hi @piem, You're welcome, thanks for aubio in a first place :) Best regards, |
Hi,
I added Aubio to Buildroot but I had to remove the unit tests due to a python issue, see [1]
Usually we don't want to build the unit tests when compiling for a target device, what do you think about an --enable/disable-unit-test option as suggested [2].
Best regards,
Romain
[1] https://git.buildroot.net/buildroot/commit/?id=280bb6807619e2e858836435f44aad0cccd27a40
[2] http://lists.busybox.net/pipermail/buildroot/2016-December/178961.html
The text was updated successfully, but these errors were encountered: