-
Notifications
You must be signed in to change notification settings - Fork 62
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
Compilation fails on cairo.h not found #85
Comments
Tried compiling with either of both the packages installed and I still see the same error. |
Can someone on Nix try to compile this? This might be related to how Nix and Guix handle the filesystem. |
it could be named differently or be in some subdir, is there a guix development audacity package to peek at? |
so they mention some |
|
I'm not convinced anymore, the one that I thought would magically solve it is just: Without <sys/time.h>, gettimeofday is undefined.
diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp
index 0187e3962..e15d55f4c 100644
--- a/src/AudioIO.cpp
+++ b/src/AudioIO.cpp
@@ -479,6 +479,8 @@ time warp info and AudioIOListener and whether the playback is looped.
#include "../lib-src/portmidi/porttime/porttime.h"
#include "../lib-src/header-substitutes/allegro.h"
+#include <sys/time.h>
+
#define MIDI_SLEEP 10 /* milliseconds */
// how long do we think the thread that fills MIDI buffers,
// if it is separate from the portaudio thread, the other one is portaudio specific |
it is 2.4.2 though, what are the chances they broke it on guix in all those versions past 2.4.2? one last thing you can try @Hey-RAM I also see some mentions of packages depping |
I found this patch also on Gentoo's ebuild. I'm not sure if it applies to 3.0.x builds. All distros stopped updating Audacity from 2.6.x. |
okay this doesnt help, both times the only place that
exactly the same for latest sneedacity and audacity 2.4.2 which means theres no logical reason why that would compile fine while sneedacity builds trip on it |
Looks like the problem is related to compiling wxWidgets. wxWidgets depends on GTK2 and probably uses Cairo surfaces. Maybe we should move wxWidgets to GTK3. |
ah so its finally running into the wxWidgets packaging pain |
Can you try to compile a simple C program like
with clang |
Yeah, so it might be a fault on my side, running the trivial program above fails with the same error. Any idea how to fix it? Edit: |
not sure if anyone is familiar with guix on this project, I'm not at any rate. but assuming you tried the before mentioned |
Compiling on Guix is not supported. |
Describe the bug
Cloned the repo and tried to compile it as mentioned on #78
Returns with file cairo.h not found. (I've installed the cairo package)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Package compiles successfully
Additional information:
The text was updated successfully, but these errors were encountered: