diff --git a/omweather-hko-gov-hk-stations-db/omweather-hko-gov-hk-stations-db.pro b/omweather-hko-gov-hk-stations-db/omweather-hko-gov-hk-stations-db.pro index 48c4fb11b..86ef88285 100644 --- a/omweather-hko-gov-hk-stations-db/omweather-hko-gov-hk-stations-db.pro +++ b/omweather-hko-gov-hk-stations-db/omweather-hko-gov-hk-stations-db.pro @@ -6,9 +6,10 @@ TARGET = hkogovhk -TEMPLATE = app +#TEMPLATE = app +TEMPLATE = lib HEADERS += src/meego-main.h \ src/hash.h @@ -21,7 +22,7 @@ FORMS += OTHER_FILES += \ -CONFIG = link_pkgconfig -qt +CONFIG += link_pkgconfig staticlib -qt PKGCONFIG += libxml-2.0 #system(pkg-config --exists glib-2.0){ @@ -45,6 +46,6 @@ source.path = /opt/com.meecast.omweather/share/sources/ #install target.path = /opt/com.meecast.omweather/lib -INSTALLS += target db source +INSTALLS += db source diff --git a/omweather-hko-gov-hk-stations-db/src/meego-main.cpp b/omweather-hko-gov-hk-stations-db/src/meego-main.cpp index 493c57f9b..f235b8e4b 100644 --- a/omweather-hko-gov-hk-stations-db/src/meego-main.cpp +++ b/omweather-hko-gov-hk-stations-db/src/meego-main.cpp @@ -447,7 +447,7 @@ convert_station_hkogovhk_data(const char *station_id_with_path, const char *resu } /*******************************************************************************/ int -main(int argc, char *argv[]){ +main_hkogovhk(int argc, char *argv[]){ int result; if (argc < 3) { fprintf(stderr, "hkogovhk \n");