MCJack123 / sanjuuni

Converts images and videos into a format that can be displayed in ComputerCraft.
GNU General Public License v2.0
32 stars 5 forks source link

Not building on musl (alpine) #14

Closed Commandcracker closed 1 year ago

Commandcracker commented 1 year ago

broken at 1e8bdaec4f6ffaabd536ae0cd8261528eb10995f

works until 81e66619143c70dea3b26efffb358d257187ed1f

FROM alpine:3.17.0

RUN set -eux; \
    apk add --no-cache --update g++ zlib-dev poco-dev make ffmpeg-dev; \
    wget -O sanjuuni.tar.gz https://github.com/MCJack123/sanjuuni/archive/1e8bdaec4f6ffaabd536ae0cd8261528eb10995f.tar.gz; \
    echo "b3890e9146cd5ebdc13c1fec72ea2c4e6cc9bab63a0e6186ef29e94d5cea1820 *sanjuuni.tar.gz" | sha256sum -c -; \
    mkdir -p sanjuuni; \
    tar -xC sanjuuni --strip-components=1 -f sanjuuni.tar.gz; \
    rm sanjuuni.tar.gz;

WORKDIR /sanjuuni

RUN set -eux; \
    ./configure; \
    make
#0 2.236 + make
#0 2.236 mkdir obj
#0 2.237 g++ -o obj/cc-pixel.o -c  -g -O2  -std=c++11 src/cc-pixel.cpp
#0 2.607 g++ -o obj/generator.o -c  -g -O2  -std=c++11 src/generator.cpp
#0 3.859 g++ -o obj/octree.o -c  -g -O2  -std=c++11 src/octree.cpp
#0 4.181 g++ -o obj/quantize.o -c  -g -O2  -std=c++11 src/quantize.cpp
#0 5.250 g++ -o obj/sanjuuni.o -c  -g -O2  -std=c++11 src/sanjuuni.cpp
#0 5.716 src/sanjuuni.cpp: In function 'int main(int, const char**)':
#0 5.716 src/sanjuuni.cpp:654:26: warning: 'AVCodecContext::channels' is deprecated [-Wdeprecated-declarations]
#0 5.716   654 |         dfpwm_codec_ctx->channels = 1;
#0 5.716       |                          ^~~~~~~~
#0 5.717 In file included from src/sanjuuni.cpp:24:
#0 5.717 /usr/include/libavcodec/avcodec.h:1006:9: note: declared here
#0 5.717  1006 |     int channels;
#0 5.717       |         ^~~~~~~~
#0 5.717 src/sanjuuni.cpp:654:26: warning: 'AVCodecContext::channels' is deprecated [-Wdeprecated-declarations]
#0 5.717   654 |         dfpwm_codec_ctx->channels = 1;
#0 5.717       |                          ^~~~~~~~
#0 5.717 /usr/include/libavcodec/avcodec.h:1006:9: note: declared here
#0 5.717  1006 |     int channels;
#0 5.717       |         ^~~~~~~~
#0 5.717 src/sanjuuni.cpp:654:26: warning: 'AVCodecContext::channels' is deprecated [-Wdeprecated-declarations]
#0 5.717   654 |         dfpwm_codec_ctx->channels = 1;
#0 5.717       |                          ^~~~~~~~
#0 5.717 /usr/include/libavcodec/avcodec.h:1006:9: note: declared here
#0 5.717  1006 |     int channels;
#0 5.717       |         ^~~~~~~~
#0 5.717 src/sanjuuni.cpp:655:26: warning: 'AVCodecContext::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.717   655 |         dfpwm_codec_ctx->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.717       |                          ^~~~~~~~~~~~~~
#0 5.717 /usr/include/libavcodec/avcodec.h:1060:14: note: declared here
#0 5.717  1060 |     uint64_t channel_layout;
#0 5.717       |              ^~~~~~~~~~~~~~
#0 5.717 src/sanjuuni.cpp:655:26: warning: 'AVCodecContext::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.717   655 |         dfpwm_codec_ctx->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.717       |                          ^~~~~~~~~~~~~~
#0 5.717 /usr/include/libavcodec/avcodec.h:1060:14: note: declared here
#0 5.717  1060 |     uint64_t channel_layout;
#0 5.717       |              ^~~~~~~~~~~~~~
#0 5.717 src/sanjuuni.cpp:655:26: warning: 'AVCodecContext::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.717   655 |         dfpwm_codec_ctx->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.717       |                          ^~~~~~~~~~~~~~
#0 5.717 /usr/include/libavcodec/avcodec.h:1060:14: note: declared here
#0 5.717  1060 |     uint64_t channel_layout;
#0 5.717       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:852:127: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   852 |                 if (!resample_ctx) resample_ctx = swr_alloc_set_opts(NULL, AV_CH_LAYOUT_MONO, AV_SAMPLE_FMT_U8, 48000, frame->channel_layout, (AVSampleFormat)frame->format, frame->sample_rate, 0, NULL);
#0 5.725       |                                                                                                                               ^~~~~~~~~~~~~~
#0 5.725 In file included from /usr/include/libavutil/hwcontext.h:23,
#0 5.725                  from /usr/include/libavcodec/codec.h:27,
#0 5.725                  from /usr/include/libavformat/avformat.h:313,
#0 5.725                  from src/sanjuuni.cpp:23:
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:852:127: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   852 |                 if (!resample_ctx) resample_ctx = swr_alloc_set_opts(NULL, AV_CH_LAYOUT_MONO, AV_SAMPLE_FMT_U8, 48000, frame->channel_layout, (AVSampleFormat)frame->format, frame->sample_rate, 0, NULL);
#0 5.725       |                                                                                                                               ^~~~~~~~~~~~~~
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:852:127: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   852 |                 if (!resample_ctx) resample_ctx = swr_alloc_set_opts(NULL, AV_CH_LAYOUT_MONO, AV_SAMPLE_FMT_U8, 48000, frame->channel_layout, (AVSampleFormat)frame->format, frame->sample_rate, 0, NULL);
#0 5.725       |                                                                                                                               ^~~~~~~~~~~~~~
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:852:69: warning: 'SwrContext* swr_alloc_set_opts(SwrContext*, int64_t, AVSampleFormat, int, int64_t, AVSampleFormat, int, int, void*)' is deprecated [-Wdeprecated-declarations]
#0 5.725   852 |                 if (!resample_ctx) resample_ctx = swr_alloc_set_opts(NULL, AV_CH_LAYOUT_MONO, AV_SAMPLE_FMT_U8, 48000, frame->channel_layout, (AVSampleFormat)frame->format, frame->sample_rate, 0, NULL);
#0 5.725       |                                                   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 5.725 In file included from src/sanjuuni.cpp:27:
#0 5.725 /usr/include/libswresample/swresample.h:260:20: note: declared here
#0 5.725   260 | struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
#0 5.725       |                    ^~~~~~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:854:27: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   854 |                 newframe->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.725       |                           ^~~~~~~~~~~~~~
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:854:27: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   854 |                 newframe->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.725       |                           ^~~~~~~~~~~~~~
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 5.725 src/sanjuuni.cpp:854:27: warning: 'AVFrame::channel_layout' is deprecated [-Wdeprecated-declarations]
#0 5.725   854 |                 newframe->channel_layout = AV_CH_LAYOUT_MONO;
#0 5.725       |                           ^~~~~~~~~~~~~~
#0 5.725 /usr/include/libavutil/frame.h:510:14: note: declared here
#0 5.725   510 |     uint64_t channel_layout;
#0 5.725       |              ^~~~~~~~~~~~~~
#0 8.319 g++ -o sanjuuni obj/cc-pixel.o obj/generator.o obj/octree.o obj/quantize.o obj/sanjuuni.o  -lPocoCrypto -lPocoNetSSL -lPocoNet -lPocoUtil -lPocoFoundation -lz -lswresample -lswscale -lavutil -lavformat -lavcodec
#0 8.396 /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: obj/sanjuuni.o: in function `main':
#0 8.420 /sanjuuni/src/sanjuuni.cpp:558: undefined reference to `avdevice_register_all'
#0 8.434 collect2: error: ld returned 1 exit status
#0 8.435 make: *** [Makefile:17: sanjuuni] Error 1
------
failed to solve: executor failed running [/bin/sh -c set -eux;     ./configure;     make]: exit code: 2