I am building on a clean, minimal install of Ubuntu 19.04. libusb-cross-builder runs OK, but libftdi-cross-builder fails, not finding libconfuse. I've tried various ways to resolve this dependancy (installing libconfuse as a package, building and installing from source) without success. Any advice much appreciated.
Edit: I see that ftdi_eeprom depends on the libconfuse library, presumably a win64 build is required. I will search for a recipe.
Session transcript follows:
$ git clone https://github.com/FPGAwars/libftdi-cross-builder.git
$ cd libftdi-cross-builder/
$ bash build-windows_x86_64.sh
Installing dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
git is already the newest version (1:2.20.1-2ubuntu1).
zip is already the newest version (3.0-11build1).
zip set to manually installed.
mingw-w64 is already the newest version (6.0.0-3).
The following packages were automatically installed and are no longer required:
fonts-liberation2 fonts-opensymbol gir1.2-geocodeglib-1.0
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0
gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 guile-2.2-libs
libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-iostreams1.67.0
libboost-locale1.67.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5
libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1 libeot0
libepubgen-0.1-1 libetonyek-0.1-1 libfreerdp-client2-2 libfreerdp2-2
libgc1c2 libgee-0.8-2 libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4
liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0
libminiupnpc17 libmspub-0.1-1 libodfgen-0.1-1 liborcus-0.14-0 libqqwing2v5
libraw19 librevenge-0.0-0 libsgutils2-2 libsuitesparseconfig5 libvncclient1
libwinpr2-2 libxmlsec1-nss lp-solve media-player-info python3-mako
python3-markupsafe syslinux syslinux-common syslinux-legacy
usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cmake-data libjsoncpp1 librhash0 libuv1 pkg-config
Suggested packages:
cmake-doc ninja-build
The following NEW packages will be installed
cmake cmake-data libjsoncpp1 librhash0 libuv1 mingw-w64-tools pkg-config
0 to upgrade, 7 to newly install, 0 to remove and 8 not to upgrade.
Need to get 5,469 kB of archives.
After this operation, 27.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 cmake-data all 3.13.4-1 [1,458 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 libjsoncpp1 amd64 1.7.4-3 [73.6 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 librhash0 amd64 1.3.8-1 [113 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 libuv1 amd64 1.24.1-1 [69.5 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 cmake amd64 3.13.4-1 [3,471 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu disco/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu disco/universe amd64 mingw-w64-tools amd64 6.0.0-3 [239 kB]
Fetched 5,469 kB in 2s (3,381 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 172401 files and directories currently installed.)
Preparing to unpack .../0-cmake-data_3.13.4-1_all.deb ...
Unpacking cmake-data (3.13.4-1) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../1-libjsoncpp1_1.7.4-3_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.4-3) ...
Selecting previously unselected package librhash0:amd64.
Preparing to unpack .../2-librhash0_1.3.8-1_amd64.deb ...
Unpacking librhash0:amd64 (1.3.8-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../3-libuv1_1.24.1-1_amd64.deb ...
Unpacking libuv1:amd64 (1.24.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../4-cmake_3.13.4-1_amd64.deb ...
Unpacking cmake (3.13.4-1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../5-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Selecting previously unselected package mingw-w64-tools.
Preparing to unpack .../6-mingw-w64-tools_6.0.0-3_amd64.deb ...
Unpacking mingw-w64-tools (6.0.0-3) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up librhash0:amd64 (1.3.8-1) ...
Setting up cmake-data (3.13.4-1) ...
Setting up libjsoncpp1:amd64 (1.7.4-3) ...
Setting up mingw-w64-tools (6.0.0-3) ...
Setting up cmake (3.13.4-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
fatal: cannot change to 'libftdi': No such file or directory
Cloning into 'libftdi'...
remote: Counting objects: 4081, done.
remote: Compressing objects: 100% (2318/2318), done.
remote: Total 4081 (delta 2724), reused 2601 (delta 1752)
Receiving objects: 100% (4081/4081), 1.24 MiB | 413.00 KiB/s, done.
Resolving deltas: 100% (2724/2724), done.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: RelWithDebInfo
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0'
-- No package 'libusb-1.0' found
-- Found LIBUSB: /home/adam/.windows_x86_64/bin/libusb-1.0.dll
-- Detected git snapshot version: v1.4-19-g9210598
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Confuse (missing: CONFUSE_LIBRARY CONFUSE_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindConfuse.cmake:66 (find_package_handle_standard_args)
ftdi_eeprom/CMakeLists.txt:1 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/adam/work/libftdi-cross-builder/build_windows_x86_64/libftdi/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lftdi1
collect2: error: ld returned 1 exit status
zip warning: name not matched: find_all.exe
zip error: Nothing to do! (find_all-example-windows_x86_64-2.zip)
mv: cannot stat 'find_all-example-windows_x86_64-2.zip': No such file or directory
bin/
bin/libusb-1.0.dll
include/
include/libusb-1.0/
include/libusb-1.0/libusb.h
lib/
lib/pkgconfig/
lib/pkgconfig/libusb-1.0.pc
lib/libusb-1.0.dll.a
lib/libusb-1.0.la
lib/libusb-1.0.a
adding: bin/ (stored 0%)
adding: bin/libusb-1.0.dll (deflated 68%)
adding: include/ (stored 0%)
adding: include/libusb-1.0/ (stored 0%)
adding: include/libusb-1.0/libusb.h (deflated 76%)
adding: lib/ (stored 0%)
adding: lib/pkgconfig/ (stored 0%)
adding: lib/pkgconfig/libusb-1.0.pc (deflated 30%)
adding: lib/libusb-1.0.dll.a (deflated 94%)
adding: lib/libusb-1.0.la (deflated 47%)
adding: lib/libusb-1.0.a (deflated 64%)
I am building on a clean, minimal install of Ubuntu 19.04. libusb-cross-builder runs OK, but libftdi-cross-builder fails, not finding libconfuse. I've tried various ways to resolve this dependancy (installing libconfuse as a package, building and installing from source) without success. Any advice much appreciated.
Edit: I see that ftdi_eeprom depends on the libconfuse library, presumably a win64 build is required. I will search for a recipe.
Session transcript follows: