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

I implemented Qt as a GUI module inside an Adobe Illustrator Plugin for Mac OS X.
Half of the time, after boot up, the button click results in successful click event delivery. Once successful, it never failed, until next application reboots. When fails, it always crashes on the first button click and crashes at the execution of QApplication::flush(); inside QAbstractButton::mousePressEvent(QMouseEvent *e) function from qabstracbutton.cpp.
Do you handle any mouse event for button at all other than connect the button to a callback?
The following is code I written to instantiate QApplication and Qt GUI components to reside inside an container provided by Illustrator’s API:
GetPlatformWindow returns dlgHnd which is NSView of a GUI container.
pEditWidget is a QWidget class containing a few QPushButton.
SetNotifyProc calls Qt connect method to setup button click callback.
At startup Illustrator application loads the following codes which reside in a dll module. int argc; char **argv=NULL;
QApplication::setAttribute(Qt::AA_MacPluginApplication);
QApplication::setAttribute(Qt::AA_ImmediateWidgetCreation);
g->qtApp = new QApplication(argc, argv);
AIPanelPlatformWindow dlgHnd = NULL;
sAIPanel->GetPlatformWindow(this->fPanel, dlgHnd);
g->pEditWidget = new qtEditWidget();
g->pEditWidget->sMenuItem->SetNotifyProc(g->pEditWidget->normalBtn, normalBtnClick);
g->pEditWidget->sMenuItem->SetNotifyProc(g->pEditWidget->relativeBtn, relativeBtnClick);
//set panel to contain qt stuffs NSView* newView = (NSView*)g->pEditWidget->winId(); [dlgHnd setFrame:[newView frame]]; [dlgHnd addSubview:newView]; g->pEditWidget->show();
After show(), the application show the buttons. When fail, always break in this mousePressEvent() function at event flush() function (Code from Qt 4.8.5 source):
void QAbstractButton::mousePressEvent(QMouseEvent *e)
{ Q_D(QAbstractButton); if (e->button() != Qt::LeftButton) { e->ignore(); return; } if (hitButton(e->pos())) { setDown(true); d->pressed = true; repaint(); //flush paint event before invoking potentially expensive operation
**********my note: after flush() EXE_BAD_ACCESS (code = 13, address = 0×0)**************** QApplication::flush(); d->emitPressed(); e->accept(); } else { e->ignore(); }
Here is the dump from within Xcode 4.6 in Thread 1:
Thread 1, Queue : com.apple.main-thread
#0 0×000000011f68298d in QHashData::nextNode(QHashData::Node*) at /temp/qt4.8.5src/src/corelib/tools/qhash.cpp:294
#1 0×000000011fa6f4d7 in QHash<QWidget*, QHashDummyValue>::const_iterator::operator++() at /temp/qt4.8.5src/src/gui/../../include/QtCore/../../src/corelib/tools/qhash.h:427
#2 0×000000011fa6f510 in QSet<QWidget*>::const_iterator::operator++() at /temp/qt4.8.5src/src/gui/../../include/QtCore/../../src/corelib/tools/qset.h:155
#3 0×000000011fa70b34 in QSet<QWidget*>::toList() const at /temp/qt4.8.5src/src/gui/../../include/QtCore/../../src/corelib/tools/qset.h:303
#4 0×000000011fa59060 in QApplication::allWidgets() at /temp/qt4.8.5src/src/gui/kernel/qapplication.cpp:2180
#5 0×000000011fa590a6 in QApplication::topLevelWidgets() at /temp/qt4.8.5src/src/gui/kernel/qapplication.cpp:2154
#6 0×000000011f9b5900 in QEventDispatcherMac::flush() at /temp/qt4.8.5src/src/gui/kernel/qeventdispatcher_mac.mm:766
#7 0×000000011f847f97 in QCoreApplication::flush() at /temp/qt4.8.5src/src/corelib/kernel/qcoreapplication.cpp:690
#8 0×000000012029d4e4 in QAbstractButton::mousePressEvent(QMouseEvent*) at /temp/qt4.8.5src/src/gui/widgets/qabstractbutton.cpp:1097
#9 0×000000011fb06b10 in QWidget::event(QEvent*) at /temp/qt4.8.5src/src/gui/kernel/qwidget.cpp:8385
#10 0×000000012029d836 in QAbstractButton::event(QEvent*) at /temp/qt4.8.5src/src/gui/widgets/qabstractbutton.cpp:1082
#11 0×00000001203f1c81 in QPushButton::event(QEvent*) at /temp/qt4.8.5src/src/gui/widgets/qpushbutton.cpp:683
#12 0×000000011fa4fc62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) at /temp/qt4.8.5src/src/gui/kernel/qapplication.cpp:4562
#13 0×000000011fa5100a in QApplication::notify(QObject*, QEvent*) at /temp/qt4.8.5src/src/gui/kernel/qapplication.cpp:4105
#14 0×000000011f84c9aa in QCoreApplication::notifyInternal(QObject*, QEvent*) at /temp/qt4.8.5src/src/corelib/kernel/qcoreapplication.cpp:953
#15 0×000000011fa6f3d7 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) at /temp/qt4.8.5src/src/gui/../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h :234
#16 0×000000011fa61205 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) at /temp/qt4.8.5src/src/gui/kernel/qapplication.cpp:3171
#17 0×000000011f9ab812 in qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) at /temp/qt4.8.5src/src/gui/kernel/qt_cocoa_helpers_mac.mm:1271
#18 0×000000011f99086a in -[QCocoaView mouseDown:] at /temp/qt4.8.5src/src/gui/kernel/qcocoaview_mac.mm:555
#19 0×00007fff9255950e in -[NSWindow sendEvent:] ()
#20 0×0000000105bfa558 in OWLRemoveObjCExceptionCallback ()
#21 0×0000000105bfc961 in OWLRemoveObjCExceptionCallback ()
#22 0×00007fff92555644 in -[NSApplication sendEvent:] ()
#23 0×000000011f9a1646 in -[QNSApplication qt_sendEvent_replacement:] at /temp/qt4.8.5src/src/gui/kernel/qcocoaapplication_mac.mm:178
#24 0×0000000108612145 in -[DVAMacApplication sendEvent:] ()
#25 0×0000000108e981cc in -[ExoMacApplication sendEvent:] ()
#26 0×00007fff9246b21a in -[NSApplication run] ()
#27 0×0000000108e96807 in exo::app::OS_AppBase::RunEventLoop() ()
#28 0×000000010075b698 in 0×10075b698 ()
#29 0×00000001006ff385 in 0×1006ff385 ()
#30 0×00000001006ef5d4 in 0×1006ef5d4 ()
#31 0×00000001001635f8 in 0×1001635f8 ()
This problem is repeatable and happens frequently (after few application boot ups).

Similar Messages

  • Guide for InDesign Plugin development

    Hi,
    I am new to Extension builder - plugin development. I have experience with actionscript.
    I would like to get guide, document, reference or instruction to learn InDesing Plugin development.
    Thanks In Advance
    Regards,
    Bharat

    To develop InDesign plug-ins you need to get the InDesign SDK. You can find instructions in Adobe's website on how to do this. This includes a lot of information including a "Getting Started" guide.
    Note: InDesign plug-in development has it's own forum. This forum is for CC Extension development, which is not described in the InDesign SDK.

  • From where I can download Indesign cc 2014 SDK for C++ plugin development?

    I have plugin which work fine with indesign cc 2013. I am in a processes of adding support for indesign cc 2014 but SDK is not available for download. Please suggest how to get SDK?

    This page tells you how to apply:InDesign Developer Center | Adobe Developer Connection

  • Looking for Lightroom Plugin Developer for a Project

    We are looking for a developer who can help us create a Lightroom plugin that will allow Lightroom users to upload their photos for print to our web based print and production service. Minimal user interface required. In the first stage of the project, shopping cart including pricing and shipping information will be handled by the web system. Later stages may include advertising pricing information inside Lightroom.
    For more information respond to this thread or send an email to [email protected]
    Klaus Sonnenleiter
    http://www.printedart.com

    studiodh33,
    Please see private message if you haven't already...
    -Rob

  • How to setup Xcode 4.2 for indesign plugin development

    Hi all,
    i am trying to add an indesign project template to xcode 4.2. I read and try almost all and nothing is working for me. I was trying to go step by step as getting started pdf from adobe shows, but its targeted for xcode 3.x, so any luck here... I am not able to sucessfuly run even dollyxs from terminal, it just generate empty txt file. Could anyone tell me please or shows link how to add indesign template to xcode 4.2???
    thanks in advice

    Hi all,
    so finally I have made all steps the right way. Everything is ok, but when Iam trying to build my sample, error:
      "DontDeadStrip()", referenced from:
          PlugIn::~PlugIn()in libPublicPlugIn.a(PlugIn.o)
          PlugIn::~PlugIn()in libPublicPlugIn.a(PlugIn.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    pop up. How it is possible, that this method is missing?? Could anyone suggest correction?
    THX

  • Safari 7.0 (v9537.71) has not been tested with the plugin LastPass 1.75.0 (v1.75.0). As a precaution, it has not been loaded. Please contact the plugin developer for further information.

    I get the following message whenstarting Safari
    Safari 7.0 (v9537.71) has not been tested with the plugin LastPass 1.75.0 (v1.75.0). As a precaution, it has not been loaded. Please contact the plugin developer for further information.
    i have removed the plugin, but the message is still around
    and the last version i had installed was the most recent version of last pass VERSION 3.0.17
    anything i can do to fix that?
    thanx
    js

    Uninstall SIMBL as follows. Back up all data before making any changes.
    Triple-click anywhere in the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination command-C:
    /Library
    In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V), and press return. A folder will open. From that folder, delete the items listed below (some may be absent.) You may be prompted for your administrator login password.
    Application Support/SIMBL
    InputManagers/SIMBL
    LaunchAgents/net.culater.SIMBL.Agent.plist
    ScriptingAdditions/SIMBL.osax
    Log out and log back in.
    Make sure you never reinstall SIMBL. It’s likely to come bundled with another third-party system modfication that depends on it. If you want trouble-free computing, avoid software that makes miraculous changes to other software, especially built-in applications. The only real exception to that rule is Safari extensions, which are mostly safe, and are easy to get rid of when they don’t work. SIMBL and its dependents are not Safari extensions.

  • Eclipse 4.5: Making it ready for plugin development

    Hi,
    I just installed Mars, Eclipse 4.5 for Java Developers.
    I started a plugin development tutorial, where the the read is told to go this path to start a new plugin project:
    File → New → Project... → Plug-in Development → Plug-in Project.
    I don't have that path.
    How can I find and install of the components I need for plugin development?
    Thanks
    Steve

    From the menu select Help > Install New Software...
    In the Available Software dialog, select the Mars update site (it's URL is http: //download.eclipse.org/releases/mars), then in the list below find "Eclipse Plug-in Development Environment" under the "General Purpose Tools" section. Select that and then you can proceed to Finish the Install dialog.

  • What is the plugin used for jsp/servlet development , deployment in eclipse

    what is the plugin used for jsp/servlet development , deployment in eclipse?
    can some body tell me what are the other plugins to be used in enterprise java developement
    is eclipse would be a best choice j2ee application development?
    thanks

    what is the plugin used for jsp/servlet development ,
    deployment in eclipse?There are several J2EE plugins I think. One is Lomboz.
    can some body tell me what are the other plugins to
    be used in enterprise java developementPfft...
    1) Might depend on what you're doing. J2EE is not just JSP, you know?
    2) Why do you ask about Eclipse IDE at Sun's Java Programming forum?
    3) Do you really want me to list the 5000 plug-ins someone might use for J2EE-related development?
    4) Open fucking Google and search yourself
    is eclipse would be a best choice j2ee application
    development?IMO: no. Simply because you have to look for J2EE plugins. I'm too lazy for that. Though it has other benefits that might outweigh the plug-in-searching issue.

  • Step for Publish a development created with Webdynpro for Java

    Good Afternoon.
    I am new in this of publish development in the portal.
    We created a development with Webdynpro java using RFC. We want know what are the step for publish this development in the portal ESS?
    The development work fine. But i don't know how to publish this in the portal.
    What configurations i have that do In the part of ECC and in the part of portal.?.
    Can someone help me?
    Kind Regards-

    Hi,
    When i have that do configurations for the following paths:
    Employee Self-Service>General Settings>Homepage for Self-Services-->Resources
    Employee Self-Service>General Settings>Homepage for Self-Services-->Headers and Area Group Pages
    Employee Self-Service>General Settings>Homepage for Self-Services-->Areas
    Employee Self-Service>General Settings>Homepage for Self-Services-->Subareas
    Employee Self-Service>General Settings>Homepage for Self-Services-->Services.
    Kind Regards,

  • How to stop an error message that pops up every time I open Safari. It reads...Safari 5.1 (v6534.50) has not been tested with the plugin PithHelmet .As a precaution, it has not been loaded. Please contact the plugin developer.

    How do I stop this error message from popping up every time I start up Safari ?
    Error message reads...
    Safari 5.1 (v6534.50) has not been tested with the plugin Pithhelmet 3.0b6 (v 3006)
    As a precaution, it has not been loaded. Please contact the plugin developer.
    I have removed every trace of Pithhelmet, (via spotlight)
    Trashed the preferences for Safari, restarted computer to no avail.
    It just  keeps keepin on.
    Thanks

    In the past I was able to bypass the message by editing the Info.plist file and updating the MaxBundleVersion variable, but not so this time around. As of today the developer seems to indicate there's no immediate fix becuase of how Safari 5.1 handles multiprocess page rendering. Probably best to stay tuned to Mike's website for now.

  • Unable to configure Netbeans IDE for IDM

    I am trying to configure Netbeans IDE for my IDM project. I am using Netbeans 6.8 with the compatible plugin with JDK 1.6.
    For creating the project, I select Identity Manager Project and then provide the war file, that I create for my existing IDM installation(so that Netbeans IDM project is connected with my existing IDM project), and then select Configure repository later.
    When I perform Build, I get the following error.
    <Error during build>
    Indexing C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\custom\WEB-INF\config\custom-init-postprocess.xml
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\idm-staging\sample\admins.xml: Unexpected error parsing: com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
    ==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
    com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
    ==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\nbproject\nbjdk.xml:8: The following error occurred while executing this line:
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\build.xml:384: Object validation failed; see object validator error output for details.
    BUILD FAILED (total time: 21 seconds)
    </Error>
    Anyone with similar issues, and workarounds would be appreciated.

    Use Netbeans 6.1 and Sun Identity Manager 8.1.1 and download plugin com-sun-idm-ide_8.1.0.20080630.nbm from http://java.net/projects/identitymanageride/downloads
    Currently i have installed it and it is working fine for me.
    OR
    re-downloaded idm ide-bundle.zip respective to your idm version and try to craete project in Netbeans 6.1 and 6.8.

  • For pure AS3 development do we still need to overlay the FLEX SDK?

    Hi Guys
    I've found this whole SDK overlay business a mess and very confusing. I've found this document
    http://www.adobe.com/devnet/air/articles/ane-android-devices.html
    which states
    "The distribution of the AIR SDK with ASC 2.0 is for pure ActionScript development only. It should not be combined with an existing Flex SDK.
    To support Flex application development with newer versions of the AIR SDK, an AIR SDK overlay distribution that does not include ASC 2.0 needs to be overlaid over the Flex SDK bundled with Flash Builder 4.7."
    So if we are doing pure AS3 development there is no longer any need to do any 'overlaying' of one SDK Folder onto another.  We just need to get the latest AIR SDK with complier ( http://www.adobe.com/devnet/air/air-sdk-download.html )
    We should then update the AIR SDK if using Flash Builder via (  http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder. html ) (Note it still uses the term 'overlay' but you are not really overlaying but replacing).
    Is this conclusion correct.  Do we just need the SDK with the new compilier and nothing else ?
    Can someone from Adobe confirm please ?
    Thanks
    PS - I've asked this question on the Flash Builder Forom but there's been no response.

    Yes, that's correct, for pure AS3 development you need not use the Flex SDK overlay. For this you should use asc2 compiler available at http://www.adobe.com/devnet/air/air-sdk-download.html . Also below are step to overlay your AIR SDK with Flash builder 4.7
    1. Exit Flash Builder. 
    2. Back up the AIR SDK availabe at Application/FB4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/ by copying the entire directory and rename it to something AIRSDKversion. Now, you have two folder AIRSDK(default one) and AIRSDKversion(copied one).
    3. Download the appropriate AIR SDK file for your operating system e.g. http://www.adobe.com/devnet/air/air-sdk-download.html unzip and save it on your MAC OS X.
    4. On Terminal, run the below command
    sudo ditto /path/air3-8_sdk_sa_mac /Applications/Adobe\ Flash\ Builder\ 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK
    /path/air3-8_sdk_sa_mac -> path where you downloaded the AIR SDK
    /Applications/Adobe\ Flash\ Builder\ 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK -> path where you overlay the new AIR SDK
    5. (Optional) To access the new AIR 3.8 APIs, update your application descriptor file to the 3.8 namespace.
    To update the namespace, change the xmlns attribute in your application descriptor to: <application xmlns="http://ns.adobe.com/air/application/3.8">
    6. (Optional) To ensure that the output SWF file targets SWF version 21, pass an additional compiler argument: -swf-version=21.
    Hope this will help.
    Regards,
    Nimit

  • Terms and conditions for InDesign plugin for B2B?

    Hello Community,
    we are developing a commercial plugin for Adobe InDesign for B2B.
    For this purpose we need some information about how to write terms and conditions for Adobe InDesign plugins. Which requirements should we write in the terms and conditions? If Adobe InDesign CC is expired, the plugin can’t also be used? Are there anybody who have useful terms and conditions for such plugins or which plugin company use some useful terms and conditions?
    regards,
    Raymond

    There are not many developers here. Try the InDesign SDK forum where you'll find more developers.

  • Switching the language of the "Crystal Reports for Eclipse" plugin

    Good day everyone,
    I would like to ask about configuring the language of the "Crystal Reports for Eclipse" plugin:
    - I have "Crystal Reports for Eclipse" version: 2.0.7.r1040
    - I have installed the language packs 1 and 2
    - Currently, the Crystal Reports perspective and the associated views are displayed in German.
    - I would like to switch these views back to English.
    Questions:
    1. How can I switch the language?
    2. Will this switching of the language have any known side effect on the existing reports, because some of the reports in my current project are displayed in German?
    Thank you in advance for your support.
    Best regards,
    Samar

    Hello everyone,
    I have found a solution for this question that I would like to share with you.
    - Browse the Control Panel
    - Open the Regional and Language Options
    - In the Regional Options tab under the Standards and formats group, select the Locale that you prefer.
    - *Restart Eclipse* and the Crystal Reports plugin would read the changed setting and display the Crystal Reports perspectives and views in the language of the selected Locale.
    Best regards,
    Samar
    Edited by: Samar Hossam on Jun 30, 2011 6:56 PM

  • Configuring optimizeit profiler for multiple kjs

    Hi,
    I am facing problems in configuring optimizeit profiler for multiple kjs. It
    works fine if i have a single kjs in my app server and i am able to read the
    profiler output. I am using iAS6.0sp2.
    When i try to change the script that attaches the profiler with kjs for
    multiple kjs all the kjs start on the same port i.e 10819. I want all the
    kjs to start on different ports so that i can read the profiler output for
    all of then at one go.
    If any body has done this before with success then please help me at an
    earlier date.
    This is very very urgent for me.
    sandhya

    There is three things important While you working with custom member ship and FBA to work. 
    1. If you have developed Custom membership extending SQLServerMembership provider then make sure to check for Machine Key. as internally if usese combincation of this to encrypt password, so if you used first userid using some other method of creating user
    then probably it does not use machine key in that configuration file.
    2. if you doing brand new implementation from base classes you probably want to check your query & stored Procedure. make sure to run sql profiler to see what query is getting fired.
    3. this one is most least and mostly not will be problem but do check Application Name,
    Note: Key to get this working is Machine key, Application Name, your custom code revisit, sql profiler and you should be good,
    Also do review FBA Code from CodePlex you can save significant time in developing from scratch.
    -Samar
    www.gosam.info
    Please remember to click Mark as Answer on the answer if it helps you
    Sr. Software engineer

Maybe you are looking for

  • HP Laserjet 2015 Printing Problem

    1)I have hp laserjet 2015 share printer , when I print from other machine if the page is one it is coming with no problem. when I print a file which is contain 8 pages, in this 8 pages If I want to print page no 2-3 pages, if it is mention then print

  • How do I delete pages...

    I accidentally hit auto complete when i was half was through my book and it added loads of unnecesary pages to the back of my book. I have removed all the images. How do I remove all those extra pages?

  • Missing warnings while using softproofing ?

    First, congratulations for all the new or enhanced features ! Especially the softproofing function is great : the histogramm is now showing what is happening in the destination color space. My question is about the warnings on the image while using s

  • CUA With Two  R/3 server Implementation

    Hai All, Currently we are using EP5.0 with SAP R/3 4.6C with two R/3 (P01,P02)servers. User id is managed in LDAP. That is, 1. user u will be accessing P01 R/3 system we will create a user id in LDAP and a SAP userid IN P01 R/3 system 2. user u will

  • What is the terminal command to open sound preferences in Mac Snow Leopard

    Hi I want to know what is the command to open sound preferences dialog from command prompt. short key for doing this is option key + F12. But I am looking for somehting I can enter in terminal to open sound preferences.