vgrebenschikov / snap7 Goto Github PK
View Code? Open in Web Editor NEWFreeBSD port for snap7 - Multi-platform Ethernet S7 PLC communication suite
FreeBSD port for snap7 - Multi-platform Ethernet S7 PLC communication suite
The snap7 pkg in freebsd12 is broken, that or I'm missing something.
I've used it in ubuntu works fine, .. did pkg install snap7 then I did
pip3 install python-snap7 and that should work but it doesn't, tried
comping the C++ code under /usr/local/share/examples/snap7/c-cpp "c++
-I/usr/local/include/ snap7.cpp" otherwise it won't find snap7.h but
that doesn't work either
root@m0:~ # python3.6 test.py
Traceback (most recent call last):
File "test.py", line 17, in
plc = c.Client ()
File "/usr/local/lib/python3.6/site-packages/snap7/client.py", line
37, in init
self.library = load_library()
File "/usr/local/lib/python3.6/site-packages/snap7/common.py", line
54, in load_library
return Snap7Library(lib_location).cdll
File "/usr/local/lib/python3.6/site-packages/snap7/common.py", line
46, in init
raise Snap7Exception(msg)
snap7.snap7exceptions.Snap7Exception: can't find snap7 library. If
installed, try running ldconfig
root@m0:~ # pkg search snap7
snap7-1.4.2 Multi-platform Ethernet S7 PLC
communication suite
root@m0:~ # ldd /usr/local/lib/libsnap7.so
/usr/local/lib/libsnap7.so:
libthr.so.3 => /lib/libthr.so.3 (0x80069f000)
librt.so.1 => /usr/lib/librt.so.1 (0x8006ca000)
libc++.so.1 => /usr/lib/libc++.so.1 (0x8006d2000)
libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x8007a1000)
libm.so.5 => /lib/libm.so.5 (0x8007c2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800e00000)
libc.so.7 => /lib/libc.so.7 (0x800248000)
root@m0:~ #
From what I gather the snap7 library i've installed isn't showing up in
freebsd when called upon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.