-
Notifications
You must be signed in to change notification settings - Fork 52
Compiling with VS 2010 & VS 2012
(WIP)
ALL
Qt 4.8.3
VS 2010
Qt Visual Studio Add-in for Qt4 (NOTE: VS 2010 is required to use Qt Designer for Qt4) May not be true
VS 2012
Qt Visual Studio Add-in for Qt5 (NOTE: Limited to regenerating your May not be true.vcxproj
files from nifskope.pro
)
VS 2012
You must also have VS 2010 installed in order to compile with the VS 2010 platform toolset (v100)
- Install Qt 4.8.3.
- Install Qt Visual Studio Add-in for your version of Visual Studio.
- In Visual Studio, create a new, empty project in your Nifskope folder.
- Open nifskope.pro. (See: Regenerating Your Project Files)
- Define the QTDIR environment variable (See: Establishing Environment Variables)
- In your
NifSkope Property Page > General
verify that yourPlatform Toolset
is set toVisual Studio 2010 (v100)
There are a few ways to define QTDIR.
You can add QTDIR to your NifSkope.vcxproj.user file. Open it up as text, and add <QTDIR>C:\Qt\4.8.3</QTDIR>
directly inside each . Replace the path with your Qt path. Example:
...
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<QTDIR>C:\Qt\4.8.3</QTDIR>
<LocalDebuggerEnvironment>PATH=$(QTDIR)\bin%3b$(PATH)</LocalDebuggerEnvironment>
</PropertyGroup>
...
You can also add a user or system environment variable in Windows.
- Make your edits to
nifskope.pro
. - Save and unload the project if it is open.
- In the menu bar navigate to
Qt4
(orQt5
) >Open Qt Project File (.pro) ...
- Prompt "Yes" when it asks if you want to regenerate the project files.
(Note: Currently this must be done every time you want to update Does it? I might be wrong.NIFSKOPE_VERSION
and NIFSKOPE_REVISION
)
QTDIR is probably not defined. You can tell if this is already defined by going to the Nifskope project in Visual Studio, Right Click > Properties
. Under C/C++ > Command Line
you can see the entire output for the build. You should see the full path to Qt includes several times (e.g C:\Qt\4.8.3...), and if you only see "\include\QtCore"
, QTDIR is not defined.
You have not set your Platform Toolset to Visual Studio 2010 (v100).