q3aql / aria2-static-builds

MOVED: https://git.q3aql.dev/q3aql/aria2-static-builds
https://aria2.github.io/
GNU General Public License v2.0
692 stars 111 forks source link

Cann't build with msys2 on Windows? #24

Closed RedHairSakuragiHanamichi closed 2 years ago

RedHairSakuragiHanamichi commented 2 years ago

Somebody can tell me, how to build with msys2 on Windows?

RedHairSakuragiHanamichi commented 2 years ago

I have Fix it. I build win32 aria2c.exe with msys2 on Windows 10. But it still need "bcrypt.dll", I donn't why.

q3aql commented 2 years ago

Did you compile it using OpenSSL or Windows TLS?

q3aql commented 2 years ago

@RedHairSakuragiHanamichi My builds don't work for you either?

RedHairSakuragiHanamichi commented 2 years ago

https://github.com/q3aql/aria2-static-builds/releases/download/v1.36.0/aria2-1.36.0-win-32bit-build2.7z

build2 can work on XP but i want dll,so I want build it by myself

---Original--- From: @.> Date: Mon, Feb 21, 2022 03:22 AM To: @.>; Cc: @.**@.>; Subject: Re: [q3aql/aria2-static-builds] Cann't build with msys2 on Windows?(Issue #24)

@RedHairSakuragiHanamichi My builds don't work for you either?

aria2-1.36.0-win-32bit-build1.7z

aria2-1.36.0-win-32bit-build2.7z

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

RedHairSakuragiHanamichi commented 2 years ago

OpenSSL

---Original--- From: @.> Date: Mon, Feb 21, 2022 03:20 AM To: @.>; Cc: @.**@.>; Subject: Re: [q3aql/aria2-static-builds] Cann't build with msys2 on Windows?(Issue #24)

Did you compile it using OpenSSL or Windows TLS?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

q3aql commented 2 years ago

The library "bcrypt.dll" does not exist on Windows XP. This library is a dependency on modern Windows systems when using the system's own SSL/TLS library.

If you want to build a Windows XP compatible version, you must compile aria2 using OpenSSL instead of the Windows SSL/TLS library.

You must make sure that you have built OpenSSL correctly and that aria2 then detects it in the "configure" process.

q3aql commented 2 years ago

Also, in case of problems, try overriding SFTP support, as it sometimes uses Windows TLS instead of OpenSSL, which would cause the problem.

RedHairSakuragiHanamichi commented 2 years ago

I sure that I have built OpenSSL correctly and that aria2 then detects it in the "configure" process.

But I donn't know how to compile aria2 using OpenSSL instead of the Windows SSL/TLS library?

---Original--- From: @.> Date: Mon, Feb 21, 2022 03:33 AM To: @.>; Cc: @.**@.>; Subject: Re: [q3aql/aria2-static-builds] Cann't build with msys2 on Windows?(Issue #24)

The library "bcrypt.dll" does not exist on Windows XP. This library is a dependency on modern Windows systems when using the system's own SSL/TLS library.

If you want to build a Windows XP compatible version, you must compile aria2 using OpenSSL instead of the Windows SSL/TLS library.

You must make sure that you have built OpenSSL correctly and that aria2 then detects it in the "configure" process.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

q3aql commented 2 years ago

When you run ./configure --prefix.....blablablabla before doing the "make" command, it shows you which libraries it has detected and will use.

Once the program has been compiled, running the command "aria2c.exe -v" will show you which libraries it has been compiled with.

q3aql@devuan ~> aria2c -v aria2 version 1.36.0 Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Configuration Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32 Libraries: zlib/1.2.11 expat/2.4.1 sqlite3/3.36.0 OpenSSL/1.1.1l c-ares/1.17.2 libssh2/1.9.0 Compiler: gcc 10.2.1 20210110 built by x86_64-pc-linux-gnu on Aug 27 2021 13:08:17 System: Linux 5.16.10-xanmod1 #0~git20220216.ea7a824 SMP Wed Feb 16 16:10:14 UTC 2022 x86_64

Report bugs to https://github.com/aria2/aria2/issues Visit https://aria2.github.io/ q3aql@devuan ~>

RedHairSakuragiHanamichi commented 2 years ago

Yes, I use "--with-openssl". and "aria2c -v" print "OpenSSL/1.1.1l" either the same as you. but it still need need bcypt.dll

---Original--- From: @.> Date: Mon, Feb 21, 2022 03:47 AM To: @.>; Cc: @.**@.>; Subject: Re: [q3aql/aria2-static-builds] Cann't build with msys2 on Windows? (Issue #24)

When you run ./configure --prefix.....blablablabla before doing the "make" command, it shows you which libraries it has detected and will use.

Once the program has been compiled, running the command "aria2c.exe -v" will show you which libraries it has been compiled with.

@.*** ~> aria2c -v aria2 version 1.36.0 Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Configuration Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32 Libraries: zlib/1.2.11 expat/2.4.1 sqlite3/3.36.0 OpenSSL/1.1.1l c-ares/1.17.2 libssh2/1.9.0 Compiler: gcc 10.2.1 20210110 built by x86_64-pc-linux-gnu on Aug 27 2021 13:08:17 System: Linux 5.16.10-xanmod1 #0~git20220216.ea7a824 SMP Wed Feb 16 16:10:14 UTC 2022 x86_64

Report bugs to https://github.com/aria2/aria2/issues Visit https://aria2.github.io/ @.*** ~>

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

q3aql commented 2 years ago

Then it is because the libssh2 library is using the Windows SSL/TLS. Try changing the "--with-libssh2" parameter to "--without-libssh2" when compiling. Then we can see if the problem is there.

RedHairSakuragiHanamichi commented 2 years ago

thank you. I will try it tomorrow.

---Original--- From: @.> Date: Mon, Feb 21, 2022 04:08 AM To: @.>; Cc: @.**@.>; Subject: Re: [q3aql/aria2-static-builds] Cann't build with msys2 on Windows? (Issue #24)

Then it is because the libssh2 library is using the Windows SSL/TLS. Try changing the "--with-libssh2" parameter to "--without-libssh2" when compiling. Then we can see if the problem is there.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

RedHairSakuragiHanamichi commented 2 years ago

Then it is because the libssh2 library is using the Windows SSL/TLS. Try changing the "--with-libssh2" parameter to "--without-libssh2" when compiling. Then we can see if the problem is there.

When I build aria2 with "--without-libssh2",then aria2c.exe show "GetTickCont64" on Windows XP.

RedHairSakuragiHanamichi commented 2 years ago

the problem is msys2 on windows. now I try Ubuntu x64. But I don't known how to intall 32-bit compilation environment. Can you help me please

q3aql commented 2 years ago

You can see the comment on build scripts. Install the packages in the comment lines.

RedHairSakuragiHanamichi commented 2 years ago

Thanks again. I compiled with Ubuntu and solved all the problems