[Qgis-developer] Qgis, Qt Creator and cmake... how to sort it out?

Jack R lynx21.12.12 at gmail.com
Tue Oct 6 01:33:31 EDT 2009


Hello G. Allegri
Using QtCreator with QGis is easy. To open QGis in it you should do:

   1. In menu File->Open File or Project (Ctrl+O);
   2. In open file dialog find CMakeLists.txt in the root of QGIs
   (/usr/local/src/qgis_trunk/CMakeLists.txt) and open it;
   3. Run cmake in CMake Wizard. You can run it after adding project for
   this you should navigate to cmake build directory it is qtcreator-build in
   project root and run ccmake .. like usually);
   4. After that QtCreator adds the new project with name qgis-1.x.x.
   5. If you need to correct cmake options you can do it now (see 3);
   6. Compile QGis (Ctrl+B);
   7. Switch to tab Projects. In section Build Settings->Build Steps push
   Details button and add in Additional arguments: install.
   8. In section Run Settings push +Add and select in combo box Custom
   Executable then push Details and add in Executable:
   /patch/to/qgis/executable (/usr/local/bin/qgis);
   9. Start Debugging QGis: F5.

Thats all :)

2009/10/5 G. Allegri <giohappy at gmail.com>

> Hello list,
> I was looking for a cross-platform C++ IDE that could fit with Qgis and,
> naturally, I've found Qt Creator. I have neither experience with it nor in
> managing complex cmake projects. Ok that's not a good start, but forgive me
> because until now I've always programmed with scripting languages (Python,
> PHP, etc)
> I go to the point: does anyone have experience with this three ingredients?
> I'll try to set them up by myself, but if someone can share its experience
> it would facilitate very much my struggle...
>
> thanks, Giovanni
>
> http://n2.nabble.com/QtCreator-and-QGis-td2624311.html
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>


-- 
Regards,
Jack R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091006/9ba8e1a9/attachment.html


More information about the Qgis-developer mailing list