Closed maxgerhardt closed 1 year ago
Oh I see my error now. It's supposed to be build in "MSYS2/MSYS", not "MSYS2/MinGW64". Retrying.
Using the build.sh
above in the MSYS2/MSYS environment results in a compiled binary that cannot be executed
$ avarice_installed/usr/bin/avarice.exe --help
C:/msys64/home/Max/avarice_florin/avarice_installed/usr/bin/avarice.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
and that's although all .dll's are found
$ ldd avarice_installed/usr/bin/avarice.exe
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffda8210000)
KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffda7fe0000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffda5e20000)
msys-hidapi-0.dll => /usr/bin/msys-hidapi-0.dll (0x522210000)
msys-2.0.dll => /usr/bin/msys-2.0.dll (0x180040000)
msys-usb-0-1-4.dll => /usr/bin/msys-usb-0-1-4.dll (0x5705a0000)
msys-gcc_s-seh-1.dll => /usr/bin/msys-gcc_s-seh-1.dll (0x5e8160000)
msys-stdc++-6.dll => /usr/bin/msys-stdc++-6.dll (0x526840000)
Aha, I just had to copy /mingw64/bin/libusb-1.0.dll
into the binary directory for it to be ablet to find the missing librariy.
I'm trying to compile this repository for Windows using MSys2/MinGW64, which should work according to older releases like Support for ATmega4809, but I can't get this to work for the newest version.
First of all I had to adapt the
build.sh
to fix issues with parameter order and github links that required SSH authentication instead of just using HTTPS.Even then, this won't compile due to missing
termios.h
in MinGW.