-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Linux] build fails: conflicting declaration of SNDFILE, ALCdevice, ALCcontext #80
Comments
Hi, the current workaround I found is to use a docker container with ubuntu 16.04 (hoping it was old enough...), arch's packages are just too recent, building on arch and correcting every error probably will take more time than rewriting the entire code... Edit: Also I needed to downgrade ffmpeg to version 3 (compiling it from source), because once again the dev is using an ancient version. |
huh. no clue. but i know for sure that i don't use gstreamer or the openal soundplayer, so if it can be disabled somehow that should also fix it. it's just a standard part of OF. |
maybe i'm mistaken, but i think it's a cross platform necessity to use gstreamer and openAL on linux (?) |
anyway, partially replying to @castilma, a temporary workaround for that ALCdevice conflict is, according to this thread, to edit the OF file typedef struct ALCdevice_struct ALCdevice;
typedef struct ALCcontext_struct ALCcontext; into typedef struct ALCdevice ALCdevice;
typedef struct ALCcontext ALCcontext; and for the SNDFILE, also from the openframework forum, changing this line: typedef struct SNDFILE_tag SNDFILE ; into typedef struct sf_private_tag SNDFILE; Problem is, even after doing so, the compilation always fails with this error:
so we need to downgrade make, to make (:P) this work: here are the older packages, I installed the oldest. in conclusion i guess we are stuck, a solution could be to compile an ancient version of ffmpeg, and include these libraries for compiling Oscilloscope, i'll try maybe. edit: i noticed this comment got pretty long, and so for answering a pretty obvious question: yes it's been a long time since i started struggling with these issues... |
hi! OF has a bit of a non-standard project structure, and i honestly (at this point) cannot be bothered to make it appear as if it was a standard CI workflow. the following should work:
i can't say too much about the troubles you're running into without looking into it myself, but a good test is to test with any of the samples (e.g. of_10.1/examples/sound/audioOutputExample) and see if they compile&run fine. if not, then it doesn't make sense to try building the oscilloscope app at this point. |
i already tried it and yes, it works indeed, problem is that any sort of virtualization i can think of will likely impact the performance, or in any case it could be problematic to send audio in real time to this said virtual systems |
You can download the ffmpeg and change the includes using |
Actually no, FFmpeg v0.3 does not include the member |
Hi,
I'm building on artixlinux (based on arch). I followed the instructions in readme.md (installing dependencies with the script from linux/arch). The build fails:
The text was updated successfully, but these errors were encountered: