aria2 / aria2

aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.
https://aria2.github.io/
GNU General Public License v2.0
33.95k stars 3.43k forks source link

Problem compiling in mingw static. undefined reference to `libiconv_set_ relocation_prefix #2194

Open Zibri opened 2 months ago

Zibri commented 2 months ago
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/Zibri/aria2/src/includes'
make[3]: Entering directory '/home/Zibri/aria2/src'
  CXXLD    aria2c.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe
: C:/msys64/mingw64/lib\libintl.a(relocatable.o):(.text+0x44): undefined reference to `libiconv_set_
relocation_prefix'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:2158: aria2c.exe] Error 1
make[3]: Leaving directory '/home/Zibri/aria2/src'
make[2]: *** [Makefile:2680: all-recursive] Error 1
make[2]: Leaving directory '/home/Zibri/aria2/src'
make[1]: *** [Makefile:558: all-recursive] Error 1
make[1]: Leaving directory '/home/Zibri/aria2'
make: *** [Makefile:469: all] Error 2
Zibri commented 2 months ago

From MSYS MINGW I did:

# git clone https://github.com/aria2/aria2
# cd aria2
# autoreconf -i
# ./configure ARIA2_STATIC=yes
# make
Zibri commented 2 months ago

help