-
Notifications
You must be signed in to change notification settings - Fork 11
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
Updated Micro epsilon SDK and dependencies #32
Changes from 1 commit
879f435
af3e168
56f064f
8bcd331
a781687
7f09b0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,23 +8,31 @@ ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
checkinstall \ | ||
cmake \ | ||
debhelper \ | ||
g++ \ | ||
gcc \ | ||
gettext \ | ||
git \ | ||
gobject-introspection \ | ||
gtk-doc-tools \ | ||
intltool \ | ||
libgirepository1.0-dev \ | ||
libglib2.0-dev \ | ||
libgstreamer1.0-dev \ | ||
libgstreamer-plugins-base1.0-dev \ | ||
libgstreamer-plugins-good1.0-dev \ | ||
libgtk-3-dev \ | ||
libusb-1.0-0-dev \ | ||
libxml2-dev \ | ||
python3-pip \ | ||
ninja-build \ | ||
pkg-config \ | ||
unzip \ | ||
wget \ | ||
libxml2-dev libglib2.0-dev cmake libusb-1.0-0-dev gobject-introspection \ | ||
libgtk-3-dev gtk-doc-tools xsltproc libgstreamer1.0-dev \ | ||
libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \ | ||
libgirepository1.0-dev gettext \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install meson | ||
xsltproc \ | ||
&& rm -rf /var/lib/apt/lists/* && \ | ||
pip3 install meson | ||
|
||
RUN wget https://github.com/AravisProject/aravis/releases/download/0.8.30/aravis-0.8.30.tar.xz -O aravis-0.8.30.tar.xz &&\ | ||
tar xfJ aravis-0.8.30.tar.xz && \ | ||
|
@@ -33,7 +41,7 @@ RUN wget https://github.com/AravisProject/aravis/releases/download/0.8.30/aravis | |
meson setup build && \ | ||
cd build && \ | ||
ninja && \ | ||
checkinstall --pkgname aravis --pkgversion 0.8.30 ninja install | ||
checkinstall --pkgname aravis --pkgversion 0.8.30 --requires="libglib2.0-dev, libxml2-dev" ninja install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just curious why we 'bother' with |
||
|
||
SHELL ["/bin/bash", "-c"] | ||
RUN wget https://software.micro-epsilon.com/scanCONTROL-Linux-SDK-${SCANCONTROL_SDK_VERSION//./-}.zip -O scanCONTROL-Linux-SDK-${SCANCONTROL_SDK_VERSION//./-}.zip && \ | ||
|
@@ -43,13 +51,13 @@ RUN wget https://software.micro-epsilon.com/scanCONTROL-Linux-SDK-${SCANCONTROL_ | |
meson builddir && \ | ||
cd builddir && \ | ||
ninja && \ | ||
checkinstall --pkgname mescan --pkgversion ${SCANCONTROL_SDK_VERSION} --requires="aravis \(\>= 0.6.0\)" ninja install && \ | ||
checkinstall --pkgname mescan --pkgversion ${SCANCONTROL_SDK_VERSION} --requires="aravis \(\>= 0.8.0\)" ninja install && \ | ||
ldconfig && \ | ||
cd ../../libllt && \ | ||
cd /scanCONTROL-Linux-SDK/libllt && \ | ||
meson builddir && \ | ||
cd builddir && \ | ||
ninja && \ | ||
checkinstall --pkgname llt --pkgversion ${SCANCONTROL_SDK_VERSION} --requires="mescan \(\>= ${SCANCONTROL_SDK_VERSION}\),aravis \(\>= 0.6.0\)" ninja install | ||
checkinstall --pkgname llt --pkgversion ${SCANCONTROL_SDK_VERSION} --requires="mescan \(\>= ${SCANCONTROL_SDK_VERSION}\),aravis \(\>= 0.8.0\)" ninja install | ||
|
||
RUN mkdir /library_pkgs && \ | ||
mv /aravis-0.8.30/build/aravis_0.8.30-1_amd64.deb /library_pkgs && \ | ||
|
@@ -59,9 +67,10 @@ RUN mkdir /library_pkgs && \ | |
FROM ros:noetic-ros-core | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend that you add an There's an example on line 3. |
||
ARG SCANCONTROL_SDK_VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends\ | ||
intltool \ | ||
libglib2.0-dev \ | ||
libusb-1.0-0-dev \ | ||
NithishkumarS marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pkg-config \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
@@ -70,4 +79,6 @@ COPY --from=build ["/library_pkgs", "/library_pkgs"] | |
RUN apt-get update && \ | ||
apt install -y /library_pkgs/aravis_0.8.30-1_amd64.deb && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's preferable to use I think you can do all of the packages in one install command too (but please test it works if you change it). Finally, if these are the only files in |
||
apt install /library_pkgs/mescan_${SCANCONTROL_SDK_VERSION}-1_amd64.deb && \ | ||
apt install /library_pkgs/llt_${SCANCONTROL_SDK_VERSION}-1_amd64.deb | ||
apt install /library_pkgs/llt_${SCANCONTROL_SDK_VERSION}-1_amd64.deb \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest expanding this a bit further - this is the standard 'clean-up' stanza I use with each apt call: