Hi,
I added those lines to the proj file but I get the same. Here it the output:
1>------ Build started: Project: nile, Configuration: Debug Win32 ------
1> MOC mapviewsrc\gendockwidget.h
1> MOC genmodels.h
1> MOC gobletrunner.h
1> MOC importraster.h
1> MOC mapviewsrc\keywidget.h
1> MOC mapviewsrc\lyrwidget.h
1> MOC mainwidget.h
1> MOC mapviewsrc\mapdialog.h
1> MOC mapviewsrc\maptoolselect.h
1> MOC mapviewsrc\mapwidget.h
1> MOC mapviewsrc\mapwindow.h
1> MOC practice.h
1> MOC practype.h
1> MOC mapviewsrc\statswidget.h
1> MOC strategy.h
1> UIC gobletrunner.ui
1> UIC importraster.ui
1> UIC mapviewsrc\keywidget.ui
1> UIC mapviewsrc\lyrwidget.ui
1> UIC mainwidget.ui
1> UIC mapviewsrc\mapdialog.ui
1> UIC mapviewsrc\mapwidget.ui
1>mapviewsrc\mapwidget.ui : warning : Z-order assignment: '' is not a valid widget.
1> UIC mapviewsrc\mapwindow.ui
1> UIC practice.ui
1> UIC practype.ui
1> UIC mapviewsrc\statswidget.ui
1>mapviewsrc\statswidget.ui : warning : Z-order assignment: '' is not a valid widget.
1> UIC strategy.ui
1> RCC files.qrc
1> RCC mapviewsrc\mapimages.qrc
1> genFunctions.cpp
1> gendockwidget.cpp
1> genmodels.cpp
1> gobletrunner.cpp
1> importraster.cpp
1> keywidget.cpp
1> lyrwidget.cpp
1> main.cpp
1> mainwidget.cpp
1> mapdialog.cpp
1> maptoolselect.cpp
1> mapwidget.cpp
1> mapwindow.cpp
1> practice.cpp
1> practype.cpp
1> statswidget.cpp
1> strategy.cpp
1> treeitem.cpp
1> moc_gendockwidget.cpp
1> moc_genmodels.cpp
1> Generating Code...
1> Compiling...
1> moc_gobletrunner.cpp
1> moc_importraster.cpp
1> moc_keywidget.cpp
1> moc_lyrwidget.cpp
1> moc_mainwidget.cpp
1> moc_mapdialog.cpp
1> moc_maptoolselect.cpp
1> moc_mapwidget.cpp
1> moc_mapwindow.cpp
1> moc_practice.cpp
1> moc_practype.cpp
1> moc_statswidget.cpp
1> moc_strategy.cpp
1> qrc_files.cpp
1> qrc_mapimages.cpp
1> Generating Code...
1>maptoolselect.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsVectorLayer::staticMetaObject" (?staticMetaObject@QgsVectorLayer@@2UQMetaObject@@B)
1>mapwidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsVectorLayer::staticMetaObject" (?staticMetaObject@QgsVectorLayer@@2UQMetaObject@@B)
1>mapwidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsRasterLayer::staticMetaObject" (?staticMetaObject@QgsRasterLayer@@2UQMetaObject@@B)
1>debug\\nile.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
1>------ Build started: Project: nile, Configuration: Debug Win32 ------
1> MOC mapviewsrc\gendockwidget.h
1> MOC genmodels.h
1> MOC gobletrunner.h
1> MOC importraster.h
1> MOC mapviewsrc\keywidget.h
1> MOC mapviewsrc\lyrwidget.h
1> MOC mainwidget.h
1> MOC mapviewsrc\mapdialog.h
1> MOC mapviewsrc\maptoolselect.h
1> MOC mapviewsrc\mapwidget.h
1> MOC mapviewsrc\mapwindow.h
1> MOC practice.h
1> MOC practype.h
1> MOC mapviewsrc\statswidget.h
1> MOC strategy.h
1> UIC gobletrunner.ui
1> UIC importraster.ui
1> UIC mapviewsrc\keywidget.ui
1> UIC mapviewsrc\lyrwidget.ui
1> UIC mainwidget.ui
1> UIC mapviewsrc\mapdialog.ui
1> UIC mapviewsrc\mapwidget.ui
1>mapviewsrc\mapwidget.ui : warning : Z-order assignment: '' is not a valid widget.
1> UIC mapviewsrc\mapwindow.ui
1> UIC practice.ui
1> UIC practype.ui
1> UIC mapviewsrc\statswidget.ui
1>mapviewsrc\statswidget.ui : warning : Z-order assignment: '' is not a valid widget.
1> UIC strategy.ui
1> RCC files.qrc
1> RCC mapviewsrc\mapimages.qrc
1> genFunctions.cpp
1> gendockwidget.cpp
1> genmodels.cpp
1> gobletrunner.cpp
1> importraster.cpp
1> keywidget.cpp
1> lyrwidget.cpp
1> main.cpp
1> mainwidget.cpp
1> mapdialog.cpp
1> maptoolselect.cpp
1> mapwidget.cpp
1> mapwindow.cpp
1> practice.cpp
1> practype.cpp
1> statswidget.cpp
1> strategy.cpp
1> treeitem.cpp
1> moc_gendockwidget.cpp
1> moc_genmodels.cpp
1> Generating Code...
1> Compiling...
1> moc_gobletrunner.cpp
1> moc_importraster.cpp
1> moc_keywidget.cpp
1> moc_lyrwidget.cpp
1> moc_mainwidget.cpp
1> moc_mapdialog.cpp
1> moc_maptoolselect.cpp
1> moc_mapwidget.cpp
1> moc_mapwindow.cpp
1> moc_practice.cpp
1> moc_practype.cpp
1> moc_statswidget.cpp
1> moc_strategy.cpp
1> qrc_files.cpp
1> qrc_mapimages.cpp
1> Generating Code...
1>maptoolselect.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsVectorLayer::staticMetaObject" (?staticMetaObject@QgsVectorLayer@@2UQMetaObject@@B)
1>mapwidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsVectorLayer::staticMetaObject" (?staticMetaObject@QgsVectorLayer@@2UQMetaObject@@B)
1>mapwidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsRasterLayer::staticMetaObject" (?staticMetaObject@QgsRasterLayer@@2UQMetaObject@@B)
1>debug\\nile.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
To copy to clipboard, switch view to plain text mode
I can see that moc is generating the moc_ and the files are compiled but still the linking fails.
This is the first time I use a .proj files. I usually use qmake and then nmake but I get the same error in the linking
Thanks.
Bookmarks