Open castilma opened 2 years ago
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 OF/libs/openFrameworks/sound/ofOpenALSoundPlayer.h
changing these lines:
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:
../../../libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk:210: *** missing separator. Stop.
make[1]: Leaving directory '/mnt/data/git/OF/apps/myApps/Oscilloscope'
make: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2
so we need to downgrade make, to make (:P) this work: here are the older packages, I installed the oldest. and for yet another time the compilation continues until another, much bigger problem occur: a buttload of errors, caused by the bleeding edge libavcodec provided by ffmpeg 5.0, when we try to feed it with functions deprecated two years ago... (examples) here's the compilation error log if @kritzikratzi wants to take a look at it.
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:
make run
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 grep -rl
and sed -i
. Now I have a problem, where there is no rule to make /usr/include/glib-2.0/glib/gs
Actually no, FFmpeg v0.3 does not include the member codec
in struct AVStream.
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: