I found some program today. It had a file, buttons.h which was autogenerated by:
uic -o buttons.h -embed buttons pics/attach.png pics/detach.png
Unfortunately, those pictures wasn’t included in the tarball – and as it is seen earlier, uic doesn’t generate endian-agnostic code.
So what do smart man do now? Write upstream and wait? Could be done. Or figure out how to de-uic the header file.
Qt and #kde4-devel to the rescue.
#include "buttons.h"
#include "qimage.h"
int main()
{
uic_findImage("attach.png").save("attach.png","PNG");
uic_findImage("detach.png").save("detach.png","PNG");
}
compiled with g++ -I /usr/include/qt3/ test.cpp -lqt-mt
and now there is images that can be uic’ed.