Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
building_owfs_on_cygwin [2017/06/26 12:03] admin |
building_owfs_on_cygwin [2019/05/16 12:08] (current) admin [Building OWFS on Cygwin] |
===== Building OWFS on Cygwin ===== | ===== Building OWFS on Cygwin ===== |
* For building OWFS 2.9x on Cygwin please see [[Building OWFS 2.9x on Cygwin]] | * For building OWFS 2.9x on Cygwin please see [[Building OWFS 2.9x on Cygwin]] |
* Required packages for compilation: gcc, automake, autoconf, make, patch, libtool, vim, ed, libusb-win32, libusb1.0, libusb1.0-devel, wget | * To install the required Cygwin packages for compiling OWFS and for running iButtonManger I use apt-cyg, a command line tool similar to apt-get used in Debian, Ubuntu. To use apt-cyg make sure you have wget installed and execute the following commands. |
* To install the required Cygwin packages from command line, execute the following commands. Have wget installed before. If you get an error "md5sum: standard input: no properly formatted MD5 checksum lines found" when executing apt-cyg have a look at [[http://superuser.com/questions/894696/apt-cyg-install-return-md5sum-error]] | |
| |
| |
| |
| |
* Required packages for running iButton Manager: procps, dialog, libusb1.0, curl | * Download owfs from https://github.com/owfs/owfs/releases |
* Download owfs from http://owfs.sourceforge.net | |
* Extract the source code | * Extract the source code |
* Compile owfs by issuing | * Compile owfs by issuing |
| |
Version 2.9px | |
./bootstrap | ./bootstrap |
autoreconf -if | |
./configure --disable-owtcl | ./configure --disable-owtcl |
make | make |
make install | make install |
| |
Version 3.x | |
./bootstrap | |
./configure --disable-owtcl | |
make | |
make install | |
| |
As of Version 3.x it should be enough just to run ./configure (no bootstrap and no autoreconf since this seems to break the configure script). | |
| |
There used to be an issue when compiling (any version of) owfs - see also [[https://sourceforge.net/p/owfs/mailman/message/34817075/]] for compiling errors on cygwin - however at some point after updating Cygwin to the latest version those issues vanished. | |
| |
=====USB-Driver (libusb1, owfs version 3.x)===== | =====USB-Driver (libusb1, owfs version 3.x)===== |
| |
See http://libusb.org/wiki/windows_backend Chapter "Driver Installation". I recommend to use Zadig http://zadig.akeo.ie/ to perform the driver installation. This is required in order for owserver to be able to connect to the USB device. It seems that the command //lsusb// shows the device also without the driver being installed. | See http://libusb.org/wiki/windows_backend Chapter "Driver Installation". I recommend to use Zadig http://zadig.akeo.ie/ to perform the driver installation. This is required in order for owserver to be able to connect to the USB device. It seems that the command //lsusb// shows the device also without the driver being installed. |
=====USB-Driver (libusb0, owfs version 2.x)===== | |
Download [[http://sourceforge.net/apps/trac/libusb-win32/wiki|libusb-win32]], extract, follow the instructions on the website. Start the INF-Wizard program, choose the device (Vendor ID 0x04FA, Product ID 0x2490) and generate a corresponding INF file. Update the driver for the DS9490-USB-Adapter in Windows-Device-Manager and indicate the directory containing the generated INF-file. If necessary remove any previously installed Dallas driver [[http://owfs.org/index.php?page=windows-usb]]. | |
| |
Afterwards //testlibusb// should report the USB-Adapter | |
| |
$ testlibusb | |
Dev #0: 0000 - 0000 | |
Dev #1: 04FA - 2490 | |
| |
=====Testing===== | =====Testing===== |
#Read directory | #Read directory |
/opt/owfs/bin/owdir.exe -s 3000 / | /opt/owfs/bin/owdir.exe -s 3000 / |
| |
| On some installations I encountered the problem that owserver starts and then stop immediately without any error. It works perfectly fine though when you start it in foreground mode. Hence you can try the following workaround: let owserver run in foreground mode but start it as a background process using the shell's job control (by appending the ampersand character ("&") to the end of the command). |
| /opt/owfs/bin/owserver.exe -u -p 3000 --foreground & |
| |