Skip to content

Compiling with Qt Creator (macOS)

jonwd7 edited this page Jun 10, 2017 · 1 revision

Requirements

To compile NifSkope with Qt Creator you will need XCode. You may install this from the App Store and you must run it once for it to complete installation.

Installing Qt

To install you simply need the Qt Online Installer.

Configuration

After downloading the Qt Online Installer, run it and select the following at minimum:

You do not need any of the extras or the iOS, Android, or ARM binaries.

Downloading NifSkope

This guide assumes that you have cloned from git@github.com:niftools/nifskope.git and did so with the --recursive option or ran git submodule update after.

Opening the NifSkope project

In Qt Creator, open NifSkope.pro in the project root. It should ask you to select the build kits for the project. Select at minimum Desktop Qt 5.9.0 clang 64bit and click Configure Project.

Compiling NifSkope

To assure your Makefile is up-to-date, right-click in the Projects pane on NifSkope (or use the Build menu), and select Run qmake. Then select Build and wait for it to compile. If you receive any third-party library errors, you have not run git submodule update.

Packaging NifSkope

To run NifSkope after building you will need to copy nif.xml and kfm.xml into NifSkope.app/Contents/MacOS like so:

Note: The build process may be improved in the future to do this automatically.