Comments (52)
Hi @tchoulihan, can you take a look at build_windows.bat? it's a lot more documented, and you can extrapolate the ideas to the linux script. Let me know if some step is not clear.
What I can tell you is that you should not need any system install besides libssl and libcrypto++. Just uncompress boost_1.58 and libtorrent (I work with libtorrent RC_1_0 branch) and point the variables $BOOST_ROOT and $LIBTORRENT_ROOT.
Read this too: #18, specially the part about "const static".
from frostwire-jlibtorrent.
There are several directory possibilities for both boost and libtorrent_root that make this difficult. What would work better, is if you could tell me what type of files the installer is looking for.
For boost, the files/folders I find are:
/usr/include/c++/4.8/bits/boost_concept_check.h
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0
/usr/lib/x86_64-linux-gnu/libboost_python-py34.so.1.54.0
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0
/usr/share/app-install/desktop/pianobooster:pianobooster.desktop
/usr/share/app-install/icons/pianobooster.png
/usr/share/doc/libboost-python1.54.0
/usr/share/doc/libboost-system1.54.0
/usr/share/doc/libboost-python1.54.0/changelog.Debian.gz
/usr/share/doc/libboost-python1.54.0/copyright
/usr/share/doc/libboost-system1.54.0/changelog.Debian.gz
/usr/share/doc/libboost-system1.54.0/copyright
/usr/share/lintian/overrides/libboost-python1.54.0
/usr/share/lintian/overrides/libboost-system1.54.0
/usr/src/linux-headers-3.13.0-45/scripts/rt-tester/t4-l2-pi-deboost.tst
/usr/src/linux-headers-3.13.0-45/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst
/usr/src/linux-headers-3.13.0-45/scripts/rt-tester/t5-l4-pi-boost-deboost.tst
/usr/src/linux-headers-3.13.0-46/scripts/rt-tester/t4-l2-pi-deboost.tst
/usr/src/linux-headers-3.13.0-46/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst
/usr/src/linux-headers-3.13.0-46/scripts/rt-tester/t5-l4-pi-boost-deboost.tst
/var/lib/dpkg/info/libboost-python1.54.0:amd64.list
/var/lib/dpkg/info/libboost-python1.54.0:amd64.md5sums
/var/lib/dpkg/info/libboost-python1.54.0:amd64.postinst
/var/lib/dpkg/info/libboost-python1.54.0:amd64.postrm
/var/lib/dpkg/info/libboost-python1.54.0:amd64.shlibs
/var/lib/dpkg/info/libboost-system1.54.0:amd64.list
/var/lib/dpkg/info/libboost-system1.54.0:amd64.md5sums
/var/lib/dpkg/info/libboost-system1.54.0:amd64.postinst
/var/lib/dpkg/info/libboost-system1.54.0:amd64.postrm
/var/lib/dpkg/info/libboost-system1.54.0:amd64.shlibs
For libtorrent, the files/folders i find are:
/usr/lib/libtorrent-rasterbar.so.7
/usr/lib/libtorrent-rasterbar.so.7.0.0
/usr/lib/python2.7/dist-packages/libtorrent.so
/usr/lib/python2.7/dist-packages/python_libtorrent-0.16.13.egg-info
/usr/lib/python2.7/dist-packages/deluge/_libtorrent.py
/usr/lib/python2.7/dist-packages/deluge/_libtorrent.pyc
/usr/share/doc/libtorrent-rasterbar7
/usr/share/doc/python-libtorrent
/usr/share/doc/libtorrent-rasterbar7/AUTHORS
/usr/share/doc/libtorrent-rasterbar7/README.Debian
/usr/share/doc/libtorrent-rasterbar7/changelog.Debian.gz
/usr/share/doc/libtorrent-rasterbar7/copyright
/usr/share/doc/python-libtorrent/changelog.Debian.gz
/usr/share/doc/python-libtorrent/copyright
/var/lib/dpkg/info/libtorrent-rasterbar7.list
/var/lib/dpkg/info/libtorrent-rasterbar7.md5sums
/var/lib/dpkg/info/libtorrent-rasterbar7.postinst
/var/lib/dpkg/info/libtorrent-rasterbar7.postrm
/var/lib/dpkg/info/libtorrent-rasterbar7.shlibs
/var/lib/dpkg/info/python-libtorrent.list
/var/lib/dpkg/info/python-libtorrent.md5sums
from frostwire-jlibtorrent.
Don't use the system installed ones, just grab the source from boost and libtorrent, and uncompress them in one working folder (inside your home).
from frostwire-jlibtorrent.
Oh, so just use the downloaded folder locations? I'll do that and report back
from frostwire-jlibtorrent.
libtorrent_root
is meant to point to your libtorrent source folder.
from frostwire-jlibtorrent.
@tchoulihan
Here are some old and detailed instructions I wrote to build on Mac
https://gist.github.com/gubatron/dc0e29b9273741c9c14c
They need to be updated to the current state of the script, but it should give you a good idea on how to build for linux.
Once you get to build it, I'd love to hear any questions you may have on how to use the API (as well as some feedback on how to make it better, e.g. you will find that many of the libtorrent functionality is available if you do someClassInstance.getSwig().original_libtorrent_method_signature_here()
, if you find yourself doing that a lot, this is a sign that we need to expose the lower level functionality to the corresponding Java abstraction)
We've been busy coding it and using it, but not so much documenting it, which is IMO a success factor for any API out there. Your feedback will help us prioritize what to document.
from frostwire-jlibtorrent.
I've updated the wiki page to include a link to the mac build instructions.
from frostwire-jlibtorrent.
I installed both boost-58 and libtorrent-rasterbar7, set those 2 environment variables:
export LIBTORRENT_ROOT="/home/tyler/Downloads/libtorrent-rasterbar-1.0.5"
export BOOST_ROOT="/home/tyler/Downloads/boost_1_58_0"
and here's the errors now:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent/build$ ./run_swig.sh
Unable to find file 'swig/libtorrent.i'.
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent/build$ ./build_linux.sh
g++: error: swig/libtorrent_jni.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
g++: error: libtorrent_jni.o: No such file or directory
g++: error: missing argument to ‘-L’
strip: 'libjlibtorrent.so': No such file
So i went into the script and changed it to look up a directory, and now I'm getting these errors.
./run_swig.sh
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent/build$ ./run_swig.sh
../swig/libtorrent.i:255: Error: Unable to find 'std_auto_ptr.i'
./build_linux.sh
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent/build$ ./build_linux.sh
../swig/libtorrent_jni.cpp:160:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.
g++: error: libtorrent_jni.o: No such file or directory
g++: error: missing argument to ‘-L’
strip: 'libjlibtorrent.so': No such file
from frostwire-jlibtorrent.
Run the scripts from the root of frostwire-jlibtorrent. That means: ./build/build_linux.sh
Don't run run_swig.sh unless you are fully familiarized with the swig process. You have all the generated source code already.
from frostwire-jlibtorrent.
I'm not sure if the source code from swig is correct. Here's the error I'm getting:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent$ sudo ./build/build_linux.sh
swig/libtorrent_jni.cpp:160:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.
g++: error: libtorrent_jni.o: No such file or directory
g++: error: missing argument to ‘-L’
strip: 'libjlibtorrent.so': No such file
I also added the jni.h file to the gcc using:
sudo ln -s $JAVA_HOME/include/linux/jni_md.h /usr/lib/jvm/java-8-oracle/include/jni_md.h
sudo gcc $JAVA_HOME/include/jni.h
And the same error still comes up.
from frostwire-jlibtorrent.
build_linux.sh has hardcoded the jvm 8 include paths for openjdk, you are using oracle, you can either change the paths in the script or install the openjdk one.
from frostwire-jlibtorrent.
Thanks, I repointed those two include lines to my java install, and now I'm getting some weird errors with swig:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent$ sudo ./build/build_linux.sh
In file included from swig/libtorrent_jni.cpp:970:0:
swig/session_extend.h:47:39: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
swig/session_extend.h:60:2: note: in expansion of macro ‘TORRENT_DEFINE_ALERT’
TORRENT_DEFINE_ALERT(dht_get_peers_reply_alert, user_alert_id + 100);
^
swig/session_extend.h:47:39: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
swig/session_extend.h:84:2: note: in expansion of macro ‘TORRENT_DEFINE_ALERT’
TORRENT_DEFINE_ALERT(set_piece_hashes_alert, user_alert_id + 101);
^
swig/libtorrent_jni.cpp: In function ‘jlong Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1get_1dht_1settings(JNIEnv*, jclass, jlong, jobject)’:
swig/libtorrent_jni.cpp:78201:53: error: ‘const class libtorrent::session’ has no member named ‘get_dht_settings’
result = ((libtorrent::session const *)arg1)->get_dht_settings();
^
swig/libtorrent_jni.cpp: In function ‘jlong Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1pop_1alert(JNIEnv*, jclass, jlong, jobject)’:
swig/libtorrent_jni.cpp:79006:38: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr< libtorrent::alert > result;
^
g++: error: libtorrent_jni.o: No such file or directory
g++: error: missing argument to ‘-L’
strip: 'libjlibtorrent.so': No such file
My swig version is 2.0.11 . Should I try swig3?
from frostwire-jlibtorrent.
Did you run run_swig.sh? Revert the changes related to that (I recommend you a clean start).
from frostwire-jlibtorrent.
That's never worked for me, I just get this error:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent$ ./build/run_swig.sh
swig/libtorrent.i:255: Error: Unable to find 'std_auto_ptr.i'
edit: I also can't locate that file on my file system, after installing swig2.0 and swig3.0 through apt-get
from frostwire-jlibtorrent.
Yes, but in the process, you probably messed up the repo. git status and you will see.
from frostwire-jlibtorrent.
Hrm, for some reason almost all the swig.java files got deleted, I'll clone this again.
from frostwire-jlibtorrent.
And don't run run_swig.sh
from frostwire-jlibtorrent.
Okay, I just did a fresh clone, changed the java source folders, didn't run the run_swig.sh, but am still getting a ton of errors related to that std_auto_ptr.i file:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent$ ./build/build_linux.sh
In file included from swig/libtorrent_jni.cpp:663:0:
/home/tyler/Downloads/libtorrent-rasterbar-1.0.5/include/libtorrent/alert_types.hpp:117:39: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
/home/tyler/Downloads/libtorrent-rasterbar-1.0.5/include/libtorrent/alert_types.hpp:153:3: note: in expansion of macro ‘TORRENT_DEFINE_ALERT’
TORRENT_DEFINE_ALERT(torrent_removed_alert);
^
/home/tyler/Downloads/libtorrent-rasterbar-1.0.5/include/libtorrent/alert_types.hpp:117:39: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
virtual std::auto_ptr<alert> clone() const \
^
/home/tyler/Downloads/libtorrent-rasterbar-1.0.5/include/libtorrent/alert_types.hpp:174:3: note: in expansion of macro ‘TORRENT_DEFINE_ALERT’
TORRENT_DEFINE_ALERT(read_piece_alert);
^
... a lot more
from frostwire-jlibtorrent.
These are warnings, what's at the end?
from frostwire-jlibtorrent.
...
swig/libtorrent_jni.cpp: In function ‘jlong Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1pop_1alert(JNIEnv*, jclass, jlong, jobject)’:
swig/libtorrent_jni.cpp:79006:38: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr< libtorrent::alert > result;
^
g++: error: libtorrent_jni.o: No such file or directory
g++: error: missing argument to ‘-L’
strip: 'libjlibtorrent.so': No such file
from frostwire-jlibtorrent.
Did you export LIBTORRENT_LIBS?
from frostwire-jlibtorrent.
I didn't, I just have:
export LIBTORRENT_ROOT="/home/tyler/Downloads/libtorrent-rasterbar-1.0.5"
export BOOST_ROOT="/home/tyler/Downloads/boost_1_58_0"
where should that point to?
from frostwire-jlibtorrent.
If you told me the name of one of the .a files, I could try to locate it.
from frostwire-jlibtorrent.
You need to actually compile boost, libtorrent and all the resulting libraries, put them in a folder (LIBTORRENT_LIBS), I think that's documented in the link @gubatron mentioned.
from frostwire-jlibtorrent.
LIBTORRENT_LIBS
is simply a folder where all the dependency libraries should be available for the linker. It must contain the libtorrent.a file along with all the other boost libraries needed.
from frostwire-jlibtorrent.
looks like you're finally building it all, it just can't link.
from frostwire-jlibtorrent.
I'm building a script to automate most of this BTW, saving everything as I go.
I installed boost with this, and it didn't run into any problems:
sudo apt-get install libbz2-dev
cd $BOOST_ROOT
./bootstrap
./b2
$BOOST_ROOT/b2 variant=release link=static --stagedir=linux stage cxxflags="-O2 -fPIC" --with-date_time --with-chrono --with-system --with-random --with-thread
Now the problem I'm running into is from this line script that builds the libtorrent.a file...
cd $LIBTORRENT_ROOT
$BOOST_ROOT/bjam toolset=gcc cxxflags="-O2 -fPIC" cflags="-fPIC" variant=release link=static deprecated-functions=off logging=none encryption=openssl boost=source
Here's the output:
tyler@tyler-ThinkPad-Edge-E545:~/Downloads/libtorrent-rasterbar-1.0.5$ $BOOST_ROOT/bjam toolset=gcc cxxflags="-O2 -fPIC" cflags="-fPIC" variant=release link=static deprecated-functions=off logging=none encryption=openssl boost=source
warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (/home/tyler/Downloads/boost_1_58_0/bjam) is 2014.03.00
warning: Boost.Build core (at /usr/share/boost-build) is 2011.12-svn
BOOST_ROOT = /home/tyler/Downloads/boost_1_58_0
CXXFLAGS = -stdlib=libc++ -std=c++11 -O3 -I/home/tyler/Downloads/boost_1_58_0
LDFLAGS =
OS = LINUX
/usr/share/boost-build/build/feature.jam:139: in feature.feature from module feature
error: unknown attributes: hidden
error: in feature declaration:
error: feature "deduced-address-model" : "32" "64" : "propagated" "optional" "composite" "hidden"
/home/tyler/Downloads/boost_1_58_0/boostcpp.jam:570: in load from module boostcpp
/usr/share/boost-build/kernel/modules.jam:289: in modules.import from module modules
/usr/share/boost-build/build/project.jam:1024: in import from module Jamfile</home/tyler/Downloads/boost_1_58_0>
/home/tyler/Downloads/boost_1_58_0/Jamroot:124: in modules.load from module Jamfile</home/tyler/Downloads/boost_1_58_0>
/usr/share/boost-build/build/project.jam:311: in load-jamfile from module project
/usr/share/boost-build/build/project.jam:64: in load from module project
/usr/share/boost-build/build/project.jam:89: in load-used-projects from module project
/usr/share/boost-build/build/project.jam:75: in load from module project
/usr/share/boost-build/build/project.jam:145: in project.find from module project
/usr/share/boost-build/build-system.jam:535: in load from module build-system
/usr/share/boost-build/kernel/modules.jam:289: in import from module modules
/usr/share/boost-build/kernel/bootstrap.jam:139: in boost-build from module
/usr/share/boost-build/boost-build.jam:8: in module scope from module
from frostwire-jlibtorrent.
where did you get libtorrent, if you're having issues building libtorrent it could be that you're running from the trunk maybe?
from frostwire-jlibtorrent.
LDFLAGS =
this also calls my attention, I believe there should be some link flags there, no @aldenml ?
from frostwire-jlibtorrent.
from frostwire-jlibtorrent.
checking my environment, I have this set for $LDFLAGS
-L/Users/gubatron/src/boost_1_57_0/stage/lib
try adding that to your environment, changing to the corresponding path.
from frostwire-jlibtorrent.
@gubatron No. It's pretty clear for me that he is having a very typical boost conflict:
warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (/home/tyler/Downloads/boost_1_58_0/bjam) is 2014.03.00
warning: Boost.Build core (at /usr/share/boost-build) is 2011.12-svn
@tchoulihan try to avoid the system installed boost (remove it if you can).
from frostwire-jlibtorrent.
will do
Edit: I originally installed both boost and libtorrent in the more traditional apt-get way
from frostwire-jlibtorrent.
oh I see. What has worked best for me @tchoulihan (on Mac) has been simply downloading a binary boost release and pointing paths to their includes/ and linking to their libraries.
from frostwire-jlibtorrent.
@gubatron Are you sure?
from frostwire-jlibtorrent.
it's becoming personal, I feel his pain, been there (for all OSes) before.
from frostwire-jlibtorrent.
Dann @aldenml you've been crushing it.
Okay, so now I have all those .a files including libtorrent.a in the $LIBTORRENT_LIBS dir, but I'm still getting this error when running ./build/build_linux.sh:
...
swig/libtorrent_jni.cpp: In function ‘jlong Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1pop_1alert(JNIEnv*, jclass, jlong, jobject)’:
swig/libtorrent_jni.cpp:79006:38: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr< libtorrent::alert > result;
^
g++: error: libtorrent_jni.o: No such file or directory
strip: 'libjlibtorrent.so': No such file
from frostwire-jlibtorrent.
I need to see the error during the compilation, try to look for it inside the entire output. (copy and grep).
from frostwire-jlibtorrent.
grepping for error in the output:
tyler@tyler-ThinkPad-Edge-E545:~/git/frostwire-jlibtorrent$ grep error b.out
TORRENT_DEFINE_ALERT(tracker_error_alert);
TORRENT_DEFINE_ALERT(peer_error_alert);
TORRENT_DEFINE_ALERT(file_error_alert);
TORRENT_DEFINE_ALERT(udp_error_alert);
TORRENT_DEFINE_ALERT(portmap_error_alert);
TORRENT_DEFINE_ALERT(torrent_error_alert);
TORRENT_DEFINE_ALERT(dht_error_alert);
swig/libtorrent_jni.cpp:78201:53: error: ‘const class libtorrent::session’ has no member named ‘get_dht_settings’
g++: error: libtorrent_jni.o: No such file or directory
from frostwire-jlibtorrent.
Ok, the problem is that libtorrent-1.0.5 is a little bit outdated. I'm working with the latest stable branch RC_1_0. Instead of downloading the tar.gz, perform this:
svn checkout svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0 libtorrent-RC_1_0
and adjust the paths
from frostwire-jlibtorrent.
okay, will do
from frostwire-jlibtorrent.
Here's the error I have now:
/usr/bin/ld: /home/tyler/LIBTORRENT_LIBS/libboost_system.a(error_code.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/tyler/LIBTORRENT_LIBS/libboost_system.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
strip: 'libjlibtorrent.so': No such file
Which is weird because I compiled boost with that -fPIC flag, like this:
cd $BOOST_ROOT
./bootstrap
./b2
$BOOST_ROOT/b2 variant=release link=static --stagedir=linux stage cxxflags="-O2 -fPIC" --with-date_time --with-chrono --with-system --with-random --with-thread
cp linux/lib/*.a $LIBTORRENT_LIBS
from frostwire-jlibtorrent.
Did you run b2 twice ? If that's the case, try again deleting the bin and linux folders,just to discard any previously generated object file
from frostwire-jlibtorrent.
Just tried this, same error as before.
the error says this: recompile with -fPIC
from frostwire-jlibtorrent.
I know it could be a little rough. I would like to make sure you are right with the boost compilation, do this:
cd $BOOST_ROOT
rm -rf bin*
rm -rf linux
$BOOST_ROOT/b2 variant=release link=static --stagedir=linux stage cxxflags="-O2 -fPIC" --with-date_time --with-chrono --with-system --with-random --with-thread
cp linux/lib/*.a $LIBTORRENT_LIBS
Let me know
from frostwire-jlibtorrent.
@aldenml That did it! I wonder why...
Okay, so I have a working linux pre-install script. I'll post it here. I can either submit a pull request, and add this to the beginning of the build_linux.sh script, or I can leave it to your discretion on how to do this. Its fully automated, including downloading the necessary dependencies.
# Some setup
sudo apt-get install libbz2-dev libssl1.0.0 libcrypto++9 subversion
mkdir $HOME/LIBTORRENT_LIBS
export LIBTORRENT_LIBS="$HOME/LIBTORRENT_LIBS"
#export CXXFLAGS="-stdlib=libc++ -std=c++11 -O3 -I$BOOST_ROOT"
# Download Libtorrent and Boost, and export the home folders
cd $LIBTORRENT_LIBS
wget -O boost_1_58_0.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download
tar -xvf boost_1_58_0.tar.bz2
svn checkout svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0 libtorrent-RC_1_0
# Set the exports
export LIBTORRENT_ROOT="$LIBTORRENT_LIBS/libtorrent-RC_1_0"
export BOOST_ROOT="$LIBTORRENT_LIBS/boost_1_58_0"
# Build boost and copy the .a files
cd $BOOST_ROOT
sh ./bootstrap.sh
rm -rf bin*
rm -rf linux
$BOOST_ROOT/b2 variant=release link=static --stagedir=linux stage cxxflags="-O2 -fPIC" --with-date_time --with-chrono --with-system --with-random --with-thread
cp linux/lib/*.a $LIBTORRENT_LIBS
# Build and copy the libtorrent .a files
cd $LIBTORRENT_ROOT
$BOOST_ROOT/bjam toolset=gcc cxxflags="-O2 -fPIC" cflags="-fPIC" variant=release link=static deprecated-functions=off logging=none encryption=openssl boost=source
sudo cp bin/gcc-4.8/release/boost-source/deprecated-functions-off/encryption-openssl/link-static/threading-multi/libtorrent.a $LIBTORRENT_LIBS/
# Run the build_linux script....
from frostwire-jlibtorrent.
I rather let @gubatron to take a look at this.
from frostwire-jlibtorrent.
something like this could be part of a ./configure.sh
is what I was thinking yesterday.
from frostwire-jlibtorrent.
would just make it so that all paths and version numbers are configurable variables at the beginning of the script.
So things like this:
LIBTORRENT_VERSION="RC_1_0"
LIBTORRENT_FOLDER_NAME="libtorrent-$LIBTORRENT_VERSION"
LIBTORRENT_SVN_PATH="svn://svn.code.sf.net/p/libtorrent/code/branches/$LIBTORRENT_VERSION $LIBTORRENT_FOLDER_NAME"
...
svn checkout $LIBTORRENT_SVN_PATH
...
from frostwire-jlibtorrent.
@tchoulihan If you submit a very well parametrized script to build/configure.linux.sh
I'll review it and work with you to include it.
from frostwire-jlibtorrent.
@gubatron Certainly, I can do this. I agree with the parameterization also. I'll create a pull request and reference this issue soon.
from frostwire-jlibtorrent.
from frostwire-jlibtorrent.
Related Issues (20)
- No implementation found for void com.frostwire.jlibtorrent.swig.libtorrent_jni.swig_module_init() HOT 1
- Adding a download with changed priorities doesn't recognize the new priorities if download was finished earlier. HOT 9
- Downloads are not compatible HOT 4
- Download issues in Samsung Galaxy devices HOT 9
- How to Compile in embedded system, the platform is arm32. HOT 1
- [desktop] Calling SessionManager stop() takes forever after torrent is finished HOT 8
- dhtNodes Always 0 HOT 26
- Docker script Q&A HOT 5
- Error in Vectors.byte_vector2string
- sessionManager.stats().dhtNodes() always 0 HOT 4
- How to merge libraries into one? HOT 2
- Pure virtual function called! On Android 10+ [Using version 1.2.16.0] HOT 1
- Upgrading to libtorrent 2.0, it's time. HOT 1
- Low memory bug HOT 3
- Is it possible use your libtorrent.i wrap a c# version? HOT 11
- native crash HOT 1
- Debugging libtorrent crash on Android HOT 3
- iOS compatibility? HOT 8
- Cannot build 2.0 binaries HOT 7
- Question: What’s the best way to limit resource usage or decrease the priority of the torrent download thread? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frostwire-jlibtorrent.