Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Failed building QT Creator from source
Qt 6.11 is out! See what's new in the release blog

Failed building QT Creator from source

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 453 Views
  • 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.
  • J Offline
    J Offline
    JANG SOONMYUN
    wrote on last edited by
    #1

    Hi,

    After I built and installed QT from source, I tried to build QT Creator from source as following tutorials:
    QT: https://wiki.qt.io/Building_Qt_5_from_Git
    QT Creator: https://wiki.qt.io/Building_Qt_Creator_from_Git

    Environment: Jatson Xavier NX, Jetpack4.5.1

    I will describe my steps:

    1. QT build
      $ git clone https://code.qt.io/qt/qt5.git
      $ cd qt5
      $ git checkout 5.14.0
      $ perl init-repository
      $ export LLVM_INSTALL_DIR=/usr/lib/llvm-6.0
      $ cd ..
      $ mkdir qt5-build
      $ cd qt5-build
      $ ../qt5/configure -developer-build -opensource -nomake examples -nomake tests
      $ make -j$(nproc)
      $ make install
      And add to ~/.bashrc: export PATH=/home/contrel/Downloads/qt5-build/qtbase/bin:$PATH

    2. QT Creator build
      $ cd ..
      $ git clone --recursive https://code.qt.io/qt-creator/qt-creator.git
      $ sudo apt-get install llvm-10
      $ export LLVM_INSTALL_DIR=/usr/lib/llvm-10
      $ mkdir qt-creator-build
      $ cd qt-creator-build
      $ qmake ../qt-creator/qtcreator.pro
      $ make qmake_all
      $ make -j4

    But it failed with the error message while building QT Creator [make -j4]:

    rm -f libKSyntaxHighlighting.so.4.82.0 libKSyntaxHighlighting.so libKSyntaxHighlighting.so.4 libKSyntaxHighlighting.so.4.82
    g++ -Wl,-z,origin '-Wl,-rpath,$ORIGIN:$ORIGIN/.:$ORIGIN/plugins' -Wl,-rpath,/home/contrel/Downloads/qt5-build/qtbase/lib -shared -Wl,-soname,libKSyntaxHighlighting.so.4 -o libKSyntaxHighlighting.so.4.82.0 .obj/debug-shared/ksyntaxhighlighting_logging.o .obj/debug-shared/abstracthighlighter.o .obj/debug-shared/context.o .obj/debug-shared/contextswitch.o .obj/debug-shared/definition.o .obj/debug-shared/definitiondownloader.o .obj/debug-shared/foldingregion.o .obj/debug-shared/format.o .obj/debug-shared/htmlhighlighter.o .obj/debug-shared/keywordlist.o .obj/debug-shared/repository.o .obj/debug-shared/rule.o .obj/debug-shared/state.o .obj/debug-shared/syntaxhighlighter.o .obj/debug-shared/theme.o .obj/debug-shared/themedata.o .obj/debug-shared/wildcardmatcher.o .obj/debug-shared/worddelimiters.o .obj/debug-shared/qrc_theme-data.o .obj/debug-shared/moc_definitiondownloader.o .obj/debug-shared/moc_syntaxhighlighter.o .obj/debug-shared/moc_theme.o  -L/home/contrel/Downloads/qtcreator_build/lib/qtcreator /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Widgets.so /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Gui.so /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Test.so /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Concurrent.so /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Network.so /home/contrel/Downloads/qt5-build/qtbase/lib/libQt5Core.so -lGL -lpthread    
    ln -s libKSyntaxHighlighting.so.4.82.0 libKSyntaxHighlighting.so
    ln -s libKSyntaxHighlighting.so.4.82.0 libKSyntaxHighlighting.so.4
    ln -s libKSyntaxHighlighting.so.4.82.0 libKSyntaxHighlighting.so.4.82
    rm -f ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4.82.0
    mv -f libKSyntaxHighlighting.so.4.82.0 ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4.82.0
    rm -f ../../../../lib/qtcreator/libKSyntaxHighlighting.so
    rm -f ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4
    rm -f ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4.82
    mv -f libKSyntaxHighlighting.so ../../../../lib/qtcreator/libKSyntaxHighlighting.so
    mv -f libKSyntaxHighlighting.so.4 ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4
    mv -f libKSyntaxHighlighting.so.4.82 ../../../../lib/qtcreator/libKSyntaxHighlighting.so.4.82
    make[3]: Leaving directory '/home/contrel/Downloads/qtcreator_build/src/libs/3rdparty/syntax-highlighting'
    cd 3rdparty/syntax-highlighting/data/ && ( test -e Makefile || /home/contrel/Downloads/qt5-build/qtbase/bin/qmake -o Makefile /home/contrel/Downloads/qt-creator/src/libs/3rdparty/syntax-highlighting/data/data.pro ) && make -f Makefile all
    make[3]: Entering directory '/home/contrel/Downloads/qtcreator_build/src/libs/3rdparty/syntax-highlighting/data'
    cp -f /home/contrel/Downloads/qt-creator/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses ../../../../../share/qtcreator/generic-highlighter/syntax/licenses
    cp: -r not specified; omitting directory '/home/contrel/Downloads/qt-creator/src/libs/3rdparty/syntax-highlighting/data/syntax/licenses'
    Makefile:640: recipe for target '../../../../../share/qtcreator/generic-highlighter/syntax/licenses' failed
    make[3]: *** [../../../../../share/qtcreator/generic-highlighter/syntax/licenses] Error 1
    make[3]: Leaving directory '/home/contrel/Downloads/qtcreator_build/src/libs/3rdparty/syntax-highlighting/data'
    Makefile:549: recipe for target 'sub-3rdparty-syntax-highlighting-data-all' failed
    make[2]: *** [sub-3rdparty-syntax-highlighting-data-all] Error 2
    make[2]: Leaving directory '/home/contrel/Downloads/qtcreator_build/src/libs'
    Makefile:101: recipe for target 'sub-libs-all-ordered' failed
    make[1]: *** [sub-libs-all-ordered] Error 2
    make[1]: Leaving directory '/home/contrel/Downloads/qtcreator_build/src'
    Makefile:54: recipe for target 'sub-src-all-ordered' failed
    make: *** [sub-src-all-ordered] Error 2
    

    Please help me to solve it.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved