Skip to content
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

Make sharedlib fails #3

Open
wildtv opened this issue Oct 2, 2019 · 5 comments
Open

Make sharedlib fails #3

wildtv opened this issue Oct 2, 2019 · 5 comments

Comments

@wildtv
Copy link

wildtv commented Oct 2, 2019

make: *** No rule to make target 'sharedlib'. Stop.

Seems the root Makefile has sharedlib, but the Makefile in src has nothing to reference sharedlib and thus fails. ?

@pbatey
Copy link
Member

pbatey commented Oct 3, 2019 via email

@wildtv
Copy link
Author

wildtv commented Oct 3, 2019

-Edit, wrong machine
Debian Jessie

@pbatey
Copy link
Member

pbatey commented Oct 3, 2019

Here's s a small Dockerfile that attempts to build on a clean debian:8 (jessie) image:

FROM debian:8
RUN apt-get update && apt-get install -y git make gcc clang libavformat-dev libavfilter-dev uuid-dev zlib1g-dev mediainfo
COPY src/ /app/src/
COPY include/ /app/include/
COPY Makefile /app/Makefile
COPY .git/ /app/.git/
WORKDIR /app
RUN mkdir obj && mkdir python
RUN make
CMD /app/caption-inspector

This works fine when using FROM debian:9 (stretch), but dies with the following error when using FROM debian:8 (jessie):

In file included from source/mpeg_file.c:26:
../include/mpeg_file.h:29:10: fatal error: 'libswresample/swresample.h' file not found
#include <libswresample/swresample.h>
         ^
1 error generated.

Looks like one of the libraries caption-inspector depends on (libswresample) is not supported in Jessie: https://packages.debian.org/search?keywords=libswresample-dev

@wildtv
Copy link
Author

wildtv commented Oct 3, 2019

After looking at the build/ffmpeg requirements, I'll probably end up using the docker package on the end goal target, Stretch.
I don't really want my existing ffmpeg builds conflicting, or the repo vs source libav issues.

I just tried building at the end of the day on my desktop and got that error when trying to build the binding portion, the application appears to have built fine otherwise.
Don't go out of your way, I'm not in any critical need of building them.

emerica@x:~/caption-inspector$ make
cd src ; make all
make[1]: Entering directory '/home/emerica/caption-inspector/src'
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mcc_file.c -o ../obj/mcc_file.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mcc_file.c > ../obj/mcc_file.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mov_file.c -o ../obj/mov_file.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mov_file.c > ../obj/mov_file.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mpeg_file.c -o ../obj/mpeg_file.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/mpeg_file.c > ../obj/mpeg_file.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/scc_file.c -o ../obj/scc_file.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include source/scc_file.c > ../obj/scc_file.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/dtvcc_decode.c -o ../obj/dtvcc_decode.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/dtvcc_decode.c > ../obj/dtvcc_decode.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/mcc_decode.c -o ../obj/mcc_decode.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/mcc_decode.c > ../obj/mcc_decode.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/mcc_encode.c -o ../obj/mcc_encode.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/mcc_encode.c > ../obj/mcc_encode.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/line21_decode.c -o ../obj/line21_decode.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/line21_decode.c > ../obj/line21_decode.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/scc_encode.c -o ../obj/scc_encode.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include xform/scc_encode.c > ../obj/scc_encode.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/cc_data_output.c -o ../obj/cc_data_output.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/cc_data_output.c > ../obj/cc_data_output.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/dtvcc_output.c -o ../obj/dtvcc_output.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/dtvcc_output.c > ../obj/dtvcc_output.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/line21_output.c -o ../obj/line21_output.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/line21_output.c > ../obj/line21_output.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/mcc_output.c -o ../obj/mcc_output.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include sink/mcc_output.c > ../obj/mcc_output.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/autodetect_file.c -o ../obj/autodetect_file.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/autodetect_file.c > ../obj/autodetect_file.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/buffer_utils.c -o ../obj/buffer_utils.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/buffer_utils.c > ../obj/buffer_utils.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/cc_utils.c -o ../obj/cc_utils.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/cc_utils.c > ../obj/cc_utils.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/debug.c -o ../obj/debug.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/debug.c > ../obj/debug.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/output_utils.c -o ../obj/output_utils.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/output_utils.c > ../obj/output_utils.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/pipeline_utils.c -o ../obj/pipeline_utils.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/pipeline_utils.c > ../obj/pipeline_utils.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/external_adaptor.c -o ../obj/external_adaptor.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/external_adaptor.c > ../obj/external_adaptor.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/version.c -o ../obj/version.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include utils/version.c > ../obj/version.d
clang -c -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include main.c -o ../obj/main.o
clang -MM -Wpedantic -Wno-deprecated-declarations -Wall -fno-strict-aliasing -fPIC -DPIC -I ../include main.c > ../obj/main.d

*** Compiling Caption Inpsector Executible. ***
clang -o ../caption-inspector ../obj/main.o  ../obj/mcc_file.o  ../obj/mov_file.o  ../obj/mpeg_file.o  ../obj/scc_file.o  ../obj/dtvcc_decode.o  ../obj/mcc_decode.o  ../obj/mcc_encode.o  ../obj/line21_decode.o  ../obj/scc_encode.o  ../obj/cc_data_output.o  ../obj/dtvcc_output.o  ../obj/line21_output.o  ../obj/mcc_output.o  ../obj/autodetect_file.o  ../obj/buffer_utils.o  ../obj/cc_utils.o  ../obj/debug.o  ../obj/output_utils.o  ../obj/pipeline_utils.o  ../obj/external_adaptor.o  ../obj/version.o -L/usr/local/lib -luuid -lm -lz -lavformat -lavcodec -lavutil

*** Compiling Caption Inspector Dynamic Library to interface with Python. ***
clang -shared -W -L/usr/local/lib -lavformat -lavcodec -lavutil -luuid -o ../python/libci.1.0.0.dylib  ../obj/mcc_file.o  ../obj/mov_file.o  ../obj/mpeg_file.o  ../obj/scc_file.o  ../obj/dtvcc_decode.o  ../obj/mcc_decode.o  ../obj/mcc_encode.o  ../obj/line21_decode.o  ../obj/scc_encode.o  ../obj/cc_data_output.o  ../obj/dtvcc_output.o  ../obj/line21_output.o  ../obj/mcc_output.o  ../obj/autodetect_file.o  ../obj/buffer_utils.o  ../obj/cc_utils.o  ../obj/debug.o  ../obj/output_utils.o  ../obj/pipeline_utils.o  ../obj/external_adaptor.o  ../obj/version.o
make[1]: Leaving directory '/home/emerica/caption-inspector/src'
emerica@x:~/caption-inspector$ make sharedlib
cd src ; make sharedlib
make[1]: Entering directory '/home/emerica/caption-inspector/src'
make[1]: *** No rule to make target 'sharedlib'.  Stop.
make[1]: Leaving directory '/home/emerica/caption-inspector/src'
make: *** [Makefile:66: sharedlib] Error 2
emerica@x:~/caption-inspector$ cat /etc/apt/sources.list|grep debian
# deb http://mirrors.kernel.org/debian/ stretch main non-free contrib
[....]
emerica@x:~/caption-inspector$ uname -a 
Linux x 5.0.0-20.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.0-21.1~sid (2019-05-31) x86_64 GNU/Linux

Tried on the home machine, same deal, but stretch. Maybe I'm just an idiot ;)

@wildtv
Copy link
Author

wildtv commented Oct 3, 2019

Already built by
*** Compiling Caption Inspector Dynamic Library to interface with Python. ***
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants