[Qgis-developer] QGIS.pro, Qt Creator and Android - Qt Creator Integration

Noli Sicad nsicad at gmail.com
Thu Dec 30 06:57:05 EST 2010


Hi Tim, Martin and Nathan,

Thank for your replies.

Nathan, OK. I got errors in "Run Cmake".

I need to install the packages needed to build qgis first before
trying the Android-Qt port.


Noli







On 12/30/10, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> Hi Noli,
>
> I  build and debug QGIS in QT Creator so I might be able to help.  After you
> have opened the main cmake.txt file from the root qgis src directroy as per
> step one, you should be given this dialog after you have selected a build
> path (in my case: /media/DATA/qgis/qgis-trunk/build
> where /media/DATA/qgis/qgis-trunk is my checked out source control.)
>
> [image: Screenshot-CMake Wizard.png]
>
> hit run Cmake on this dialog, after running this CMake will generate the
> needed build files  You then need to navigate to the build directory you
> just created, so something like this in my case:
>
> cd  /media/DATA/qgis/qgis-trunk/build
>
> and then run
>
> ccmake ..
>
> the .. is the location of the source and because my build path is in the
> source directory I am just moving up one directory (change in your case if
> needed).  Running ccmake .. will open up cmake where you can configure paths
> to the libs if anything needs to be changed.  Once in the ccmake screen and
> you have checked everything just hit c (configure) and then g (generate),
> switch back to Qt Creator and continue with the steps.
>
> I can't really help you with the android side of things as I have never done
> it before.
>
> I'm still only learning all this cmake/c++ stuff so hopefully what I said
> was ok.
>
> - Nathan
>
> On Thu, Dec 30, 2010 at 2:49 PM, Noli Sicad <nsicad at gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to create a Qgis.pro (i.e. QGIS Qt Creator Project) based
>> on this instruction [1].
>>
>> I am stuck on this step 3.
>>
>> 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);
>>
>> There are a lot of cmake files in the cmake directory, which one should I
>> use?
>>
>> Anyway, anybody has exciting Qgis.pro (Qt Creator project) already and
>> like to share it.
>>
>> I like to try to compile Qgis in Qt - Android lighthouse and see what
>> happen.
>>
>> You watch the video on Android - Qt Creator Integration here - Video.
>>
>> http://code.google.com/p/android-lighthouse/wiki/QtCreatorIntegration
>>
>> Anybody interested in QGIS mobile for Android?
>>
>>
>> Thanks. Noli
>>
>> ~~~~~~~~~~~~
>>
>> [1] http://www.osgeo.org/pipermail/qgis-developer/2009-October/007832.html
>>
>> 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.
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>


More information about the Qgis-developer mailing list