i tried it both ways, using the prebuilt env and from scratch. in both cases it stops at 87% with an error. i have no clue how to fix that or what i must be doing wrong. anybody willing to venture a guess? the error concerns QJSEngine:
---------------------------------
[ 87%] Building CXX object libqethereum/CMakeFiles/qethereum.dir/QmlEthereum.cpp.o
In file included from /home/test/repos3/ethereum/cpp-ethereum/libqethereum/QmlEthereum.cpp:12:0:
/home/test/repos3/ethereum/cpp-ethereum/libqethereum/QmlEthereum.h:124:51: error: \u2018QJSEngine\u2019 has not been declared
static QObject* constructU256Helper(QQmlEngine*, QJSEngine*) { return new QmlU256Helper; }
^
/home/test/repos3/ethereum/cpp-ethereum/libqethereum/QmlEthereum.h:125:50: error: \u2018QJSEngine\u2019 has not been declared
static QObject* constructKeyHelper(QQmlEngine*, QJSEngine*) { return new QmlKeyHelper; }
^
make[2]: *** [libqethereum/CMakeFiles/qethereum.dir/QmlEthereum.cpp.o] Error 1
make[1]: *** [libqethereum/CMakeFiles/qethereum.dir/all] Error 2
make: *** [all] Error 2
---------------------------------
0 ·
Comments
is there a fool proof recipe for crossbuilding the windows binaries on ubuntu. how do i solve the following?
------------------------------------------
[ 92%] Built target alethzero_automoc
Linking CXX executable alethzero.exe
/usr/bin/x86_64-w64-mingw32-ld: attempted static link of dynamic object `/usr/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5.1.1'
collect2: error: ld returned 1 exit status
make[2]: *** [alethzero/alethzero.exe] Error 1
make[1]: *** [alethzero/CMakeFiles/alethzero.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------
After first build: To solve this, add the following line to libqethereum/QmlEthereum.h and libqethereum/QmlEthereum.cpp: The line should be outside the
#if ETH_QTQML
block.After building with this change: I have been able to achieve my goal of building a fresh AlethZero using the instructions for building on Windows using Visual Studio though.