問題タブ [libtorrent]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
qt - libtorrent-rasterbar と QGuiApplication によるメモリ破損
Qt5 アプリケーションで libtorrent を使用しようとしていますが、malloc(): メモリ破損のようなメッセージで segfault が発生し続けます。何時間もデバッグした後、この問題を引き起こすこの小さなコードを思いつきました。
この場合、torrent_info のコンストラクターが segfault を生成します。しかし、次のように QGuiApplication を作成する前に libtorrent 関連のコードを移動すると:
その後、問題なく動作します。また、この問題は 32 ビット ビルドにのみ存在し、64 ビット ビルドでは両方のバリアントが同じように機能します。
c++ - libtorrent-rasterbar と Visual Studio 2013
VS2013 (C++) で libtorrent-rasterbar を使用して単純なコード (examples/simple_client.cpp) をビルドしようとしていますが、次のリンカー エラーが発生します。
libtorrent を次を使用してコンパイルbjam toolset=msvc-12.0 link=static variant=debug boost=source
し、VS ですべてをリンクします。
- libboost_system-vc120-mt-gd-1_55.lib
- libboost_date_time-vc120-mt-gd-1_55.lib
- libtorrent.lib
追加情報: libtorrent-rasterbar-0.16.15; boost_1_55_0; Windows8.1 64ビット。
ここで何がうまくいかないのかについてのアイデアはありますか?
ありがとうございました。
c++ - libtorrent を取得してブーストを表示する方法は?
libtorrent-rasterbar-0.16.16 を msys と mingw でコンパイルしています。./configure は、ブースト ライブラリ チェックに到達するまで正常に実行されます。ブースト 1.51 があり、$BOOST_ROOT を設定しましたが、うまくいきませんでした。
--with-boost-system= オプションを試してみましたが、それもうまくいきませんでした。また、libboost_system-mgw47-mt-1_51.a を libtorrent と同じディレクトリにコピーしましたが、機能しませんでした。
私は何が欠けていますか?