-
Notifications
You must be signed in to change notification settings - Fork 440
Build OpenBoard on Windows 10 (1.6.4 and before)
These instructions work only for OpenBoard 1.6.4, and no longer work for the current version. We recommend you to follow the instructions for OpenBoard 1.7 instead. To do so, please follow this link
- Download https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16
- Choose Desktop Development in C++
go to Qt downloads page and follow the instructions to download the opensource version of Qt
- https://www.qt.io/download-open-source
- at the bottom of the page, click on the "Download the Qt Online Installer" button
- on the next page, Qt chose automatically the version corresponding to your current OS, so be sure it is the version you want to download (for this example, "Qt Online Installer for Windows (64-bit)")
- click on the "Download" button
Follow the instructions (for this example, Qt is installed in C:\ and pick the <Qt_version> you want (for example 5.15.2), regarding that :
- no need for Web Assembly, Android compilers or even sources so you can deactivate them to reduce the amount of data installed
- QtWebkit only provides packages for Qt 5.15 in their latest release. If you use another version of Qt, you'll have to compile QtWebkit by yourself.
For the rest of this tutorial, we supposed Qt is installed at "C:\Qt"
Download QtWebKit :
-
https://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/qtwebkit/
For this example, we choose the binary
qtwebkit-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z
- Uncompress it. And copy the folders in your Qt path (in this example C:/Qt/5.15.2/msvc2019_64/)
- Accept to merge the folders.
-
Add qmake folder to environment variables :
- search for "Environment Variables" on Windows searchbar, click on it.
- click on the last button at the bottom of the page, called "environment variables"
- on the "system variables" window, add the Qt bin folder - where qmake.exe, using msvc 2019, is located - to the
Path
variable (for example "C:\Qt\5.14.2\msvc2019_64\bin")
-
search for "Developer Command Prompt for VS 2019" on Windwos searchbar, click on it
You can verify that you correctly configured qmake and nmake by respectively taping qmake -v
and nmake/?
these commands should show something like following :
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>qmake -v
QMake version x.y
Using Qt version <Qt_version> in <path_to_your_Qt_folder>/<Qt_version>/msvc2019_64/lib
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>nmake /?
Microsoft (R) Program Maintenance Utility Version 14.26.27034.0
Copyright (C) Microsoft Corporation. Tous droits réservés.
- Open git bash
# place yourself in the directory you want
# (in this example at user's home directory)
cd
# create the folder
mkdir openboard
# enter in it
cd openboard
# download openboard sources
git clone https://github.com/OpenBoard-org/OpenBoard.git
git clone https://github.com/OpenBoard-org/OpenBoard-Importer.git
git clone https://github.com/OpenBoard-org/OpenBoard-ThirdParty.git
First, you need to compile the third-party libraries that OpenBoard is going to need.
Still in this Command Prompt, go to Openboard-ThirdParty's directory
cd <path_to_openboard>
cd Openboard-ThirdParty
cd freetype
qmake freetype.pro
nmake
cd quazip
qmake quazip.pro
nmake
cd xpdf
qmake xpdf.pro
nmake
Now, you can go back to OpenBard's directory
cd <path_to_openboard>
cd Openboard
You can now compile OpenBoard
qmake OpenBoard.pro
nmake
- Download the installer of Inno Setup 6 => https://jrsoftware.org/download.php/is.exe
- Launch it and follow the instructions
Go to :
cd release_scripts\windows
Open release.win7.vc9.bat in your favourite text editor, and modify these lines to point to the correct locations :
#In our example
set QT_DIR=C:\Qt\5.15.2\msvc2019_64
#...
set INNO_EXE=%PROGRAMS_FILE_PATH%\Inno Setup 6\iscc.exe
release.win7.vc9.bat
Now, you should see your OpenBoard installer in <path_to_openboard>/Openboard/install/windows>
- Home
- Downloads
- Documentation
- OpenBoard
- Web Widgets
- Qt WebEngine
- Build Qt WebEngine from source
- Changes with Qt WebEngine
- Changelog
- Roadmap