Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
519 stars 197 forks source link

impossible to compile under ubuntu 20.04.5 #206

Closed KuronekoChris closed 1 year ago

KuronekoChris commented 1 year ago

Since the last commit, I can't compile the ADS library under ubuntu 20.04.5.

It tells me that it can't find the "tcadsdll" c++ library.

cg@test:~/ADS$ sudo make install
meson setup build -Dtcadsdll_include=/usr/include -Dtcadsdll_lib=/usr/lib
The Meson build system
Version: 0.53.2
Source dir: /home/cg/ADS
Build dir: /home/cg/ADS/build
Build type: native build
Project name: AdsLib
Project version: 0.1
C++ compiler for the host machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library ws2_32 found: NO
Run-time dependency threads found: YES

meson.build:91:2: ERROR: C++ library 'TcAdsDll' not found

A full log can be found at /home/cg/ADS/build/meson-logs/meson-log.txt
make: *** [Makefile:14: build] Error 1

I haven't found anything on the internet.

KuronekoChris

pbruenn commented 1 year ago

Try: https://github.com/Beckhoff/ADS/#compile--usage

The extra options -Dtcadsdll_include=/usr/include -Dtcadsdll_lib=/usr/lib only work on systems with TwinCAT available, such as TC/BSD.