This software can be built using Visual Studio 2019 and Qt 5.x
MSVC 2019
project file.WITH_WINTAB
checkbox in CMake to build.OpenCV_DIR
to the build
folder in the install folder of OpenCV (like C:/opencv/build
).$opentoonz
will represent the root for the base repository.lib
and dll
files are tracked by Git Large File Storage.MSVS
as well.git config core.safecrlf true
git lfs pull
after git clone
by using the lfs client.Where is the source code
, navigate to $opentoonz/toonz/sources
Where to build the binaries
, navigate to $opentoonz/toonz/build
QT_DIR
install folder and specify the path to msvc2019_64
. Rerun Configure.
-If red lines appear in the bottom box, you can safely ignore them.
-Click Generate
-Should the CMakeLists.txt file change, such as during automatic build cleanup, there is no need to rerun CMake.Rename the following files:
- $opentoonz/thirdparty/LibJPEG/jpeg-9/jconfig.vc
to $opentoonz/thirdparty/LibJPEG/jpeg-9/jconfig.h
- $opentoonz/thirdparty/tiff-4.0.3/libtiff/tif_config.vc.h
to $opentoonz/thirdparty/tiff-4.0.3/libtiff/tif_config.h
- $opentoonz/thirdparty/tiff-4.0.3/libtiff/tiffconf.vc.h to $opentoonz/thirdparty/tiff-4.0.3/libtiff/tiffconf.h
- $opentoonz/thirdparty/libpng-1.6.21/scripts/pnglibconf.h.prebuilt to $opentoonz/thirdparty/libpng-1.6.21/pnglibconf.h
- Note that the destination is a different folder for the last file.
$opentoonz/toonz/build/OpenToonz.sln
and change to Debug
or Release
in the top bar.$opentoonz/toonz/build/
You will need the Canon SDK. This requires applying for the Canon developer program and downloading the SDK.
$opentoonz/thirdparty/canon
Check the WITH_CANON
checkbox in CMake to build with Canon DSLR camera support.
To run the program with Canon DSLR camera support, you will need to copy the .dll files from the Canon SDK into the folder where your project is built.
Copy the entire contents of $opentoonz/toonz/build/Release to an appropriate folder.
Open a Command Prompt and navigate to QT_DIR/msvc2015_64/bin
. Run the Qt program windeployqt.exe
with the path for OpenToonz.exe
as an argument. (Another way to do this is navigate to the exe that was created in your Release folder and drag and drop the Opentoonz.exe on top of the windeployqt.exe This will automatically generate the QT files and folders you will need.)
- The necessary Qt library files should be in the same folder as OpenToonz.exe
- These include:
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5OpenGL.dll
Qt5PrintSupport.dll
Qt5Script.dll
Qt5Svg.dll
Qt5Widgets.dll
Qt5Multimedia.dll
OpenToonz.exe
/bearer/qgenericbearer.dll
/bearer/qnativewifibearer.dll
/iconengines/qsvgicon.dll
/imageformats/qdds.dll
/imageformats/qgif.dll
/imageformats/qicns.dll
/imageformats/qico.dll
/imageformats/qjpeg.dll
/imageformats/qsvg.dll
/imageformats/qtga.dll
/imageformats/qtiff.dll
/imageformats/qwbmp.dll
/imageformats/qwebp.dll
/platforms/qwindows.dll
Copy the following files to the same folder as OpenToonz.exe
- $opentoonz/thirdparty/glut/3.7.6/lib/glut64.dll
- $opentoonz/thirdparty/glew/glew-1.9.0/bin/64bit/glew32.dll
- turbojpeg.dll
from libjpeg-turbo package
- opencv_world***.dll
from OpenCV package
Copy the srv
folder from the previous OpenToonz installation to the same folder as OpenToonz.exe
- If there is no srv
folder, OpenToonz can still be used. However, various file formats such as mov
cannot be used.
- Creating the files for srv
is discussed later.
If a previous binary of OpenToonz was already installed, this step and the following about creating a registry key has already been dealt with. So feel free to skip these parts.
$opentoonz/stuff
to an appropriate folder.$opentoonz/stuff
folder from above to it.
- HKEY_LOCAL_MACHINE\SOFTWARE\OpenToonz\OpenToonz\TOONZROOTOpenToonz.exe
can now be run. Congratulations!
srv
FolderOpenToonz utilizes the QuickTime SDK's mov
and associated file formats. Since the QuickTime SDK only comes in 32-bit versions, the 32-bit file t32bitsrv.exe
from the QuickTime SDK is used in both the 64-bit and 32-bit versions of OpenToonz. As a result, the following instructions apply to both the 32 and 64-bit versions of OpenToonz.
QuickTime 7.3 SDK for Windows.zip
from the following url.
- https://developer.apple.com/downloads/?q=quicktimeC:\Program Files (x86)\QuickTime SDK
to $opentoonz/thirdparty/quicktime/QT73SDK
$opentoonz/toonz/build
to $opentoonz/toonz/build32
Visual Studio 16 2019 x64
to Visual Studio 16 2019 Win32
QT_PATH
to the path of your 32-bit version of Qt$opentoonz/toonz/build32/OpenToonz.sln
srv
Foldersrv
folder:$opentoonz/toonz/build32/Release
windeployqt
to obtain required libraries$opentoonz/thirdparty/glut/3.7.6/lib/glut32.dll
Qt translation files are generated first from the source code to .ts files, then from .ts files to a .qm file. These files can be created in Visual Studio if the translation_
project and Build translation_??? only
(translation_???
のみをビルド」) is used. These files are not created in the default Build Project Solution
.