News for hackers. Stuff that matters.
Re:Qt for WebAssembly Technology Preview by jcelerier on Wednesday April 25, 2018 @03:54AM (#16919394)
hello.cpp:

    #include <QLabel>
    #include <QApplication>

    int main(int argc, char** argv)
    {
      QApplication app{argc, argv};
      QLabel label{"hello world!"};
      label.show();
      return app.exec();
    }
build:

    $ g++ -O2 -g0 -fPIC hello.cpp -I/usr/include/qt -I/usr/include/qt/QtWidgets -lQt5Widgets -lQt5Core
    $ du -csh a.out
    16K	a.out
seriously...
Re:Qt for WebAssembly Technology Preview by joezydeco on Wednesday April 25, 2018 @03:28PM (#16925159)
Try it again with Qt configured for -static and not -dynamic.
Re:Qt for WebAssembly Technology Preview by sirspudd on Monday April 30, 2018 @08:49PM (#16963820)
I compile a Qt Quick application statically for the Raspberry Pi on a regular basis, and the whole binary is around 7 megs big. If you remove Qt Declarative (Your hello world just requires QtCore) it will be a fraction of this size.

So nice to see people fabricating numbers and passing them off as data.