Discussion:
[libtorrent] 1.1.0 on Windows + MinGW 4.9.2 / boost 1.60
bunjee
2016-05-10 11:47:35 UTC
Permalink
Greetings libtorrenters,

Congratulations for the 1.1.0 release !

I'm trying to build libtorrent 1.1.0 on Windows with MinGW 4.9.2 and
boost 1.60.
I have MinGW in the path and I set BOOST_BUILD_PATH and BOOST_ROOT.
I'm building bjam's with "build.bat" and the gcc option.

Then I run this:

bjam gcc link=static runtime-link=static variant=release warnings=off

And get this right before the end:

gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a
CreateProcessA() Windows API failed: 2 - The system cannot find the
file specified.

(...)

...failed gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a...
...failed updating 1 target...
...updated 180 targets...

When using boost 1.55 + bjam 1.53 it actually works, wich reminds me of
this: https://sourceforge.net/p/libtorrent/mailman/message/32134507/.

Anyone had this issue before ?

Thanks ♥.
Arvid Norberg
2016-05-11 00:38:16 UTC
Permalink
Post by bunjee
Greetings libtorrenters,
Congratulations for the 1.1.0 release !
I'm trying to build libtorrent 1.1.0 on Windows with MinGW 4.9.2 and
boost 1.60.
I have MinGW in the path and I set BOOST_BUILD_PATH and BOOST_ROOT.
I'm building bjam's with "build.bat" and the gcc option.
bjam gcc link=static runtime-link=static variant=release warnings=off
gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a
CreateProcessA() Windows API failed: 2 - The system cannot find the
file specified.
(...)
...failed gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a...
...failed updating 1 target...
...updated 180 targets...
When using boost 1.55 + bjam 1.53 it actually works, wich reminds me of
this: https://sourceforge.net/p/libtorrent/mailman/message/32134507/.
Anyone had this issue before ?
Interesting. thanks for the link! I actually ran into this myself trying to
setup appveyor to run a mingw build there. The post from sledgehammer is
likely the explanation.

My previous experience is that bjam itself has to be built for msys/mingw
in order to behave correctly when building and running under msys. This
breaks the abstraction a bit that msys can run both unixy tools and
windowsy ones. The fact that bjam tries to invoke "del" is telling I think.
If bjam is built with build.sh with gcc from mingw, I bet it will be
configured for a unix environment and work.

I should try this in appveyor.
--
Arvid Norberg
bunjee
2016-05-17 13:35:32 UTC
Permalink
Greetings libtorrenters,

Congratulations for the 1.1.0 release !

I'm trying to build libtorrent 1.1.0 on Windows with MinGW 4.9.2 and
boost 1.60.
I have MinGW in the path and I set BOOST_BUILD_PATH and BOOST_ROOT.
I'm building bjam's with "build.bat" and the gcc option.

Then I run this:

bjam gcc link=static runtime-link=static variant=release warnings=off

And get this right before the end:

gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a
CreateProcessA() Windows API failed: 2 - The system cannot find the
file specified.

(...)

...failed gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a...
...failed updating 1 target...
...updated 180 targets...

When using boost 1.55 + bjam 1.53 it actually works, wich reminds me of
this: https://sourceforge.net/p/libtorrent/mailman/message/32134507/.

Anyone had this issue before ?

Thanks ♥.
sledgehammer999
2016-05-19 21:15:21 UTC
Permalink
Just adding to my linked post. Now I have stopped doing mingw builds and
switched to msvc.
But at that time period I actually built bjam/b2 using msvc and then used
the same binary for mingw builds. So Arvid is probably right by saying that
if bjam is build using gcc it will behave correctly.
PS: I did msvc build of bjam because I couldn't figure out how to build it
under mingw/msys. I would get weird errors.
Post by bunjee
Greetings libtorrenters,
Congratulations for the 1.1.0 release !
I'm trying to build libtorrent 1.1.0 on Windows with MinGW 4.9.2 and
boost 1.60.
I have MinGW in the path and I set BOOST_BUILD_PATH and BOOST_ROOT.
I'm building bjam's with "build.bat" and the gcc option.
bjam gcc link=static runtime-link=static variant=release warnings=off
gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a
CreateProcessA() Windows API failed: 2 - The system cannot find the
file specified.
(...)
...failed gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a...
...failed updating 1 target...
...updated 180 targets...
When using boost 1.55 + bjam 1.53 it actually works, wich reminds me of
this: https://sourceforge.net/p/libtorrent/mailman/message/32134507/.
Anyone had this issue before ?
Thanks ♥.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data
untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Arvid Norberg
2016-05-19 23:44:53 UTC
Permalink
also FYI, I recently added a mingw64 (gcc 5.3) target to be built by
appveyor in master.

On Thu, May 19, 2016 at 5:15 PM, sledgehammer999 <
Post by sledgehammer999
Just adding to my linked post. Now I have stopped doing mingw builds and
switched to msvc.
But at that time period I actually built bjam/b2 using msvc and then used
the same binary for mingw builds. So Arvid is probably right by saying that
if bjam is build using gcc it will behave correctly.
PS: I did msvc build of bjam because I couldn't figure out how to build it
under mingw/msys. I would get weird errors.
Post by bunjee
Greetings libtorrenters,
Congratulations for the 1.1.0 release !
I'm trying to build libtorrent 1.1.0 on Windows with MinGW 4.9.2 and
boost 1.60.
I have MinGW in the path and I set BOOST_BUILD_PATH and BOOST_ROOT.
I'm building bjam's with "build.bat" and the gcc option.
bjam gcc link=static runtime-link=static variant=release
warnings=off
Post by bunjee
gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a
Post by bunjee
CreateProcessA() Windows API failed: 2 - The system cannot find the
file specified.
(...)
...failed gcc.archive
bin\gcc-mingw-4.9.2\release\link-static\runtime-link-static\threading-multi\libtorrent.a...
Post by bunjee
...failed updating 1 target...
...updated 180 targets...
When using boost 1.55 + bjam 1.53 it actually works, wich reminds me of
this: https://sourceforge.net/p/libtorrent/mailman/message/32134507/.
Anyone had this issue before ?
Thanks ♥.
------------------------------------------------------------------------------
Post by bunjee
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data
untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data
untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
Arvid Norberg
Loading...