rakshasa / libtorrent

libTorrent BitTorrent library
http://rtorrent.net/downloads/
GNU General Public License v2.0
883 stars 210 forks source link

How to build libtorrent after commit 53596af? #225

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

In commit 53596af, autogen.sh was removed, how to I build this?

~ $ git clone https://github.com/rakshasa/libtorrent.git
Cloning into 'libtorrent'...
remote: Enumerating objects: 20030, done.
remote: Counting objects: 100% (311/311), done.
remote: Compressing objects: 100% (228/228), done.
remote: Total 20030 (delta 154), reused 156 (delta 83), pack-reused 19719
Receiving objects: 100% (20030/20030), 10.93 MiB | 11.39 MiB/s, done.
Resolving deltas: 100% (12756/12756), done.
~ $ cd libtorrent
~/libtorrent $ ./autogen.sh
-bash: ./autogen.sh: No such file or directory
 ~/libtorrent $ ./configure
-bash: ./configure: No such file or directory
~/libtorrent $ autoconf 
configure.ac:4: error: possibly undefined macro: AC_CONFIG_MACRO_DIRS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:5: error: possibly undefined macro: AM_INIT_AUTOMAKE
~/libtorrent $ ./configure 
./configure: line 2069: syntax error near unexpected token `scripts'
./configure: line 2069: `AC_CONFIG_MACRO_DIRS(scripts)'
rakshasa commented 2 years ago

autoreconf -fi

Using autogen.sh scripts is considered obsolete.

ghost commented 2 years ago

thanks! it works!

WagnerGMD commented 1 year ago
git clone https://github.com/rakshasa/libtorrent.git RakShasa-LibTorrent;\
cd RakShasa-LibTorrent;\
git checkout master;\
autoreconf -fi;\
./configure;\
make;\
make install;\
cd ../;

To resume, even today (2023/03/27) inside the branch master the file autogen.sh doesn't exist. Then that's correct, as you can read that's work to build (install) "LibTorrent".

git clone https://github.com/rakshasa/libtorrent.git RakShasa-LibTorrent;\
cd RakShasa-LibTorrent;\
git checkout v0.13.8;\
./autogen.sh;\
./configure;\
make;\
make install;\
cd ../;

Now you can see the difference between the master and latest release (which was published the 19 July 2019) ! How many commit (difference) ? Be my guest to count them. Because despite a huge patience, we can guess it will take a very long time for a new one (and for a reply made a wish (like this one just wait 5 months and you will see one year has past)).