bugBino - Bugs: bug #47062, Compiling of current bino git...

 
 

bug #47062: Compiling of current bino git fails due to outdated Qt

Submitted by:  EoD <eod>
Submitted on:  Thu 04 Feb 2016 09:08:32 PM UTC  
 
Severity: 3 - NormalStatus: Wont Fix
Privacy: PublicAssigned to: Martin Lambers <marlam>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 03 Jun 2017 12:41:59 PM UTC, comment #4:

Workaround exist and problem seems to be irrelevant now.

Martin Lambers <marlam>
Project AdministratorIn charge of this item.
Mon 08 Feb 2016 07:35:57 AM UTC, comment #3:

OK, the problem seems to be the rcc/moc binaries of Qt. There are versions for Qt4 and Qt5, both are incompatible, but both are usually called rcc and moc.

Debian invented a crappy way to choose between the two with the qt4-default and at5-default packages.

I don't know how Gentoo does it.

But in any case you can work around it by specifying the right rcc and moc binaries:
$ ./configure ... RCC=/path/to/qt5-rcc MOC=/path/to/qt5-moc

Martin Lambers <marlam>
Project AdministratorIn charge of this item.
Fri 05 Feb 2016 09:24:18 AM UTC, comment #2:
  1. make clean did not help. Also, this was a fresh clone from git, I should not need to run make clean in such a case.
  2. I have not specified anything after my ./configure, so it should have used Qt5. When I specify version=5 manually, no difference. When I specify version=4 manually, it compiles.
  3. I am on gentoo, but I have the qt packages installed.
EoD <eod>
Fri 05 Feb 2016 07:13:22 AM UTC, comment #1:

- Try 'make clean' first to remove old autogenerated files.
- Be sure to use --with-qt-version=4 or --with-qt-version=5 to use the correct Qt. Qt5 is now default.
- On Debian (and probably Ubuntu etc), install qt4-default or qt5-default depending on which Qt you want to use.

Does this solve the problem?

Martin Lambers <marlam>
Project AdministratorIn charge of this item.
Thu 04 Feb 2016 09:08:32 PM UTC, original submission:

Compiling of current bino git fails due to outdated moc?

I did a normal autoreconf -i, followed by a ./configure (without options) and a make:

After a few successful compiles, all the moc files fail with the following output

CXX colordialog-moc.o
colordialog-moc.cpp:13:2: error: #error "This file was generated using the moc from 4.8.6. It"
#error "This file was generated using the moc from 4.8.6. It"
^
colordialog-moc.cpp:14:2: error: #error "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
colordialog-moc.cpp:15:2: error: #error "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
colordialog-moc.cpp:72:7: error: ‘QMetaObjectExtraData’ does not name a type
const QMetaObjectExtraData color_dialog::staticMetaObjectExtraData = {
^
colordialog-moc.cpp:78:35: error: ‘staticMetaObjectExtraData’ was not declared in this scope
qt_meta_data_color_dialog, &staticMetaObjectExtraData }
^
colordialog-moc.cpp: In member function ‘virtual const QMetaObject* color_dialog::metaObject() const’:
colordialog-moc.cpp:87:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData’ and ‘const QMetaObject’ lacks a cast
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
^
Makefile:771: recipe for target 'colordialog-moc.o' failed
make[4]: *** [colordialog-moc.o] Error 1
make[4]: Leaving directory '/var/tmp/portage/media-video/bino-9999/work/bino/src'
Makefile:917: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-video/bino-9999/work/bino/src'
Makefile:628: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-video/bino-9999/work/bino/src'
Makefile:453: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/bino-9999/work/bino'
Makefile:392: recipe for target 'all' failed
make: *** [all] Error 2

EoD <eod>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by marlam (Posted a comment)
  • -unavailable- added by eod (Submitted the item)
  • -unavailable- added by eod
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 03 Jun 2017 12:41:59 PM UTCmarlamStatusNeed Info=>Wont Fix
      Open/ClosedOpen=>Closed
    Fri 05 Feb 2016 07:13:22 AM UTCmarlamStatusNone=>Need Info
      Assigned toNone=>marlam
    Thu 04 Feb 2016 09:08:32 PM UTCeodCarbon-Copy-=>Added eod

    Back to the top


    Powered by Savane 3.1-cleanup1