Configuring Qt creator for AI plugin development
I tried creating AI plugin using
- Visual Studio Premium 2010
- Visual Studio Addin for Qt
- QWinWidget for Qt 4.8
- Qt 4.8 for windows
- Windows 7 32 bit
However, I could not compile the plugin for 64 bit edition as the Qt addin for visual studio do not support Qt 4.8 for 64 bit compilation.
I cannot switch to Qt 5.1 as compatible QWinWidget is not available there.
So I decided to migrate to Qt Creator 2.8 IDE instead of visual studio and bypass the addin.
I could migrate the VS project to a Qt project and compile it. I get a .aip file now.
However, this AI plugin is not loaded by Illustrator.exe
I added the following to get my aip file.
TARGET_EXT = .aip
TEMPLATE = lib
CONFIG += dll embed_manifest_dll
However,
1. the plugin main was not exposed. So, tried
DEF_FILE += "Definitions/PluginMain.def"
Dependency walker now shows "PluginMain", but AI cannot load the plugin.
Qt documentation tell, use "DEF_FILE" only with "app" template. Is this the reason for the failure ?
What is the solution ?
2. How to get the 64 bit target in Qt creator ?
I tried QMAKE_TARGET.arch = x86_64 but the target was 32 bit (checked in dependency walker).
My OS is 32 bit win 7. Is this the reason I cannot get 64 bit target ?
Do I need to install Qt environment on 64bit OS to get the 64 bit target ??
Message was edited by: Dataset