Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MasterQ32/kristall
Browse files Browse the repository at this point in the history
  • Loading branch information
ikskuh committed Jun 11, 2020
2 parents 13f8e8e + 6e4d663 commit 0c57280
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,17 @@ make

#### Windows

Just use QtCreator to build `./src/kristall.pro`. Default settings should be fine.
Compile OpenSSL with the following steps:
- Install [Perl](https://www.perl.org/get.html) (either ActiveState or Strawberry)
- Install [NASM](https://www.nasm.us/)
- Add both to your PATH
- Clone [OpenSSL](https://github.com/openssl/openssl)
- Open a Visual Studio Developer Command Prompt (or a command prompt that has ran vcvarsall.bat). You will need Administrator privileges for the install step
- In the OpenSSL root directory, run `perl Configure VC-WIN32` if compiling for 32 bit, `perl Configure VC-WIN64A` for 64 bit
- Run `nmake`
- Run `nmake install` to install OpenSSL in `C:\Program Files\OpenSSL`

Use QtCreator to build `./src/kristall.pro` with default settings.

#### MacOS X

Expand Down
2 changes: 1 addition & 1 deletion src/certificateselectiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void CertificateSelectionDialog::acceptTemporaryWithTimeout(QDateTime timeout)
std::default_random_engine rng;
rng.seed(QDateTime::currentDateTime().toMSecsSinceEpoch());

std::uniform_int_distribution<char> distr;
std::uniform_int_distribution<int> distr(0, 255);

char items[8];
for(auto & c : items) {
Expand Down
1 change: 1 addition & 0 deletions src/documentstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <QCryptographicHash>
#include <QDebug>

#include <array>
#include <cmath>

static QString encodeCssFont (const QFont& refFont)
Expand Down
12 changes: 11 additions & 1 deletion src/kristall.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

LIBS += -lcrypto
QMAKE_CFLAGS += -Wno-unused-parameter
QMAKE_CXXFLAGS += -Wno-unused-parameter

LIBS += -lcrypto
win32-msvc {
QMAKE_CFLAGS -= -Wno-unused-parameter
QMAKE_CXXFLAGS -= -Wno-unused-parameter

QMAKE_CFLAGS += /permissive-
QMAKE_CXXFLAGS += /permissive-
LIBS -= -lcrypto
LIBS += "C:\Program Files\OpenSSL\lib\libcrypto.lib"
INCLUDEPATH += "C:\Program Files\OpenSSL\include"
}

INCLUDEPATH += $$PWD/../lib/luis-l-gist/
DEPENDPATH += $$PWD/../lib/luis-l-gist/
Expand Down

0 comments on commit 0c57280

Please sign in to comment.