-
Notifications
You must be signed in to change notification settings - Fork 13
Won't compile on Raspbian Buster #111
Comments
Do you use any other flags when compiling with CMake? Could you give me a version of the dependencies on this system - version of CMake, Qt and so on? |
I did not use any other flags. g++ (Raspbian 8.3.0-6+rpi1) 8.3.0 This is a fresh install of Raspbian. |
If it is a freshly installed system, that means that you don't have a native g++. Other users had similar problems, but after installing native version, everything worked. Maybe you should try? |
I updated to gcc-10.1.0 and issued the cmake with following flags: cmake -D CMAKE_C_COMPILER=gcc-10.1 -D CMAKE_CXX_COMPILER=g++-10.1 .. No luck so far. Now it complains that it can't find X11, which is installed. -- The C compiler identification is GNU 10.1.0 -- Configuring incomplete, errors occurred! |
Could you check, where libx11 is installed on Rapsberry? What are the paths? For example libX11.so, Xlib.h |
./usr/lib/arm-linux-gnueabihf/libX11.so Hope this helps. |
The first one is interesting. I'll deal with this on Monday |
How is it now? |
It finds X11 now and throws the next error. This seems to become a never ending story :( $ cmake -D CMAKE_C_COMPILER=gcc-10.1 -D CMAKE_CXX_COMPILER=g++-10.1 .. -- The C compiler identification is GNU 10.1.0 Could not find a package configuration file provided by "Qt5Widgets" with
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set -- Configuring incomplete, errors occurred! There is no package named "Qt5Widgets" in the raspbian repos that I could install. |
Do you have a package like "qtbase5-dev" maybe? |
Unfortunately not. These are all the available qt5 packages qt5-assistant Trying to install native QT5 on this Raspbian now but compilation will take overnight. Reporting back when it's done tomorrow after work. |
Trying to install native QT5 on Raspbian just introduces more problems than it solves and turned out to be a silly idea. |
I've found some links and I don't have any other ideas. The problem goes far beyond the problems of the programme itself https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ |
Hi @DaFunkShun
How'd you manage that? I'm trying to get antimicroX working on a Raspberry Pi 3B+ running Raspbian Buster... make failed the same way as you. |
If there is no suitable package/library in the Raspbian repository, maybe it would be worthwhile to report the need for one? I don't think that the developer of the program has to deal with the lack of such a package/library. Of course, you can always compile the package yourself if the "developers" of the operating system fail to do their job. |
I can compile perfectly on my Ubuntu machine but make fails on Raspbian Buster on the Raspberry Pi4.
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerdpad.cpp.o:(.data.rel.ro+0x0): multiple definition of
typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x5c): first defined here/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerdpad.cpp.o:(.data.rel.ro+0xc): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x68): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerdpad.cpp.o:(.rodata+0x78): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0xe8): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerdpad.cpp.o:(.rodata+0x90): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0x100): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerset.cpp.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x5c): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerset.cpp.o:(.data.rel.ro+0xc): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x68): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerset.cpp.o:(.rodata+0x130): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0xe8): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/gamecontrollerset.cpp.o:(.rodata+0x148): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0x100): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/xml/gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x5c): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/xml/gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0xc): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x68): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/xml/gamecontrollerdpadxml.cpp.o:(.rodata+0x6c): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0xe8): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/gamecontroller/xml/gamecontrollerdpadxml.cpp.o:(.rodata+0x84): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0x100): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/xml/setjoystickxml.cpp.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x5c): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/xml/setjoystickxml.cpp.o:(.data.rel.ro+0xc): multiple definition of `typeinfo for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.data.rel.ro+0x68): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/xml/setjoystickxml.cpp.o:(.rodata+0xa0): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0xe8): first defined here
/usr/bin/ld: CMakeFiles/antilib.dir/src/xml/setjoystickxml.cpp.o:(.rodata+0xb8): multiple definition of `typeinfo name for JoyDPadXml'; CMakeFiles/antilib.dir/src/gamecontroller/xml/moc_gamecontrollerdpadxml.cpp.o:(.rodata+0x100): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/antilib.dir/build.make:4326: libantilib.so] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/antilib.dir/all] Fehler 2
`
What am I doing wrong?
The text was updated successfully, but these errors were encountered: