Open p0psicles opened 1 year ago
There's no actual error in your logs, since you can see warning:
everywhere; you'll need to scroll up and find the actual error.
If your error mentions something like this:
src/media.cpp:1065:57: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
1065 | << m_imp->m_format_ctx->filename << std::endl;
| ^~~~~~~~
src/media.cpp:1069:94: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
1069 | AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
| ^~~~~
src/media.cpp:1080:65: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
1080 | << m_imp->m_format_ctx->filename << std::endl;
| ^~~~~~~~
src/media.cpp: In member function ‘virtual bool FeMedia::onGetData(sf::SoundStream::Chunk&)’:
src/media.cpp:1223:37: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘refcounted_frames’
1223 | m_audio->codec_ctx->refcounted_frames = 1;
| ^~~~~~~~~~~~~~~~~
src/media.cpp:1232:27: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
1232 | int len = avcodec_decode_audio4( m_audio->codec_ctx, frame, &got_frame, packet );
| ^~~~~~~~~~~~~~~~~~~~~
| avcodec_decode_subtitle2
then this is already fixed.
If you're building against a recent FFmpeg I strongly suggest using https://github.com/mickelson/attract/commit/02108245be47fc8adc92b42059ab8f30b340f16e or newer which has many build fixes implemented.
Has anyone been able to compile attractmode in Ubuntu 22.10? I'm getting this error:
running make -j $(cat /proc/cpuinfo | grep -c processor)
i've installed the dependencies with the exception of
libavresample-dev
. Which isn't available. In stead of that, i've used the packagelibswresample-dev
.ubuntu:
Attract mode: version: 2.6.2