[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#347360: qt4-x11: FTBFS in ARM (no matching function for call to 'getXDefault(const char [4], const char [6], qreal*))



Isaac Clerencia <isaac@debian.org> writes:

> qt4 is FTBFS'ing in ARM with the following problem:
> kernel/qapplication_x11.cpp: In function 'void
> 	qt_init(QApplicationPrivate*, int, Display*, Qt::HANDLE, Qt::HANDLE)':
> kernel/qapplication_x11.cpp:1547: error: no matching function for call
> 	to 'getXDefault(const char [4], const char [6], qreal*)'
> kernel/qapplication_x11.cpp:1174: note: candidates are: void
> 	getXDefault(const char*, const char*, int*)
> kernel/qapplication_x11.cpp:1185: note:                 void
> 	getXDefault(const char*, const char*, double*)
> kernel/qapplication_x11.cpp:1196: note:                 void
> 	getXDefault(const char*, const char*, bool*)
> kernel/qapplication_x11.cpp: At global scope:
> kernel/qapplication_x11.cpp:1185: warning: 'void getXDefault(const
> 	char*, const char*, double*)' defined but not used
>
> the problem is that in ARM qreal is defined as float and not as double,

Do you know if there's a good reason for this?

> I guess the easiest fix would be to add another implementation of
> getXDefault with prototype: void getXDefault(const char*, const char*,
> float*) similar to the double one in kernel/qapplication_x11.cpp.

I already applied a different fix in svn--I changed the qreal
declaration to double instead of float, which is how it was declared
before 4.1.0.  If you think this will be problematic for some reason,
let me know.

-- 
Captain Logic is not steering this tugboat.



Reply to: