Qt 5.4 Compile problem for Raspberry Pi



  • I try compile qt 5.4 from sources. But I get this error:
    Precompiled-headers support enabled.
    /usr/bin/g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    /usr/bin/g++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
    bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
    Symbolic function binding disabled.
    -reduce-relocations was requested but this compiler does not support it

    Re-run configure with -v for more information
    When I run that again with parameter -v i get this:

    msbuild_objectmodel.o: tiedostoa ei ole tunnistettu: Tiedosto typistetty
    collect2: ld returned 1 exit status
    Makefile:141: recipe for target '/home/pi/opt/qt5/qtbase/bin/qmake' failed
    make: *** [/home/pi/opt/qt5/qtbase/bin/qmake] Error 1

    What I must to do to fix this issue?

    Regards, Niko


  • Lifetime Qt Champion

    Hi,

    Just remove -reduce-relocations from your configure options, the compiler you are using doesn't support that feature.



  • Hi, My configure string is -developer-build -opensource. So how I remove it?


  • Lifetime Qt Champion

    Is it the original set of options you used ?



  • Hi, string is/was: ./configure -developer-build -opensource -no-reduce-relocations
    Now I get error:
    g++: internal compiler error: Muistialueen ylitys (to english out of memory) (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    Makefile:5235: recipe for target '.obj/qpaintengine_alpha.o' failed
    make[3]: *** [.obj/qpaintengine_alpha.o] Error 4
    make[3]: Leaving directory '/home/pi/opt/qt5/qtbase/src/printsupport'
    Makefile:551: recipe for target 'sub-printsupport-make_first' failed
    make[2]: *** [sub-printsupport-make_first] Error 2
    make[2]: Leaving directory '/home/pi/opt/qt5/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtbase'
    Makefile:56: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2

    How I can fix this issue?


  • Lifetime Qt Champion

    Out of memory ? What are your host specs ?



  • I try use Raspberry pi :(.
    So if it is in possible, so ho I can do that in 64 bit ubuntu or windows?


  • Lifetime Qt Champion

    Did you call make with any special arguments ?
    Seems you are doing a debug build which might be to heavy for the RPi to compile. Try adding the release option to your configure line

    You can "cross-compile":http://qt-project.org/wiki/RaspberryPi_Beginners_guide Qt (I'd recommend linux for that)



  • In -raspberry pi compile it is too slow. I try this http://qt-project.org/forums/viewthread/53149 and this instructions http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi but I get this error:
    E: Package 'libudev-dev' has no installation candidate
    E: Pakettia libxslt1-dev ei löydy
    E: Pakettia libgstreamer0.10-dev ei löydy
    E: Couldn't find any package by regex 'libgstreamer0.10-dev'
    E: Pakettia libgstreamer-plugins-base0.10-dev ei löydy
    E: Couldn't find any package by regex 'libgstreamer-plugins-base0.10-dev'
    E: Pakettia gstreamer-tools ei löydy
    E: Pakettia libraspberrypi-dev ei löydy
    E: Pakettia libpulse-dev ei löydy
    E: Pakettia freetds-dev ei löydy
    E: Package 'libsqlite0-dev' has no installation candidate
    E: Pakettia libiodbc2-dev ei löydy
    E: Package 'libjpeg62-dev' has no installation candidate
    E: Pakettia libgst-dev ei löydy
    E: Pakettia libxcb-keysyms1-dev ei löydy
    E: Pakettia libxcb-image0-dev ei löydy
    E: Pakettia libxcb-icccm4-dev ei löydy
    E: Pakettia libxcb-render-util0-dev ei löydy
    E: Package 'libdrm-dev' has no installation candidate

    What is new packages?



  • In raspberry pi I get this interesing error when I run config.
    eam.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o -Wl,--gc-sections
    unixmake2.o: tiedostoa ei ole tunnistettu: Tiedosto typistetty (the file is not recognized: File truncated)
    collect2: ld returned 1 exit status
    Makefile:139: recipe for target '/home/pi/opt/qt5/qtbase/bin/qmake' failed
    make: *** [/home/pi/opt/qt5/qtbase/bin/qmake] Error 1


  • Lifetime Qt Champion

    Did you started from a clean state ?



  • Yes I make new clone from repository. But now I get this error:

    g++ -c -include .pch/Qt5PrintSupport -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_XKB -DQT_NO_USING_NAMESPACE -DQT_BUILD_PRINTSUPPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtPrintSupport -I../../include/QtPrintSupport/5.4.2 -I../../include/QtPrintSupport/5.4.2/QtPrintSupport -Iwidgets -I../plugins/printsupport/cups -Idialogs -I../../include/QtCore/5.4.2 -I../../include/QtCore/5.4.2/QtCore -I../../include/QtGui/5.4.2 -I../../include/QtGui/5.4.2/QtGui -I../../include/QtWidgets/5.4.2 -I../../include/QtWidgets/5.4.2/QtWidgets -I../../include/QtWidgets -I../../include/QtGui -I../../include/QtCore -I.moc -I.uic -I../../mkspecs/linux-g++ -o .obj/qpaintengine_alpha.o kernel/qpaintengine_alpha.cpp

    g++: internal compiler error: Segmentation fault (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    Makefile:5277: recipe for target '.obj/qpaintengine_alpha.o' failed
    make[3]: *** [.obj/qpaintengine_alpha.o] Error 4
    make[3]: Leaving directory '/home/pi/opt/qt5/qtbase/src/printsupport'
    Makefile:551: recipe for target 'sub-printsupport-make_first' failed
    make[2]: *** [sub-printsupport-make_first] Error 2
    make[2]: Leaving directory '/home/pi/opt/qt5/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtbase'
    Makefile:58: recipe for target 'module-qtbase-make_first' failed
    make: *** [module-qtbase-make_first] Error 2



  • Or I clone wrong version?


  • Lifetime Qt Champion

    AFAIK no, does it always fail at that point ?



  • Not, now it's clean copy of qt from git. config goes ok, but crash this error. What I need to do?

    Regards, Niko H.


  • Lifetime Qt Champion

    Just to be sure, we are still talking about a native build on the Raspberry Pi ?



  • Yes native build.


  • Lifetime Qt Champion

    Then you should check the "bug report system":http://bugreports.qt.io to see if it's something known


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.