Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Bakeqtpi.bash script build error in QtBase

    QtonPi
    1
    3
    3072
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cnxsoft last edited by

      I've tried bakeqtpi.bash script to generate an image with Qt5 following the instructions at http://qt-project.org/wiki/RaspberryPi_Beginners_guide both in build machines Ubuntu 12.04 32-bit and Debian Wheezy 64-bit and I get the same build failure:

      .obj/release-shared/main.o: In function dumpRecursive(QDir const&, QTextStream&)': main.cpp:(.text+0x3ea): undefined reference to QDir::entryInfoList(QFlagsQDir::Filter, QFlagsQDir::SortFlag) const'
      main.cpp:(.text+0x3ea): undefined reference to QDir::entryInfoList(QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const' main.cpp:(.text+0x45f): undefined reference to QDir::QDir(QString const&)'
      main.cpp:(.text+0x476): undefined reference to QDir::~QDir()' .obj/release-shared/main.o: In function createProject(QString const&)':
      main.cpp:(.text+0x572): undefined reference to QDir::currentPath()' main.cpp:(.text+0x57f): undefined reference to QDir::QDir(QString const&)'
      main.cpp:(.text+0x5aa): undefined reference to QDir::dirName() const' main.cpp:(.text+0x5c6): undefined reference to QFile::QFile()'
      main.cpp:(.text+0x5ef): undefined reference to QFile::open(_IO_FILE*, QFlags<QIODevice::OpenModeFlag>, QFlags<QFileDevice::FileHandleFlag>)' main.cpp:(.text+0x699): undefined reference to QFile::~QFile()'
      main.cpp:(.text+0x6bf): undefined reference to QDir::~QDir()' main.cpp:(.text+0x74d): undefined reference to QDir::QDir(QString const&)'
      main.cpp:(.text+0x769): undefined reference to QDir::~QDir()' main.cpp:(.text+0x7d9): undefined reference to QFile::setFileName(QString const&)'

      It seems it can't find the Qt libraries. Should I install qt5 libs on the build machine before running the script? I've already installed Qt5 SDK Beta 2.

      1 Reply Last reply Reply Quote 0
      • C
        cnxsoft last edited by

        So I've given another try, and the error above only seems to occur when I run the script again.
        If I do rm ~/opt/qt5, and run it again, it seems to go further, but fails with the error:

        @arm-linux-gnueabihf-g++: internal compiler error: Killed (program cc1plus)@

        dmesg indicates this is due to a lack of memory, but my Linux build machine has 4GB RAM, and I've already added 4GB swap. Do I need more than 8GB memory to build Qt5?

        1 Reply Last reply Reply Quote 0
        • C
          cnxsoft last edited by

          Updated the swap file to 8GB, and it's seems OK for now, but the build is very very slow.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post