balazskreith / docker-gst-mprtp

Docker script to build gst-mprtp
0 stars 1 forks source link

erro on step 9 #1

Open jhonwilker opened 3 years ago

jhonwilker commented 3 years ago

Step 8/11 : COPY opt /opt/ ---> Using cache ---> 693b4e7be790 Step 9/11 : COPY html /var/www/html COPY failed: stat /var/lib/docker/tmp/docker-builder193088132/html: no such file or directory make: *** [Makefile:14: build] Error 1

friend, could you help me solve this step?

jhonwilker commented 3 years ago

I was able to resolve it by commenting on this command: "COPY html /var/www/html". I was able to proceed until I found another error, the one below.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Cleaning up... Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-hi0a9qz0/kiwisolver/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-giyk4a6h-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-hi0a9qz0/kiwisolver Storing debug log for failure in /root/.pip/pip.log The command '/bin/sh -c /opt/build-gstreamer-1-14-5.sh' returned a non-zero code: 1 Makefile:14: recipe for target 'build' failed make: *** [build] Error 1

leor-c commented 2 years ago

I was able to complete the build "successfully" by modifying the docker file (the modified code is below). however, when running the tests (with sudo make run SOURCE_DIR="<abs path>" TEST="mprtp1" ), there is another error:

Name: ply_packets_3.csv
Source type: MKFIFO, target: /tmp/ply_packets_3.csv, number of sent items: 0, amount of bytes: 0
Buffer number of transcieved items: 0, amount of bytes: 0->0
Mapper type: PACKET2CSV, number of transcieved items: 0, amount of bytes: 0->0
Sink type: FILE, path: temp/../ply_packets_3.csv number of sent items: 0, amount of bytes: 0
usage: main.py [-h] [-l {50,100,150,300} [{50,100,150,300} ...]]
               [-j JITTER [JITTER ...]] [-a {FRACTaL,SCReAM}] [-r RUNS]
               [-t TARGET] [-s SOURCE] [-i SINK] [-u SUBFLOWS_NUM] [--tcp TCP]
               [--vqmt VQMT]
               {rmcat1,rmcat2,rmcat3,rmcat4,rmcat5,rmcat6,rmcat7,mprtp1,mprtp2,mprtp3,mprtp4,mprtp5,mprtp6,mprtp7,mprtp8,mprtp9,mprtp10,mprtp11}
               [{rmcat1,rmcat2,rmcat3,rmcat4,rmcat5,rmcat6,rmcat7,mprtp1,mprtp2,mprtp3,mprtp4,mprtp5,mprtp6,mprtp7,mprtp8,mprtp9,mprtp10,mprtp11} ...]
main.py: error: the following arguments are required: types
cp: cannot stat ‘/opt/gstreamer-build-master/gst-mprtp/tests/temp/*’: No such file or directory
make: *** [Makefile:42: run] Error 1

The modified docker file:

FROM python:3.6-jessie

# install required packages
RUN echo 'deb http://httpredir.debian.org/debian jessie non-free' >> /etc/apt/sources.list
RUN apt-get -y update 

RUN apt-get install -y autoconf automake bison flex autopoint libtool \
        libglib2.0-dev yasm nasm xutils-dev libpthread-stubs0-dev libpciaccess-dev libudev-dev \
        libfaac-dev libxrandr-dev libegl1-mesa-dev openssh-server git-core wget \
        build-essential gettext libgles2-mesa-dev vim-nox libav-tools libshout3-dev libsoup2.4-dev \
        nginx libssl-dev intel-gpu-tools libpcap-dev sudo 

# We need to add a couple of extra pacgkages
RUN apt-get update && apt-get install -y libopencv-dev opencv-data software-properties-common python-software-properties \
        gnuplot5 gdb libvpx-dev curl

# We need to add a python
RUN apt-get install -qy python3 python3-pip

# This step only necessery if you wanna download git lfs files inside the container.
# Although many of the packages I added only necessary if you wanna develop from inside of the container, so
# feel free to optimize packages gdb, and curl, etc. out. I won't touch them now, thats for sure!
RUN build_deps="curl" && \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ${build_deps} ca-certificates && \
    curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs && \
    git lfs install && \
    DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove ${build_deps} && \
    rm -r /var/lib/apt/lists/*

RUN apt-get update
RUN pip3 install --upgrade pip && pip3 install --upgrade setuptools
RUN apt-get install -y autoconf gettext

COPY opt /opt/

#COPY html /var/www/html

RUN /opt/build-gstreamer-1-14-5.sh

RUN /opt/build-gst-mprtp.sh