fsphil / hacktv

Analogue TV transmitter for the HackRF
GNU General Public License v3.0
713 stars 84 forks source link

Problems when building HackTV for Windows (implicit declarations) #26

Closed Zcooger closed 5 years ago

Zcooger commented 5 years ago

System Info:

System:    Host: MINT-PORTABLE Kernel: 4.15.0-36-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1) dm: lightdm Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: LENOVO product: 24295XG v: ThinkPad T530 serial: N/A
           Mobo: LENOVO model: 24295XG serial: N/A
           UEFI [Legacy]: LENOVO v: G4ETB3WW (2.73 ) date: 06/11/2018
           Chassis: type: 10 serial: N/A
Battery    BAT0: charge: 44.5 Wh 99.9% condition: 44.5/85.9 Wh (52%) volts: 12.2/10.8
           model: SANYO 45N1173 serial: <filter>status: Full
CPU:       Dual core Intel Core i7-3520M (-MT-MCP-) arch: Ivy Bridge rev.9 cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11574
           clock speeds: min/max: 1200/3600 MHz 1: 1197 MHz 2: 1197 MHz 3: 1197 MHz 4: 1198 MHz
Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0 chip-ID: 8086:0166
           Card-2: NVIDIA GF108M [NVS 5400M] bus-ID: 01:00.0 chip-ID: 10de:0def
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1600x900@60.22hz
           OpenGL: renderer: N/A version: N/A Direct Render: N/A
Audio:     Card Intel 7 Series/C216 Family High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:1e20
           Sound: Advanced Linux Sound Architecture v: k4.15.0-36-generic
Network:   Card-1: Intel 82579LM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: 7080 bus-ID: 00:19.0 chip-ID: 8086:1502
           IF: enp0s25 state: up speed: 100 Mbps duplex: full mac: <filter>
           Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak]
           driver: iwlwifi bus-ID: 03:00.0 chip-ID: 8086:0085
           IF: wlp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 870.2GB (32.5% used)
           ID-1: /dev/mmcblk0 model: N/A size: 1.0GB serial: <filter>
           ID-2: /dev/sda model: Corsair_Force_LE size: 120.0GB serial: <filter>
           ID-3: USB /dev/sdb model: MK7559GSM size: 750.2GB serial: <filter>
Partition: ID-1: / size: 19G used: 9.4G (54%) fs: ext4 dev: /dev/sdb5
           ID-2: /home size: 208G used: 11G (6%) fs: ext4 dev: /dev/sdb7
           ID-3: swap-1 size: 2.05GB used: 0.00GB (0%) fs: swap dev: /dev/sdb6
RAID:      System: supported: N/A
           No RAID devices: /proc/mdstat, md_mod kernel module present
           Unused Devices: none
Sensors:   System Temperatures: cpu: 54.0C mobo: N/A gpu: 0.0:53C
           Fan Speeds (in rpm): cpu: 2388
Repos:     Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http: //mirrors.evowise.com/linuxmint/packages tara main upstream import backport
           deb http: //ubuntu.mirror.true.nl/ubuntu bionic main restricted universe multiverse
           deb http: //ubuntu.mirror.true.nl/ubuntu bionic-updates main restricted universe multiverse
           deb http: //ubuntu.mirror.true.nl/ubuntu bionic-backports main restricted universe multiverse
           deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb http: //archive.canonical.com/ubuntu/ bionic partner
           Active apt sources in file: /etc/apt/sources.list.d/spotify.list
           deb http: //repository.spotify.com stable non-free
Info:      Processes: 239 Uptime: 54 min Memory: 1739.6/3645.5MB
           Init: systemd v: 237 runlevel: 5 Gcc sys: 7.3.0 Client: Unknown python3.6 client inxi: 2.3.56

Log:

zcooger@MINT-PORTABLE:~/Desktop/hacktv-master$ sudo ./build_win64.sh 
[sudo] password for zcooger:         
+ HOST=x86_64-w64-mingw32
++ pwd
+ PREFIX=/home/zcooger/Desktop/hacktv-master/build_win64/install_root
+ export PKG_CONFIG_PATH=/home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/pkgconfig
+ PKG_CONFIG_PATH=/home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/pkgconfig
+ mkdir -p /home/zcooger/Desktop/hacktv-master/build_win64/install_root
+ cd build_win64
+ [[ ! -f /home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/libusb-1.0.a ]]
+ [[ ! -f libusb-1.0.22.tar.bz2 ]]
+ wget https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2
--2019-02-12 15:33:24--  https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/15120676/52ad2e32-2f90-11e8-8b78-f2ee838f3d05?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190212%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190212T143324Z&X-Amz-Expires=300&X-Amz-Signature=ffac22754fdd53f445ae341ce720f84f61ea94bbd562429843f6bbeb6053722b&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibusb-1.0.22.tar.bz2&response-content-type=application%2Foctet-stream [following]
--2019-02-12 15:33:24--  https://github-production-release-asset-2e65be.s3.amazonaws.com/15120676/52ad2e32-2f90-11e8-8b78-f2ee838f3d05?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190212%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190212T143324Z&X-Amz-Expires=300&X-Amz-Signature=ffac22754fdd53f445ae341ce720f84f61ea94bbd562429843f6bbeb6053722b&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibusb-1.0.22.tar.bz2&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.163.59
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.163.59|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 598833 (585K) [application/octet-stream]
Saving to: ‘libusb-1.0.22.tar.bz2’

libusb-1.0.22.tar.b 100%[===================>] 584,80K   798KB/s    in 0,7s    

2019-02-12 15:33:25 (798 KB/s) - ‘libusb-1.0.22.tar.bz2’ saved [598833/598833]

+ tar -xvjf libusb-1.0.22.tar.bz2
libusb-1.0.22/
libusb-1.0.22/tests/
libusb-1.0.22/tests/Makefile.am
libusb-1.0.22/tests/testlib.c
libusb-1.0.22/tests/libusb_testlib.h
libusb-1.0.22/tests/stress.c
libusb-1.0.22/tests/Makefile.in
libusb-1.0.22/android/
libusb-1.0.22/android/README
libusb-1.0.22/android/config.h
libusb-1.0.22/android/jni/
libusb-1.0.22/android/jni/Android.mk
libusb-1.0.22/android/jni/examples.mk
libusb-1.0.22/android/jni/Application.mk
libusb-1.0.22/android/jni/libusb.mk
libusb-1.0.22/android/jni/tests.mk
libusb-1.0.22/Xcode/
libusb-1.0.22/Xcode/release.xcconfig
libusb-1.0.22/Xcode/libusb_debug.xcconfig
libusb-1.0.22/Xcode/libusb.xcconfig
libusb-1.0.22/Xcode/config.h
libusb-1.0.22/Xcode/libusb_release.xcconfig
libusb-1.0.22/Xcode/common.xcconfig
libusb-1.0.22/Xcode/debug.xcconfig
libusb-1.0.22/Xcode/libusb.xcodeproj/
libusb-1.0.22/Xcode/libusb.xcodeproj/project.pbxproj
libusb-1.0.22/README
libusb-1.0.22/depcomp
libusb-1.0.22/m4/
libusb-1.0.22/m4/libtool.m4
libusb-1.0.22/m4/ltsugar.m4
libusb-1.0.22/m4/ltoptions.m4
libusb-1.0.22/m4/ltversion.m4
libusb-1.0.22/m4/lt~obsolete.m4
libusb-1.0.22/msvc/
libusb-1.0.22/msvc/appveyor.bat
libusb-1.0.22/msvc/listdevs_2010.vcxproj
libusb-1.0.22/msvc/libusb_dll_2017.vcxproj
libusb-1.0.22/msvc/libusb_dll_2010.vcxproj
libusb-1.0.22/msvc/stress_2005.vcproj
libusb-1.0.22/msvc/libusb_dll_2012.vcxproj
libusb-1.0.22/msvc/xusb_2012.vcxproj
libusb-1.0.22/msvc/libusb_dll_2005.vcproj
libusb-1.0.22/msvc/ddk_build.cmd
libusb-1.0.22/msvc/libusb_2005.sln
libusb-1.0.22/msvc/libusb_2010.sln
libusb-1.0.22/msvc/fxload_2013.vcxproj
libusb-1.0.22/msvc/testlibusb_2017.vcxproj
libusb-1.0.22/msvc/getopt_2005.vcproj
libusb-1.0.22/msvc/listdevs_2013.vcxproj
libusb-1.0.22/msvc/getopt_2017.vcxproj
libusb-1.0.22/msvc/listdevs_wince.vcproj
libusb-1.0.22/msvc/testlibusb_2010.vcxproj
libusb-1.0.22/msvc/libusb_dll_wince.vcproj
libusb-1.0.22/msvc/missing.h
libusb-1.0.22/msvc/xusb_2005.vcproj
libusb-1.0.22/msvc/libusb_wince.sln
libusb-1.0.22/msvc/config.h
libusb-1.0.22/msvc/xusb.dsp
libusb-1.0.22/msvc/stress_2013.vcxproj
libusb-1.0.22/msvc/fxload_2012.vcxproj
libusb-1.0.22/msvc/libusb_static_2010.vcxproj
libusb-1.0.22/msvc/listdevs_2015.vcxproj
libusb-1.0.22/msvc/testlibusb_2015.vcxproj
libusb-1.0.22/msvc/libusb_dll.dsp
libusb-1.0.22/msvc/listdevs_sources
libusb-1.0.22/msvc/listdevs_2005.vcproj
libusb-1.0.22/msvc/libusb_static_2017.vcxproj
libusb-1.0.22/msvc/hotplugtest_2017.vcxproj
libusb-1.0.22/msvc/stress_2015.vcxproj
libusb-1.0.22/msvc/hotplugtest_2010.vcxproj
libusb-1.0.22/msvc/getopt_2010.vcxproj
libusb-1.0.22/msvc/listdevs_2017.vcxproj
libusb-1.0.22/msvc/stress_2010.vcxproj
libusb-1.0.22/msvc/fxload_sources
libusb-1.0.22/msvc/libusb_dll_2015.vcxproj
libusb-1.0.22/msvc/libusb_2012.sln
libusb-1.0.22/msvc/listdevs.dsp
libusb-1.0.22/msvc/errno.h
libusb-1.0.22/msvc/libusb_static_2012.vcxproj
libusb-1.0.22/msvc/stress_sources
libusb-1.0.22/msvc/xusb_2015.vcxproj
libusb-1.0.22/msvc/listdevs_2012.vcxproj
libusb-1.0.22/msvc/stress_2012.vcxproj
libusb-1.0.22/msvc/fxload_2010.vcxproj
libusb-1.0.22/msvc/libusb_2017.sln
libusb-1.0.22/msvc/xusb_2010.vcxproj
libusb-1.0.22/msvc/libusb_static_2013.vcxproj
libusb-1.0.22/msvc/inttypes.h
libusb-1.0.22/msvc/hotplugtest_2012.vcxproj
libusb-1.0.22/msvc/xusb_2017.vcxproj
libusb-1.0.22/msvc/stress_wince.vcproj
libusb-1.0.22/msvc/hotplugtest_sources
libusb-1.0.22/msvc/xusb_2013.vcxproj
libusb-1.0.22/msvc/hotplugtest_2013.vcxproj
libusb-1.0.22/msvc/libusb_dll_2013.vcxproj
libusb-1.0.22/msvc/libusb_static.dsp
libusb-1.0.22/msvc/libusb_static_2005.vcproj
libusb-1.0.22/msvc/xusb_wince.vcproj
libusb-1.0.22/msvc/hotplugtest_2015.vcxproj
libusb-1.0.22/msvc/testlibusb_2013.vcxproj
libusb-1.0.22/msvc/getopt_2013.vcxproj
libusb-1.0.22/msvc/stdint.h
libusb-1.0.22/msvc/testlibusb_2012.vcxproj
libusb-1.0.22/msvc/libusb_sources
libusb-1.0.22/msvc/xusb_sources
libusb-1.0.22/msvc/missing.c
libusb-1.0.22/msvc/libusb_2015.sln
libusb-1.0.22/msvc/libusb_static_2015.vcxproj
libusb-1.0.22/msvc/libusb_2013.sln
libusb-1.0.22/msvc/getopt_sources
libusb-1.0.22/msvc/fxload_2017.vcxproj
libusb-1.0.22/msvc/getopt_2015.vcxproj
libusb-1.0.22/msvc/fxload_2015.vcxproj
libusb-1.0.22/msvc/libusb_static_wince.vcproj
libusb-1.0.22/msvc/stress_2017.vcxproj
libusb-1.0.22/msvc/getopt_2012.vcxproj
libusb-1.0.22/msvc/testlibusb_sources
libusb-1.0.22/msvc/libusb.dsw
libusb-1.0.22/install-sh
libusb-1.0.22/Makefile.am
libusb-1.0.22/config.h.in
libusb-1.0.22/TODO
libusb-1.0.22/config.sub
libusb-1.0.22/aclocal.m4
libusb-1.0.22/config.guess
libusb-1.0.22/examples/
libusb-1.0.22/examples/dpfp.c
libusb-1.0.22/examples/fxload.c
libusb-1.0.22/examples/ezusb.h
libusb-1.0.22/examples/Makefile.am
libusb-1.0.22/examples/listdevs.c
libusb-1.0.22/examples/sam3u_benchmark.c
libusb-1.0.22/examples/dpfp_threaded.c
libusb-1.0.22/examples/getopt/
libusb-1.0.22/examples/getopt/getopt1.c
libusb-1.0.22/examples/getopt/getopt.c
libusb-1.0.22/examples/getopt/getopt.h
libusb-1.0.22/examples/hotplugtest.c
libusb-1.0.22/examples/testlibusb.c
libusb-1.0.22/examples/ezusb.c
libusb-1.0.22/examples/xusb.c
libusb-1.0.22/examples/Makefile.in
libusb-1.0.22/INSTALL
libusb-1.0.22/ChangeLog
libusb-1.0.22/NEWS
libusb-1.0.22/AUTHORS
libusb-1.0.22/missing
libusb-1.0.22/libusb-1.0.pc.in
libusb-1.0.22/ltmain.sh
libusb-1.0.22/configure.ac
libusb-1.0.22/PORTING
libusb-1.0.22/COPYING
libusb-1.0.22/libusb/
libusb-1.0.22/libusb/strerror.c
libusb-1.0.22/libusb/version.h
libusb-1.0.22/libusb/libusb-1.0.rc
libusb-1.0.22/libusb/libusb-1.0.def
libusb-1.0.22/libusb/os/
libusb-1.0.22/libusb/os/windows_winusb.h
libusb-1.0.22/libusb/os/windows_common.h
libusb-1.0.22/libusb/os/windows_nt_shared_types.h
libusb-1.0.22/libusb/os/wince_usb.c
libusb-1.0.22/libusb/os/threads_posix.c
libusb-1.0.22/libusb/os/haiku_pollfs.cpp
libusb-1.0.22/libusb/os/poll_windows.c
libusb-1.0.22/libusb/os/wince_usb.h
libusb-1.0.22/libusb/os/threads_windows.c
libusb-1.0.22/libusb/os/windows_usbdk.c
libusb-1.0.22/libusb/os/openbsd_usb.c
libusb-1.0.22/libusb/os/netbsd_usb.c
libusb-1.0.22/libusb/os/windows_usbdk.h
libusb-1.0.22/libusb/os/haiku_usb_raw.cpp
libusb-1.0.22/libusb/os/linux_netlink.c
libusb-1.0.22/libusb/os/threads_posix.h
libusb-1.0.22/libusb/os/haiku_usb.h
libusb-1.0.22/libusb/os/poll_posix.c
libusb-1.0.22/libusb/os/haiku_usb_raw.h
libusb-1.0.22/libusb/os/poll_posix.h
libusb-1.0.22/libusb/os/darwin_usb.c
libusb-1.0.22/libusb/os/haiku_usb_backend.cpp
libusb-1.0.22/libusb/os/windows_winusb.c
libusb-1.0.22/libusb/os/linux_usbfs.h
libusb-1.0.22/libusb/os/linux_usbfs.c
libusb-1.0.22/libusb/os/windows_nt_common.h
libusb-1.0.22/libusb/os/sunos_usb.c
libusb-1.0.22/libusb/os/darwin_usb.h
libusb-1.0.22/libusb/os/poll_windows.h
libusb-1.0.22/libusb/os/threads_windows.h
libusb-1.0.22/libusb/os/windows_nt_common.c
libusb-1.0.22/libusb/os/linux_udev.c
libusb-1.0.22/libusb/os/sunos_usb.h
libusb-1.0.22/libusb/hotplug.h
libusb-1.0.22/libusb/sync.c
libusb-1.0.22/libusb/Makefile.am
libusb-1.0.22/libusb/core.c
libusb-1.0.22/libusb/hotplug.c
libusb-1.0.22/libusb/libusbi.h
libusb-1.0.22/libusb/version_nano.h
libusb-1.0.22/libusb/descriptor.c
libusb-1.0.22/libusb/io.c
libusb-1.0.22/libusb/libusb.h
libusb-1.0.22/libusb/Makefile.in
libusb-1.0.22/compile
libusb-1.0.22/Makefile.in
libusb-1.0.22/configure
libusb-1.0.22/doc/
libusb-1.0.22/doc/Makefile.am
libusb-1.0.22/doc/doxygen.cfg.in
libusb-1.0.22/doc/Makefile.in
+ cd libusb-1.0.22
+ ./configure --host=x86_64-w64-mingw32 --prefix=/home/zcooger/Desktop/hacktv-master/build_win64/install_root --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-w64-mingw32-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for x86_64-w64-mingw32-g++... no
checking for x86_64-w64-mingw32-c++... no
checking for x86_64-w64-mingw32-gpp... no
checking for x86_64-w64-mingw32-aCC... no
checking for x86_64-w64-mingw32-CC... no
checking for x86_64-w64-mingw32-cxx... no
checking for x86_64-w64-mingw32-cc++... no
checking for x86_64-w64-mingw32-cl.exe... no
checking for x86_64-w64-mingw32-FCC... no
checking for x86_64-w64-mingw32-KCC... no
checking for x86_64-w64-mingw32-RCC... no
checking for x86_64-w64-mingw32-xlC_r... no
checking for x86_64-w64-mingw32-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for x86_64-w64-mingw32-dumpbin... no
checking for x86_64-w64-mingw32-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-w64-mingw32-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for x86_64-w64-mingw32-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback
checking for x86_64-w64-mingw32-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-w64-mingw32-strip... strip
checking for x86_64-w64-mingw32-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64-w64-mingw32-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for x86_64-w64-mingw32-windres... no
checking for windres... no
checking for inline... inline
checking operating system... Windows
checking sys/timerfd.h usability... yes
checking sys/timerfd.h presence... yes
checking for sys/timerfd.h... yes
checking whether TFD_NONBLOCK is declared... yes
checking whether TFD_CLOEXEC is declared... yes
checking whether to use timerfd for timing... yes
checking for pipe2... yes
checking for struct timespec... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sigaction... yes
checking whether CC supports -std=gnu99... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make -j4 install
Making install in libusb
make[1]: Entering directory '/home/zcooger/Desktop/hacktv-master/build_win64/libusb-1.0.22/libusb'
  CC       libusb_1_0_la-io.lo
  CC       libusb_1_0_la-hotplug.lo
  CC       libusb_1_0_la-core.lo
  CC       libusb_1_0_la-descriptor.lo
In file included from libusbi.h:284:0,
                 from hotplug.c:33:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libusbi.h:284:0,
                 from io.c:37:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
In file included from libusbi.h:284:0,
                 from descriptor.c:29:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
In file included from libusbi.h:284:0,
                 from core.c:44:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
In file included from libusbi.h:565:0,
                 from hotplug.c:33:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
In file included from libusbi.h:565:0,
                 from io.c:37:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
io.c: In function ‘usbi_io_init’:
io.c:1164:2: error: implicit declaration of function ‘close’; did you mean ‘clock’? [-Werror=implicit-function-declaration]
  close(ctx->timerfd);
  ^~~~~
  clock
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
In file included from libusbi.h:565:0,
                 from core.c:44:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
In file included from libusbi.h:565:0,
                 from descriptor.c:29:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
Makefile:657: recipe for target 'libusb_1_0_la-hotplug.lo' failed
make[1]: *** [libusb_1_0_la-hotplug.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:650: recipe for target 'libusb_1_0_la-descriptor.lo' failed
make[1]: *** [libusb_1_0_la-descriptor.lo] Error 1
Makefile:664: recipe for target 'libusb_1_0_la-io.lo' failed
make[1]: *** [libusb_1_0_la-io.lo] Error 1
Makefile:643: recipe for target 'libusb_1_0_la-core.lo' failed
make[1]: *** [libusb_1_0_la-core.lo] Error 1
make[1]: Leaving directory '/home/zcooger/Desktop/hacktv-master/build_win64/libusb-1.0.22/libusb'
Makefile:476: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
zcooger@MINT-PORTABLE:~/Desktop/hacktv-master$ 

Second attempt:

zcooger@MINT-PORTABLE:~/Desktop/hacktv-master$ sudo ./build_win64.sh 
[sudo] password for zcooger:         
+ HOST=x86_64-w64-mingw32
++ pwd
+ PREFIX=/home/zcooger/Desktop/hacktv-master/build_win64/install_root
+ export PKG_CONFIG_PATH=/home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/pkgconfig
+ PKG_CONFIG_PATH=/home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/pkgconfig
+ mkdir -p /home/zcooger/Desktop/hacktv-master/build_win64/install_root
+ cd build_win64
+ [[ ! -f /home/zcooger/Desktop/hacktv-master/build_win64/install_root/lib/libusb-1.0.a ]]
+ [[ ! -f libusb-1.0.22.tar.bz2 ]]
+ cd libusb-1.0.22
+ ./configure --host=x86_64-w64-mingw32 --prefix=/home/zcooger/Desktop/hacktv-master/build_win64/install_root --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-w64-mingw32-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for x86_64-w64-mingw32-g++... no
checking for x86_64-w64-mingw32-c++... no
checking for x86_64-w64-mingw32-gpp... no
checking for x86_64-w64-mingw32-aCC... no
checking for x86_64-w64-mingw32-CC... no
checking for x86_64-w64-mingw32-cxx... no
checking for x86_64-w64-mingw32-cc++... no
checking for x86_64-w64-mingw32-cl.exe... no
checking for x86_64-w64-mingw32-FCC... no
checking for x86_64-w64-mingw32-KCC... no
checking for x86_64-w64-mingw32-RCC... no
checking for x86_64-w64-mingw32-xlC_r... no
checking for x86_64-w64-mingw32-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for x86_64-w64-mingw32-dumpbin... no
checking for x86_64-w64-mingw32-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-w64-mingw32-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for x86_64-w64-mingw32-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback
checking for x86_64-w64-mingw32-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-w64-mingw32-strip... strip
checking for x86_64-w64-mingw32-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64-w64-mingw32-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for x86_64-w64-mingw32-windres... no
checking for windres... no
checking for inline... inline
checking operating system... Windows
checking sys/timerfd.h usability... yes
checking sys/timerfd.h presence... yes
checking for sys/timerfd.h... yes
checking whether TFD_NONBLOCK is declared... yes
checking whether TFD_CLOEXEC is declared... yes
checking whether to use timerfd for timing... yes
checking for pipe2... yes
checking for struct timespec... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sigaction... yes
checking whether CC supports -std=gnu99... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
+ make -j4 install
Making install in libusb
make[1]: Entering directory '/home/zcooger/Desktop/hacktv-master/build_win64/libusb-1.0.22/libusb'
  CC       libusb_1_0_la-core.lo
  CC       libusb_1_0_la-io.lo
  CC       libusb_1_0_la-hotplug.lo
  CC       libusb_1_0_la-descriptor.lo
In file included from libusbi.h:284:0,
                 from descriptor.c:29:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
In file included from libusbi.h:284:0,
                 from io.c:37:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
In file included from libusbi.h:284:0,
                 from hotplug.c:33:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
In file included from libusbi.h:284:0,
                 from core.c:44:
os/threads_windows.h:28:18: error: unknown type name ‘LONG’
 typedef volatile LONG usbi_mutex_static_t;
                  ^~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_static_unlock’:
os/threads_windows.h:33:2: error: implicit declaration of function ‘InterlockedExchange’ [-Werror=implicit-function-declaration]
  InterlockedExchange(mutex, 0L);
  ^~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:36:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION usbi_mutex_t;
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_init’:
os/threads_windows.h:39:2: error: implicit declaration of function ‘InitializeCriticalSection’ [-Werror=implicit-function-declaration]
  InitializeCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_lock’:
os/threads_windows.h:44:2: error: implicit declaration of function ‘EnterCriticalSection’ [-Werror=implicit-function-declaration]
  EnterCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_unlock’:
os/threads_windows.h:48:2: error: implicit declaration of function ‘LeaveCriticalSection’ [-Werror=implicit-function-declaration]
  LeaveCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_trylock’:
os/threads_windows.h:52:10: error: implicit declaration of function ‘TryEnterCriticalSection’ [-Werror=implicit-function-declaration]
  return !TryEnterCriticalSection(mutex);
          ^~~~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
In file included from libusbi.h:565:0,
                 from descriptor.c:29:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
os/threads_windows.h: In function ‘usbi_mutex_destroy’:
os/threads_windows.h:56:2: error: implicit declaration of function ‘DeleteCriticalSection’ [-Werror=implicit-function-declaration]
  DeleteCriticalSection(mutex);
  ^~~~~~~~~~~~~~~~~~~~~
os/threads_windows.h: At top level:
os/threads_windows.h:88:9: error: unknown type name ‘DWORD’
 typedef DWORD usbi_tls_key_t;
         ^~~~~
In file included from libusbi.h:565:0,
                 from io.c:37:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_create’:
os/threads_windows.h:91:9: error: implicit declaration of function ‘TlsAlloc’; did you mean ‘valloc’? [-Werror=implicit-function-declaration]
  *key = TlsAlloc();
         ^~~~~~~~
         valloc
io.c: In function ‘usbi_io_init’:
io.c:1164:2: error: implicit declaration of function ‘close’; did you mean ‘clock’? [-Werror=implicit-function-declaration]
  close(ctx->timerfd);
  ^~~~~
  clock
os/threads_windows.h: In function ‘usbi_tls_key_get’:
os/threads_windows.h:95:9: error: implicit declaration of function ‘TlsGetValue’ [-Werror=implicit-function-declaration]
  return TlsGetValue(key);
         ^~~~~~~~~~~
os/threads_windows.h:95:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return TlsGetValue(key);
         ^~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_set’:
os/threads_windows.h:99:8: error: implicit declaration of function ‘TlsSetValue’ [-Werror=implicit-function-declaration]
  (void)TlsSetValue(key, ptr);
        ^~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
os/threads_windows.h: In function ‘usbi_tls_key_delete’:
os/threads_windows.h:103:8: error: implicit declaration of function ‘TlsFree’ [-Werror=implicit-function-declaration]
  (void)TlsFree(key);
        ^~~~~~~
In file included from libusbi.h:565:0,
                 from hotplug.c:33:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
os/threads_windows.h: In function ‘usbi_get_tid’:
os/threads_windows.h:108:14: error: implicit declaration of function ‘GetCurrentThreadId’ [-Werror=implicit-function-declaration]
  return (int)GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
In file included from libusbi.h:565:0,
                 from core.c:44:
os/poll_windows.h: At top level:
os/poll_windows.h:61:2: error: unknown type name ‘OVERLAPPED’
  OVERLAPPED *overlapped;  // what will report our I/O status
  ^~~~~~~~~~
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
Makefile:657: recipe for target 'libusb_1_0_la-hotplug.lo' failed
make[1]: *** [libusb_1_0_la-hotplug.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:650: recipe for target 'libusb_1_0_la-descriptor.lo' failed
make[1]: *** [libusb_1_0_la-descriptor.lo] Error 1
cc1: some warnings being treated as errors
Makefile:664: recipe for target 'libusb_1_0_la-io.lo' failed
make[1]: *** [libusb_1_0_la-io.lo] Error 1
cc1: some warnings being treated as errors
Makefile:643: recipe for target 'libusb_1_0_la-core.lo' failed
make[1]: *** [libusb_1_0_la-core.lo] Error 1
make[1]: Leaving directory '/home/zcooger/Desktop/hacktv-master/build_win64/libusb-1.0.22/libusb'
Makefile:476: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
zcooger@MINT-PORTABLE:~/Desktop/hacktv-master$ 
neo7530 commented 5 years ago

I have setup a virtual Fedora distri for compiling it for Windows.

fsphil commented 5 years ago

I can't really help with this, cross compiling is a bit of a dark art to me. It's not clear from the errors what's missing in your system.

Zcooger commented 5 years ago

Ok. I will try next time in the future. I close it for now.