snowyu / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
1 stars 0 forks source link

Broken mingw build #665

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure for mingw build cmake -G"MinGW Makefiles" bla-bla-bla
2. mingw32-make
3. g++.exe: error: /MP: No such file or directory

What is the expected output? What do you see instead?

No comments.

What version of the product are you using? On what operating system?

libtorrent 1.0.1 windows 7 64

Please provide any additional information below.

bug in libtorrent-rasterbar-1.0.1/CmakeLists.txt line 237. Workaround:

if (WIN32)
    target_link_libraries(torrent-rasterbar wsock32 ws2_32)
    add_definitions(-D_WIN32_WINNT=0x0500)
    if (MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # multicore compilation
    endif()
endif()

Original issue reported on code.google.com by xcdix...@gmail.com on 20 Aug 2014 at 2:45

GoogleCodeExporter commented 9 years ago
You can build it under msys using bjam/b2 from boost.
Here's what I use for qBittorrent:

b2 -q --without-python --toolset=gcc variant=release link=static 
runtime-link=static encryption=openssl logging=none geoip=static dht=on 
boost=source character-set=unicode boost-link=static 
-sBOOST_ROOT="C:\qBittorrent\boost_1_56_0" 
include="/c/QBITTORRENT/install_mingw/include" 
library-path="/c/QBITTORRENT/install_mingw/lib" -j 2 
--prefix="/c/QBITTORRENT/install_mingw"

Original comment by hammered...@gmail.com on 27 Aug 2014 at 8:42

GoogleCodeExporter commented 9 years ago
thanks! will be fixed in the next stable release.

Original comment by arvid.no...@gmail.com on 26 Nov 2014 at 5:23