Comments (13)
Maybe unclean build directory?
from qbittorrent.
I just built it for the first time. Removed cmake, removed the vcpkg folder and obviously new install of this beta build. Then started from scratch. Not sure but guessing some conflict with Qt6 libraries and something? The conflicting values for example:
qwindows.lib(qwindowsintegration.cpp.obj) : error LNK2038: mismatch detected for '_COROUTINE_ABI': value '1' doesn't match value '2' in qbt_base.lib(sessionimpl.cpp.obj)
Show that two libraries or what I see have different values for the same thing or something.
from qbittorrent.
So maybe there are different values of -std
flag are used when building Qt and qBittorrent (or other its dependencies)?
from qbittorrent.
Beyond my knowledge. I basically just followed the cmake steps on the Wiki to build it other than i had to change or add
.\vcpkg install qtbase:x64-windows-static qtsvg:x64-windows-static qttools:x64-windows-static
to the supported libraries since qBittorrent now uses qt6 vs qt5.
from qbittorrent.
i had to change or add
.\vcpkg install qtbase:x64-windows-static qtsvg:x64-windows-static qttools:x64-windows-static
to the supported libraries since qBittorrent now uses qt6 vs qt5.
Did I understand correctly that you are trying to build the current qBittorrent with Qt5?
from qbittorrent.
No. The current Wiki article says it's using Qt5. I modified the vcpkg line per above to use Qt6.
Note I just blew away the whole qbittorrent folder and did the following:
- Download the latest cmake also tried the one built into VS
- Put ninja in my path
- All the tools and features are installed with VS
- Opened the VS cmd prompt
- git clone https://github.com/microsoft/vcpkg
- cd .\vcpkg
- .\bootstrap-vcpkg.bat -disableMetrics
- .\vcpkg integrate install
- .\vcpkg install boost-circular-buffer:x64-windows-static boost-stacktrace:x64-windows-static openssl:x64-windows-static qtbase:x64-windows-static qtsvg:x64-windows-static qttools:x64-windows-static
- .\vcpkg install libtorrent:x64-windows-static
- Go into the C:\qbittorrent\qBittorrent-release-5.0.0beta1 folder
- cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="C:\qbittorrent\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET="x64-windows-static" -DMSVC_RUNTIME_DYNAMIC=OFF
- cmake --build build
Get the above errors.
from qbittorrent.
@jriker1
So why do you need to compile it yourself?
from qbittorrent.
Probably not the right path to go down for the question unless you are eliminating manual compiling but I usually modify a few things to work with some custom scripts with Sonarr. Minor tweaks. Right now just trying to deal with compiling it at all.
from qbittorrent.
Probably not the right path to go down for the question unless you are eliminating manual compiling
Manual compilation requires some competence, because no one will provide you with instructions that would work under any conditions. If you cannot check the assumptions about the cause of the compilation problem because it is "Beyond my knowledge", then only someone who compiles it himself under exactly the same conditions can help you to provide you with detailed instructions. I'm not using the wiki method, so I won't be able to help you with it.
from qbittorrent.
Yeah, problem is conceptually very obvious. The libraries and code being used is mixing code that is using experimental coroutines with code that uses standard coroutines and they can't interoperate
from qbittorrent.
Yeah, problem is conceptually very obvious. The libraries and code being used is mixing code that is using experimental coroutines with code that uses standard coroutines and they can't interoperate
Yes.
That's why I assumed that different compilation flags are used for Qt and qBittorrent, namely a different version of the C++ standard. qBittorrent v5.0 requires C++20, so it is forced in the build configuration. Qt most likely uses C++17 (or earlier) by default.
from qbittorrent.
Qt most likely uses C++17 (or earlier) by default.
As of Qt 6, (C++17 compatible compiler is now required) see: https://www.qt.io/blog/qt-6.0-released
C++20 is still opt-in, see: https://www.qt.io/blog/qt-6.7-released
(Qt 6.7 also has better support for Windows 11 23H2/macOS 14 - Sonoma)
@jriker1 What changes are you trying to make in the code/why don't you use GitHub Actions
?
(you can then also use/test Qt 6.7.1 etc.)
vcpkg have only just recently updated to Qt 6.6.3, there's a PR open for Qt 6.7.0
from qbittorrent.
BTW, I don't see any mention in the wiki of zlib
or in your comments & it may have no bearing on this issue either but just as an FYI for vcpkg it's zlib:x64-windows-static
from qbittorrent.
Related Issues (20)
- Search Tab - Rearrange Results HOT 2
- Latest code on Github breaks show speed in the Title bar HOT 9
- qBittorrent has crashed
- qBittorrent crashes after trying to open a torrent file or magnet link HOT 1
- Error: ‘partfile_write Access Denied’ when selecting partial content within a Torrent (v4.6.4) HOT 4
- Filter rss feed in side the app HOT 1
- The Completed torrents pane includes torrents that are seeding? HOT 8
- Crash after successful download by magnet link
- Specify network adapters for IPV4 and IPV6 separately
- Add torrent dialog opens but application simultaneously starts the torrent at the default location HOT 2
- crash
- Auto-rename files
- Join/group search results with the same torrent hash HOT 1
- Adding tracker data from all search results with the same hash
- Imported data from Windows to Linux, but cannot change torrent locations HOT 5
- REMEMBER COLUMN WIDTHS HOT 2
- Frequent crashing after opening qbittorent after a night of seeding HOT 12
- Crash
- Memory Leak - Multiple WebUIs open simultaneously HOT 4
- Improve auto exit after download/seed finish. HOT 3
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 qbittorrent.