missing ui_mainwindow.h?

Dirk Hohndel dirk at hohndel.org
Tue Jul 12 14:17:47 PDT 2016


> On Jul 13, 2016, at 6:09 AM, Gaetan Bisson <bisson at archlinux.org> wrote:
> 
> Hi,
> 
> When building the latest git snapshot of subsurface on a
> run-off-the-mill Linux desktop I get:
> 
> 
> [ 28%] Building CXX object qt-models/CMakeFiles/subsurface_models.dir/filtermodels.cpp.o
> In file included from /build/subsurface-git/src/subsurface/qt-models/filtermodels.cpp:8:0:
> /build/subsurface-git/src/subsurface/./desktop-widgets/mainwindow.h:16:27: fatal error: ui_mainwindow.h: No such file or directory
> #include "ui_mainwindow.h"
>                           ^
> compilation terminated.
> make[2]: *** [qt-models/CMakeFiles/subsurface_models.dir/build.make:159: qt-models/CMakeFiles/subsurface_models.dir/filtermodels.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:594: qt-models/CMakeFiles/subsurface_models.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> 
> 
> There's no ui_mainwindow.h in the source tree. Is that header file
> supposed to be automatically generated in some way?

This is usually a sign of building 4.5.x stable version and then master in the same build tree.

make clean
rm ui_*.h
rm moc_*.h

and try to build again.

/D


More information about the subsurface mailing list