Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
513 stars 194 forks source link

Provide compiled binary #76

Closed gimmi closed 5 years ago

gimmi commented 5 years ago

Hi,

any plan to provide pre-built binaries for this lib?

pbruenn commented 5 years ago

Actually no. What would be the use case for pre compiled binaries?

gimmi commented 5 years ago

I am evaluating the use of this lib to be wrapped for use in .NET, and I'm having trouble setting up all the environment needed to compile it. Having an already compiled version would be useful.

pbruenn commented 5 years ago

.NET sounds like you are on Windows. Then you could just use the official prepackaged libraries from Beckhoff: https://infosys.beckhoff.de/content/1031/tc3_adsdll2/html/tcadsdll_intro.htm https://infosys.beckhoff.de/content/1031/tc3_adsnetref/4017095947.html

If you are familiar with Docker here is a Dockerfile for a Ubuntu docker container, which is able to cross compile for windows:

from ubuntu:16.04

RUN apt-get update && apt-get install -y \
autoconf automake autopoint \
bash bc bison build-essential bzip2 \
ca-certificates \
clang \
cmake \
flex \
gettext git g++-multilib gperf \
intltool \
libc6-dev-i386 libffi-dev libgdk-pixbuf2.0-dev libtool libtool-bin libltdl-dev libssl-dev libxml-parser-perl \
nmap \
openssl \
p7zip-full \
patch perl pkg-config python \
ruby \
scons sed \
unzip \
wget \
xz-utils

RUN git clone https://github.com/mxe/mxe.git
RUN cd mxe && make -j`nproc` MXE_TARGETS=i686-w64-mingw32.static.posix gc
gimmi commented 5 years ago

Thanks a lot for the Docker hint, much appreciated.

Will try with it.