I am trying to compile qtwebengine for raspberry pi using
[http://wiki.qt.io/RaspberryPi2EGLFS ](link url)
AND
compilation terminates with following errors :
...
...
.obj/qquickwebengineview.o:qquickwebengineview.cpp:function QQuickWebEngineView::webChannel(): error: undefined reference to 'QQmlWebChannel::QQmlWebChannel(QObject*)'
collect2: error: ld returned 1 exit status
make[2]: *** [../../lib/libQt5WebEngine.so.5.6.1] Error 1
make[2]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src/webengine'
make[1]: *** [sub-webengine-install_subtargets] Error 2
make[1]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src'
make: *** [sub-src-install_subtargets] Error 2
--
What am I missing? It says about qtwebchannel but I have successfully installed qtwebchannel.
Please help. I have been trying for more than 2 weeks
I was able to solve this problem by rebuilding the QtWebChannel:
~/raspi/qtwebchannel$ make
and then going back to the QtWebEngine:
~/raspi/qtwebengine$ make
This builds the libQt5WebEngine.so
Related
I'm trying to install R from source on Windows with OpenBLAS.
I (mainly) followed the steps here;
https://www.avrahamadler.com/r-tips/build-openblas-for-windows-r64/
I have OpenBLAS compiled, and R seems to work. However, in the Makefile script once you get to the rpackages section it crashes with this;
C:\R64\src\gnuwin32>make rpackages
building package 'base'
cannot create /tmp/R17244: directory nonexistent
mv: cannot stat '/tmp/R17244': No such file or directory
make[3]: *** [mkR1] Error 1
make[2]: *** [all] Error 2
make[1]: *** [R] Error 1
make: *** [rpackages] Error 2
So it feels like R is trying to setup a temporary directory at /tmp, but that directory won't exist on a Windows system. Any ideas?
I am trying to compile clang 3.9 on a 32 bit scientific linux.
The compilation process fails at 93% with the following error:
[ 93%] Linking CXX executable ../../bin/clang
/lib/ld-linux.so.2: could not read symbols: Memory exhausted
collect2: error: ld returned 1 exit status
gmake[2]: *** [bin/clang-3.9] Error 1
gmake[1]: *** [tools/driver/CMakeFiles/clang.dir/all]
Error 2 gmake: *** [all] Error 2
My machine has 8GB of RAM, and looking with top the memory usage evolution during linkage, I see that it fails after 3GB, which is the process virtual memory limit on 32bit linux.
I saw that for a quite similar problem, someone advised to compile the Release version, so I tried, but it fails with the same type of error (even if apparently going a little further):
[ 93%] Linking CXX executable ../../bin/clang
collect2: error: ld terminated with signal 11 [Segmentation fault]
/opt/rh/devtoolset-2/root/usr/libexec/gcc/i686-redhat-linux/4.8.2/ld: can not read symbols: Memory exhausted
gmake[2]: *** [bin/clang-3.9] Error 1
gmake[2]: *** Deleting file `bin/clang-3.9'
gmake[1]: *** [tools/driver/CMakeFiles/clang.dir/all] Error 2
gmake: *** [all] Error 2
Any ideas?
In GCC the following flags help ld in limited RAM environment:
-Wl,--no-keep-memory -Wl,--reduce-memory-overheads
Past few weeks I have been trying to setup Qt native build environment on Raspberry Pi.
I followed steps mentioned in Native Build of Qt 5.4.1.
Since I do not use USB Hard Disk, I omitted following steps:
Unpacking source to an external USB HDD
Increasing available RAM for concurrent compilation
Instead I extracted to moved to path: cd ~/opt/qt-everywhere-opensource-src-5.4.1
and for compilation I ran: make 2>&1 | tee make.out
I tried Qt 5.4.1 to build on Jessie version of Raspbian OS, but it failed. I found similar error someone posted and tried to reply but no response at the end.
And now I tried Qt 5.4.1 on Wheezy version, and I get different error:
/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//libJavaScriptCore.a: member /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//.obj/dfg/DFGThunks.o in archive is not an object
collect2: ld returned 1 exit status
Makefile.jsc:98: recipe for target '../../bin/jsc' failed
make[3]: *** [../../bin/jsc] Error 1
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile.JavaScriptCore:126: recipe for target 'sub-jsc-pro-make_first-ordered' failed
make[2]: *** [sub-jsc-pro-make_first-ordered] Error 2
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile:93: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed
make[1]: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit'
Makefile:485: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2
Can someone tell me why this occurs? Is this Qt code issue? Is there a way to resolve this?
I am trying to build R-3.2.2 from Source, and the following error keeps popping out:
gzio.h:38:18: fatal error:zlib.h: No such file or directory.
compilation terminanted
make[4]: *** [connections.d] Error 1
make[3]: *** [rlibs] error 2
make[2]: *** [../../bin/i386/R.dll] Error 2
make[1]: *** [rbuild] Error 2
make: *** [all] error 2
My machine is now with Windows 10.
The thing is that I have done this before, on Windows 8, but R version I did it was 3.1.2 - but it worked perfectly!
has any of you have a similar problem before?
Do you know why this is happening?
I'm trying to install CTK but all times I try I get this error:
[ 41%] Built target CTKWidgetsPlugins
Scanning dependencies of target CTKWidgetsCppTests
[ 41%] Building CXX object Libs/Widgets/Testing/Cpp/CMakeFiles/CTKWidgetsCppTests.dir/ctkSearchBoxTest1.cpp.o
/home/pedrojunior/Desktop/CTK/Libs/Widgets/Testing/Cpp/ctkSearchBoxTest1.cpp: In function ‘int ctkSearchBoxTest1(int, char**)’:
/home/pedrojunior/Desktop/CTK/Libs/Widgets/Testing/Cpp/ctkSearchBoxTest1.cpp:43:24: error: ‘QPalette::ColorRole’ is not a class or namespace
p.setColor(QPalette::ColorRole::Window, Qt::gray);
^
/home/pedrojunior/Desktop/CTK/Libs/Widgets/Testing/Cpp/ctkSearchBoxTest1.cpp:44:24: error: ‘QPalette::ColorRole’ is not a class or namespace
p.setColor(QPalette::ColorRole::Base, Qt::gray);
^
make[5]: *** [Libs/Widgets/Testing/Cpp/CMakeFiles/CTKWidgetsCppTests.dir/ctkSearchBoxTest1.cpp.o] Error 1
make[4]: *** [Libs/Widgets/Testing/Cpp/CMakeFiles/CTKWidgetsCppTests.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [CTK-prefix/src/CTK-stamp/CTK-build] Error 2
make[1]: *** [CMakeFiles/CTK.dir/all] Error 2
make: *** [all] Error 2
I'm using Linux Mint 17.1 and I have installed cmake version 2.8.12.2 and Qt version 4.8.
Someone know how can I fix this error?
QPalette::ColorRole is not a C++11 enum class, it's just a normal enum. So the ColorRole part should not be declared.