Page 1 of 1

Need help compiling qBittorrent 3.1.9.2 for windows

Posted: Tue May 27, 2014 12:15 pm
by Fluffy
Hi fellow qBittorrent users,

I am trying to compile qBittorrent 3.1.9.2 for windows but unfortunately it doesn´t work.
I use:
-Qt Creator with Qt 4.8.2 kit
-openssl-SNAP-20140526 (Kerberos deactivated)
-boost_1_55_0
-libtorrent-rasterbar-0.16.16

There are no compile errors, but many warnings till the last step:
g++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\qbittorrent.exe object_script.qbittorrent.Release  -L"c:\Qt\4.8.6\lib" -lmingw32 -lqtmain release\qbittorrent_mingw_res.o -LC:/qBittorrent/boost_1_51_0/stage/lib -LC:/qBittorrent/RC_0_16/bin/<path-according-to-the-build-options-chosen> -LC:/qBittorrent/Zlib/lib -ltorrent -lboost_system-mgw45-mt-1_47 -lboost_filesystem-mgw45-mt-1_47 -lboost_thread-mgw45-mt-1_47 -ladvapi32 -lshell32 -luser32 -lcrypto.dll -lssl.dll -lwsock32 -lws2_32 -lz -liconv.dll -lpowrprof -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4
Das System kann die angegebene Datei nicht finden.
"Das System kann die angegebene Datei nicht finden." is german. It means the system could not find the file. It looks pretty much like a windows error.
Well the problem is "<path-according-to-the-build-options-chosen>" and the slashes after that i think.

A look in Makefile.Release reveals the following:
LIBS        =        -L"c:\Qt\4.8.6\lib" -lmingw32 -lqtmain release\qbittorrent_mingw_res.o -LC:/qBittorrent/boost_1_51_0/stage/lib -LC:/qBittorrent/RC_0_16/bin/<path-according-to-the-build-options-chosen> -LC:/qBittorrent/Zlib/lib -ltorrent -lboost_system-mgw45-mt-1_47 -lboost_filesystem-mgw45-mt-1_47 -lboost_thread-mgw45-mt-1_47 -ladvapi32 -lshell32 -luser32 -lcrypto.dll -lssl.dll -lwsock32 -lws2_32 -lz -liconv.dll -lpowrprof -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4
What is "<path-according-to-the-build-options-chosen>" supposed to be ?
As you can see I use the mingw compiler.

Thanks in advance.

Re: Need help compiling qBittorrent 3.1.9.2 for windows

Posted: Tue May 27, 2014 1:56 pm
by Nemo
Hi and welcome Fluffy,

Our maintainer sledge could answer this for you when he is online :).

Also Windows QA department is for new releases only, I've moved the topic to the Windows section.

Re: Need help compiling qBittorrent 3.1.9.2 for windows

Posted: Tue May 27, 2014 2:12 pm
by sledgehammer_999

Re: Need help compiling qBittorrent 3.1.9.2 for windows

Posted: Tue May 27, 2014 5:23 pm
by Fluffy
Seems to be alot of headache.
And using mingw looks to be impossibru.
I will try to use my VS2010 compiler on this.
Thanks anyway.

Re: Need help compiling qBittorrent 3.1.9.2 for windows

Posted: Tue May 27, 2014 9:23 pm
by sledgehammer_999
No its not impossible. I actually do my test builds on mingw because it compiles faster than msvc. Official builds are done with msvc.
However, I haven't documented the mingw way, because it is almost the same as the msvc one.

Hint: I compile all libraries(including qt) myself regardless of compiler. I don't use the precompiled binaries.