ObjectARX 2012 multiplatform Qt
Post: 3 ; Page: 1 of 11
M1_2R2012-10-01 13:49
Hallo,
I am developping for AutoCAD 2012 for MAC with Qt 4.7. For those coming from Mac this is very, very intuitive and works pretty fine.
Now I need to compile my code for AutoCAD 2012 for Windows 7 as well. I would like to use Qt in order to reuse my existing code. Also I would prefer doing this with Qt Creator instead of VS. The sample-code from ObjectARX 2012 seems to need VS 2008 to compile. I do only have VS 2010 on my Windows mashine.
Has anyone experiences with Qt ObjectARX for Windows?
- which DEFINES,
- which LIBRARIES,
- which QMAKE settings,
do I need ?
Thank you in advance!
Michael
owenwengerd2012-10-01 15:12
I don't have any experience with Qt, but you must have VS 2008 SP1 installed in order to build with the ObjectARX 2012 API.
maisoui2012-10-09 01:43
Hi,
I use Qt in my Arx for years now, and it works very well. As you Owen said, you need to compile your code with visual studio compiler 2008 (you can use VS 2010 with platform toolset set to v90). You need to compile Qt librairies with visual studio compiler too (using Visual Studio command prompt for win32 and x64).
Some tips:
- Use Mfc migration framework (http://doc.qt.digia.com/solutions/4/qtwinmigrate/winmigrate-walkthrough.html). With QWinWidget you will be able to "plug" QWidget in AutoCAD Ui.
- Use the free Qt Visual Studio addin(http://releases.qt-project.org/vsaddin/qt-vs-addin-1.1.11-opensource.exe) to manage Qt project configurations.
- Pay attention to the version of Qt that you will use because AutoCAD embeds Qt libraries (I guess 4.7), and It can cause compatibility issue. Personnally, I prefix the Qt librairies in my build process to have my own QCoreApplication running (-> custom own style).
I use all main librairies (Core, Gui, Xml, Svg, Sql, Network, WebKit, ActiveQt), and I have no specific DEFINES.
I hope it can help you.
Regards,
Jonathan