-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate to Qt6, Botan 3, make it work on macOS #105
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
31eeb34
fix: switch to qmake
jlopez a4dc27e
fix: seek_dir -> seekdir
jlopez 1e5096e
fix: botan 3 include/lib locations
jlopez 0912f12
fix: ensure c++20 std
jlopez a52ea4d
fix: migrate to botan-3
jlopez 40c85ef
fix: ensure c++20 std
jlopez 6fdf17b
fix: remove softkeys from mainwindow.ui
jlopez 0cb52f6
fix: case insensitive issue on top Makefile
jlopez bd8ae25
fix: remove unnecessary botan initialization
jlopez 6bd3a29
fix: add .qmake.stash to .gitignore
jlopez fccdff0
fix: pixmap is no longer a pointer
jlopez ad362c1
fix: QRegExp to QRegularExpression
jlopez e8c5ada
fix: switch to UTF-8 encoding
jlopez c5d8b6a
fix: update QDate methods
jlopez 7815195
fix: setItemHidden -> setHidden
jlopez 493184f
fix: add include for QStandardPaths
jlopez d52b97a
fix: implicit QChar assignment from int
jlopez e619675
fix: QNetworkInformation reachability
jlopez c458fd2
fix: QRegularExpression new API
jlopez 7d2ba73
fix: use std::sort instead of qSort
jlopez f5c7e9a
fix: QByteArray and QString interactions
jlopez 33bad42
fix: QString sprintf deprecation
jlopez 14e0663
fix: rename of QPalette::background() -> window()
jlopez 4cfe13f
fix: update QDate methods (tbs)
jlopez 13b3b87
fix: missing imports
jlopez a91c398
fix: QFontMetrics::width -> horizontalAdvance
jlopez e4e12d9
fix: QPainter::drawRoundRect -> drawRoundedRect
jlopez 45aee02
fix: ensure unix botan libs not used on mac
jlopez 60e1cbe
fix: init QNetworkInformation to avoid crash
jlopez cea6629
chore: add vscode config files
jlopez 19341e6
doc: update COMPILING.md
jlopez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ moc_*.h | |
moc_*.cpp | ||
ui_*.h | ||
qrc_Resources.cpp | ||
.qmake.stash | ||
|
||
# Velocity # | ||
############ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Mac", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include", | ||
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include", | ||
"/opt/homebrew/include", | ||
"/opt/homebrew/opt/qt/Frameworks/QtWidgets.framework/Versions/Current/Headers", | ||
"/opt/homebrew/opt/qt/Frameworks/QtGui.framework/Versions/Current/Headers", | ||
"/opt/homebrew/opt/qt/Frameworks/QtCore.framework/Versions/Current/Headers", | ||
"/opt/homebrew/opt/qt/Frameworks/QtNetwork.framework/Versions/Current/Headers", | ||
"/opt/homebrew/include/botan-3" | ||
], | ||
"defines": [ | ||
"XBOXINTERNALS_LIBRARY", | ||
"QT_CORE_LIB", | ||
"Q_OS_MAC", | ||
"QT_WIDGETS_LIB", | ||
"QT_GUI_LIB" | ||
], | ||
"macFrameworkPath": [ | ||
"/System/Library/Frameworks", | ||
"/Library/Frameworks", | ||
"/opt/homebrew/opt/qt/Frameworks" | ||
], | ||
"compilerPath": "/usr/bin/clang", | ||
"cStandard": "c11", | ||
"cppStandard": "c++20", | ||
"intelliSenseMode": "macos-clang-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Velocity.app", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/Velocity/Velocity.app/Contents/MacOS/Velocity", | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "lldb", | ||
"preLaunchTask": "build", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "make", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"problemMatcher": "$gcc", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
The Qt Creator IDE is used to build/debug Velocity. Velocity currently depends on Qt4 and Botan 1.10. | ||
The Qt Creator IDE is used to build/debug Velocity. Velocity currently depends on Qt6 and Botan 3.4 | ||
|
||
========== | ||
|
||
- WINDOWS | ||
While debugging, Velocity is compiled with 'Qt 4.8.1 for Desktop - MingGW (Qt SDK) Debug'. | ||
While compiling for release mode, Velocity is compiled with 'Qt 4.8.1 for Desktop - MingGW (Qt SDK) Release'. | ||
|
||
While debugging, Velocity is compiled with 'Qt 6.7 for Desktop - MingGW (Qt SDK) Debug'. | ||
While compiling for release mode, Velocity is compiled with 'Qt 6.7 for Desktop - MingGW (Qt SDK) Release'. | ||
|
||
Tool Chain: 'Mingw as a GCC for Windows targets' | ||
|
||
WARNING: Botan must be found in the working directory of Velocity.exe for Velocity to successfully run. To obtain the Botan libraries, you have 2 options: | ||
|
||
1. Download the Botan sources from http://botan.randombit.net/download.html. | ||
2. Download the Botan binary (.a) from http://www.mediafire.com/?o5zhbb4leufk8d7, if available. | ||
|
||
- MAC | ||
|
||
Botan can be installed using Homebrew by typing `brew install botan` into your terminal. | ||
|
||
- LINUX | ||
|
||
The installation process differs depending on distribution. For example: | ||
Ubuntu: `apt-get install libbotan-1.10-0` | ||
|
||
Ubuntu: `apt-get install libbotan-3-0` | ||
Arch Linux: `pacman -S botan` | ||
|
||
========== | ||
|
||
If you do not want to use Qt Creator IDE, you can use Makefile in the root directory of the project. | ||
The Makefile builds Velocity with debug configuration by default, but one can explicitly set desired configuration as the parameter like this: | ||
If you do not want to use Qt Creator IDE, you can use Makefile in the root directory of the project. | ||
The Makefile builds Velocity with debug configuration by default, but one can explicitly set desired configuration as the parameter like this: | ||
`make debug` or `make release` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! Could you update this COMPILING.md to include updated instructions? Seems it's referencing Qt 4.8.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed a new commit updating COMPILING.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link for the precompiled Botan library in that readme is still for the old version.