opentoonz-mirror


Project maintained by RodneyBaker Hosted on GitHub Pages — Theme by mattgraham

Building on Windows

This software can be built using Visual Studio 2015 or above and Qt 5.9 (later Qt versions still not working correctly.)

Required Software

Visual Studio Express 2015 or higher for Windows Desktop

CMake

Qt

boost

Acquiring the Source Code

lib and dll

Using CMake to Create a Visual Studio Project

Setting Up Libraries

Rename the following files:

Building

Building with extended stop motion support for webcams and Canon DSLR cameras.

You will need three additional libraries.

Copy the following folders into the $opentoonz/thirdparty folder.

Check the checkbox in CMake to build with stop motion support. On configuring with CMake or in the environmental variables, specify OpenCV_DIR to the build folder in the install folder of OpenCV (like C:/opencv/build).

To run the program with stop motion support, you will need to copy the .dll files from opencv2, libjpeg-turbo and the Canon SDK into the folder where your project is built.

Running the Program

Setting Up the Program’s Path

  1. Copy the entire contents of $opentoonz/toonz/build/Release to an appropriate folder.

  2. 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 - These files should be in the corresponding folders in the same folder 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
  3. 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
  4. 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.

Creating the stuff Folder

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.

  1. Copy the files from $opentoonz/stuff to an appropriate folder.

Creating Registry Keys

  1. Using the registry editor, create the following key and copy the path of the $opentoonz/stuff folder from above to it.
    • HKEY_LOCAL_MACHINE\SOFTWARE\OpenToonz\OpenToonz\TOONZROOT

Running

OpenToonz.exe can now be run. Congratulations!

Debugging

  1. In the Solution Explorer, select the OpenToonz project within the OpenToonz solution.
  2. In the Project menu, choose Set as StartUp Project.

Creating the Files for the srv Folder

OpenToonz 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.

Qt

QuickTime SDK

  1. Sign in using your Apple developer ID and download QuickTime 7.3 SDK for Windows.zip from the following url.
    • https://developer.apple.com/downloads/?q=quicktime
  2. After installing the QuickTime SDK, copy the contents of C:\Program Files (x86)\QuickTime SDK to $opentoonz/thirdparty/quicktime/QT73SDK

Using CMake to Create a Visual Studio 32-bit Project

Building the 32-bit Version

  1. Open $opentoonz/toonz/build32/OpenToonz.sln

Layout of the srv Folder

Creating Translation Files

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.