[Solved]:QGIS API for linux
-
Hi all,
I want to build the .so files for QGIS in RedHat 5/6. Can anyone please guide me. Im having the sourcecode of QGIS but not getting how to compile it on RedHat, in installation page they have specified for ubuntu and others but not explicitly for RedHat.
And I want to use this QGIS .so files to draw a map on Qt application.Regards,
Suma -
Hi,
I don't have a RedHat system at hand but basically: you need to install the RedHat equivalent packages that are mentioned in the documentation then the build procedure should be pretty much the same.
-
Hello Sir,
Thanks for the reply. But Im not getting the Redhat equivalent packages only. Means Im not getting whether the dependencies for ubantu is same as redhat or not??. Thanks sir, I ll start to find the related packages. -
Look at the listed packages, IIRC, there is for example the Qt 4 dev packages, so look in RedHat package manager for those. You'll have to repeat the step for each dependency mentionned
-
Solved: Successfully running QGIS in redhat 5 now.
Thanks
-
You welcome !
Since it's all good, don't forget to update the thread's title to solved so other forum users may know that a solution has been found :)
-
Ya done it. But I have one more query regarding qgis. I have written the sample QGIS application(C++) to load the raster map. That I want to include in my Qt application. So I need an help, how to include Qgis libraries into the Qt and how to compile it.
-
AFAIK, you can include it like any other library
-
but how to compile it.. QGis asks for cmake but Qt works with qmake.
-
AFAIK QGIS asks for cmake only to be compiled. To use it you have the choice.
cmake support to build Qt related projects has been done since a long time. Also QGIS uses Qt
-
Hi SGaist,
Everything is done. QGIS is working fine with RHEL with Qt4.8. Im able to write and compile the QGIS sample application with QT. Now trying to implement same with my application. Thanks for your help. -
You're welcome !
The easiest would be to start from a QGIS example and play with it until you have what you want