I am building Qt on RaspberryPi using host desktop following this guide https://wiki.qt.io/Raspberry_Pi_Beginners_Guide.
And when it comes to building Qt with make command i got a strange error:
In file included from ../../include/QtXml/qxml.h:1:0,
from dom/qdom.cpp:54:
../../include/QtXml/../../src/xml/sax/qxml.h:121:5: error: function ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’
Makefile:1338: recipe for target '.obj/qdom.o' failed
make[2]: *** [.obj/qdom.o] Error 1
make[2]: Leaving directory '/home/anon/opt/qt5/qtbase/src/xml'
Makefile:295: recipe for target 'sub-xml-make_first' failed
make[1]: *** [sub-xml-make_first] Error 2
make[1]: Leaving directory '/home/anon/opt/qt5/qtbase/src'
Makefile:46: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
Some specification:
Host - Debian Jessie
RPI - Raspbian
What should I do now? Restarting installation from beginning gives nothing.
The first error apparently is resulted from a conflict in the declaration of "QXmlAttributes::QXmlAttributes(QXmlAttributes&&)"
I had the same error : function ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’
I managed to solve this by following rocommendations from the following link : Cross compiling for Raspberry Error
The solution is to change :
1.Open the /qt5/qtbase/src/xml/sax/qxml.h file
2.Change : "QXmlAttributes(QXmlAttributes &&) Q_DECL_NOTHROW = default"
to "QXmlAttributes(QXmlAttributes &&) = default"
Hope this helps !
Related
Trying to build GCC for Raspberry Pi from source according to project in my Ubuntu 20.04 machine with gcc 9.3.0 . Getting different problems while taking different sets of libraries
Configuration below brings __uint128_t error:
GCC_VERSION="9.3.0"
BINUTILS_VERSION="2.34"
GLIBC_VERSION="2.31"
MPFR_VERSION="3.1.6"
MPC_VERSION="1.0.3"
GMP_VERSION="6.2.0"
CLOOG_VERSION="0.18.1"
In file included from ../sysdeps/unix/sysv/linux/bits/sigcontext.h:30,
from ../signal/signal.h:291,
from ../include/signal.h:2,
from ../misc/sys/param.h:28,
from ../include/sys/param.h:1,
from ../sysdeps/generic/hp-timing-common.h:39,
from ../sysdeps/generic/hp-timing.h:25,
from ../nptl/descr.h:27,
from ../sysdeps/arm/nptl/tls.h:42,
from ../sysdeps/unix/sysv/linux/arm/tls.h:23,
from ../sysdeps/unix/sysv/linux/arm/sysdep.h:30,
from <stdin>:1:
/home/a/gcc_buildings/1/xc-arm-linux-gnueabi/arm-linux-gnueabi/include/asm/sigcontext.h:77:2: error: unknown type name ‘__uint128_t’
77 | __uint128_t vregs[32];
| ^~~~~~~~~~~
Configurations below brings the same mpfr_fmma error:
GCC_VERSION="9.3.0"
BINUTILS_VERSION="2.34"
GLIBC_VERSION="2.31"
MPFR_VERSION="4.1.0"
MPC_VERSION="1.0.3"
GMP_VERSION="6.2.0"
CLOOG_VERSION="0.18.1"
GCC_VERSION=9.3.0"
MPFR_VERSION="4.1.0"
MPC_VERSION="1.2.1"
GMP_VERSION="6.2.1"
ISL_VERSION="0.18"
CLOOG_VERSION="0.18.1"
/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/gcc-4.9.2/mpfr/src/mpfr.h:765:21: note: previous declaration of ‘mpfr_fmma’ was here
765 | __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
| ^~~~~~~~~
make[3]: *** [Makefile:532: mul.lo] Error 1
make[3]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc/src'
make[2]: *** [Makefile:462: all-recursive] Error 1
make[2]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc'
make[1]: *** [Makefile:373: all] Error 2
make[1]: Leaving directory '/home/a/gcc-cross-compiler/xc-arm-unknown-linux-gnueabihf/arm-unknown-linux-gnueabihf/tmp/build-gcc/mpc'
make: *** [Makefile:5289: all-mpc] Error
In other libraries combinations I'm getting other errors.
Is it possible to get list of libraries set that produce fine build?
I am trying to install OpenOnload on an AWS server running Ubuntu server 18.04.3. I downloaded the DEB release package from version 7.1.0.265 (the latest) from here: https://support.solarflare.com/index.php/component/cognidox/?view=categories&id=361
and then extract out of it just the folder \onload_7.1.0.265-debiansource.tgz\onload_7.1.0.265.orig.tar.gz and untar that. Then I can run
$ ./scripts/onload_install
as per the instructions in the README file. On Ubuntu 20 on my local machine this all worked and installed OpenOnload fine but on an AWS server instance this error is thrown:
onload_install: Building Onload.
Build tree made for linux as x86_64_linux-4.15.0-1057-aws
make: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
# Build both autocompat.h files: linux_net and linux_affinity.
make -C driver/linux_net
make[1]: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
make -C /usr/src/linux-headers-4.15.0-1057-aws CC="cc" M=$(pwd)
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:61: SFE4001/Falcon is no longer supported
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
CC [M] /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_init_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5225:2: error: implicit declaration of function ‘efx_mtd_free’; did you mean ‘efx_mtd_probe’? [-Werror=implicit-function-declaration]
efx_mtd_free(efx);
^~~~~~~~~~~~
efx_mtd_probe
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5224:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_fini_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5247:9: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
if (efx->mtd_struct) {
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5248:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct->efx = NULL;
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5249:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct = NULL;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o' failed
make[3]: *** [/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o] Error 1
Makefile:1580: recipe for target '_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net' failed
make[2]: *** [_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:300: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
../../src/mmake.mk:57: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
onload_build: ERROR: Failed to build driver components.
onload_install: ERROR: Build failed. Not installing.
Could this be due to incompatibility with some specific features on AWS? I checked the version compatibility for the downloaded source and it says compatible with Ubuntu server 18.04. Any ideas on how to fix it would be greatly appreciated!
Based on the comments.
The solution was to use Onload-7.0.0.176 instead of Onload-7.1.0.265.
Seems version Onload-7.1.0.265 has some compilation bugs on Ubuntu 18.04.
OS: Ubuntu 16.04
Ogre: v1.9
I am trying to compile code from this repository. Although it is meant for Ogre v1.9, it is giving me this error:
In file included from /home/cortana/Desktop/clean-project/src/BaseApplication.cpp:17:0:
/home/cortana/Desktop/clean-project/src/BaseApplication.h:34:22: fatal error: SdkTrays.h: No such file or directory
compilation terminated.
CMakeFiles/OgreApp.dir/build.make:62: recipe for target 'CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o' failed
make[2]: *** [CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OgreApp.dir/all' failed
make[1]: *** [CMakeFiles/OgreApp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
How can I fix this error?
As already mentioned in the comments, you need to make sure that your compiler is able to find the file "SdkTrays.h".
You claimed that this file is not part of Ogre version 1.9, which however is not correct. It could be that it is not part of the unofficial repository you are using. In our official one, it can be found here:
SdkTrays.h in official Ogre 1.9
i'm trying to compile ncmpcpp on cygwin. i got it to configure after wrestling with dependencies, but when i try to make this error pops up:
In file included from utility/comparators.h:26:0,
from utility/comparators.cpp:22:
./mpdpp.h: In constructor ‘MPD::Directory::Directory(const mpd_directory*)’:
./mpdpp.h:134:62: error: ‘mpd_directory_get_last_modified’ was not declared in this scope
m_last_modified = mpd_directory_get_last_modified(directory);
^
In file included from ./menu.h:26:0,
from ./format.h:26,
from ./settings.h:32,
from utility/comparators.h:27,
from utility/comparators.cpp:22:
/usr/include/boost/range/detail/any_iterator.hpp: At global scope:
/usr/include/boost/range/detail/any_iterator.hpp:131:15: error: ‘postfix_increment_proxy’ is not a class template
class postfix_increment_proxy<
^
/usr/include/boost/range/detail/any_iterator.hpp:176:15: error: ‘writable_postfix_increment_proxy’ is not a class template
class writable_postfix_increment_proxy<
^
Makefile:603: recipe for target 'comparators.o' failed
make[2]: *** [comparators.o] Error 1
make[2]: Leaving directory '/home/aritsune/ncmpcpp/src'
Makefile:455: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/aritsune/ncmpcpp'
Makefile:365: recipe for target 'all' failed
make: *** [all] Error 2
i'm new to compiling from source and this error seems pretty unique. what could be causing it?
It looks like you don't have all the prerequisites required. Always address the errors in the order they occur. The first error occurs in mpdpp.h, on line 134, mpd_directory_get_last_modified. If I Google mpd_directory_get_last_modified the first result is a link to documentation for libmpdclient. Make sure you have this library and your compiler can find it.
As for the Boost error, if you are using version 1.57, it sounds like this bug:
https://svn.boost.org/trac/boost/ticket/10754
which is discussed in this thread:
Can't compile boost/any_iterator.hpp in boost 1.57
I'm building Cairo 1.12.14 with MSYS on Windows.
Successfully configured with --enable-gl=yes, however, when I run make, I get the following error:
make all-recursive
make[1]: Entering directory `/c/Users/Nathan/BuildCairo/cairo'
Making all in src
make[2]: Entering directory `/c/Users/Nathan/BuildCairo/cairo/src'
make all-am
make[3]: Entering directory `/c/Users/Nathan/BuildCairo/cairo/src'
CC cairo-png.lo
CC cairo-gl-composite.lo
In file included from cairo-gl-composite.c:48:0:
cairo-gl-private.h:250:40: error: unknown type name 'GLsizeiptr'
cairo-gl-private.h:258:8: error: unknown type name 'GLchar'
cairo-gl-private.h:262:22: error: unknown type name 'GLchar'
cairo-gl-private.h:273:23: error: unknown type name 'GLchar'
cairo-gl-private.h:276:5: error: unknown type name 'GLchar'
cairo-gl-private.h:290:5: error: unknown type name 'GLchar'
cairo-gl-composite.c: In function '_cairo_gl_texture_set_extend':
cairo-gl-composite.c:193:18: error: 'GL_MIRRORED_REPEAT' undeclared (first use i
n this function)
cairo-gl-composite.c:193:18: note: each undeclared identifier is reported only o
nce for each function it appears in
cairo-gl-composite.c: In function '_cairo_gl_set_operator':
cairo-gl-composite.c:387:9: error: implicit declaration of function 'glBlendFunc
Separate' [-Werror=implicit-function-declaration]
cairo-gl-composite.c:387:9: warning: nested extern declaration of 'glBlendFuncSe
parate' [-Wnested-externs]
cairo-gl-composite.c: In function '_cairo_gl_composite_begin':
cairo-gl-composite.c:751:41: warning: ignoring return value of '_cairo_gl_set_op
erands_and_operator', declared with attribute warn_unused_result [-Wunused-resul
t]
cc1.exe: some warnings being treated as errors
make[3]: *** [cairo-gl-composite.lo] Error 1
make[3]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo'
make: *** [all] Error 2
Any ideas? Configure had this to say:
--- The OpenGL surface backend feature is still under active development and
--- is included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to OpenGL surface backend
--- specific API.
Is this problem fixable for this version?