pkgsrc-Users archive

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

qt5-qtwebkit on arm



Hello,
I managed to compile natively this monstruosity, after removing -Wl-reduce-memory and adding

.if ${OPSYS} == "NetBSD" && ${MACHINE_CPU:U} == "arm"
LDFLAGS+=       -Wl,-no-keep-memory
SUBST_CLASSES+=               fix-cpu
SUBST_STAGE.fix-cpu=          pre-configure
SUBST_MESSAGE.fix-cpu=        Fixing cpu type.
SUBST_FILES.fix-cpu=          CMakeLists.txt
SUBST_SED.fix-cpu=            -e 's,\^arm,&|\^earm,'
.endif

to the Makefile.

The machine is an Orange Pi Pc, it has 1G of ram, and I added a little more than 1G of swap. It was very close, better add some more.

I'm using current with current pkgsrc.
---------------------
// test.cpp
#include <QApplication>
#include <QWebView>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QWebView view;
    view.show();
    view.load(QUrl("http://NetBSD.org";));

    return a.exec();
}
---------------------

$ gcc $(pkg-config --cflags --libs Qt5Widgets) $(pkg-config --cflags --libs Qt5WebKitWidgets) -o test test.cpp
$ paxctl +m ./test

The web page is rendered and you can browse some links, but it will fail in the end with a memory fault.

otter-browser will not even start.

Regards,
adr.


Home | Main Index | Thread Index | Old Index