compile error: salinityText?

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue Oct 22 15:06:17 UTC 2013


On Tue, 22 Oct 2013, Patrick Valsecchi wrote:
>
> Weird... looks like you compile against an old MOC generated moc_maintab.cpp
>
> When you run make (after a distclean and a qmake) does it show that before
> failing:
>     uic qt-ui/maintab.ui

Nothing of intrest, just a bunch of:

/usr/lib/x86_64-linux-gnu/qt4/bin/lrelease
translations/subsurface_source.ts -qm translations/subsurface_source.qm
Updating 'translations/subsurface_source.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 534 untranslated source text(s)

Odd thing is:

$ qmake
WARNING: Failure to find: subsurface.qrc
/usr/lib/x86_64-linux-gnu/qt4/bin/rcc: File does not exist 'subsurface.qrc'

Is that relevant?

> Can you try to run that before make:
>     rm -r .moc

The .moc subdir is empty, but there's a qt-gui.moc file in topdir (not
removed by distclean (they seem to be created by qmake).  Anyway:

$ rm -rf .moc
$ rm -f qt-gui.moc

and:

>     touch qt-ui/maintab.ui

No difference :(

I found object files (and other generated files) in qt-ui/.  Removed them
too.  New error:

$ make
uic qt-ui/maintab.ui
uic: Error in line 1, column 0 : Premature end of document.
File 'qt-ui/maintab.ui' is not valid

Removed code tree.  Cloned again.

$ qmake
(no warnings)
$ make

That works better.

$ make distclean
$ qmake
(no warnings)
$ make

That works again.  Doggy distclean.
Re-cloning (instead of fetch and pull) every time seems to be safer.


Cheers,

-- 
Cristian


More information about the subsurface mailing list