Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error compiling Qt Creator 3.2.0
Forum Updated to NodeBB v4.3 + New Features

Error compiling Qt Creator 3.2.0

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.0k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mcpedro
    wrote on last edited by
    #1

    Hi,
    I've received this error when trying to compile Qt Creator 3.2.0 from source:

    make[3]: Entering directory `/Work/DESENV/tools/qt-creator-opensource-src-3.2.0/src/plugins/coreplugin'
    /usr/bin/g++44 -c -pipe -std=c++0x -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DCORE_LIBRARY -DIDE_LIBRARY_BASENAME="lib" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../Qt-4.8.6/mkspecs/linux-g++ -I. -I../../../../Qt-4.8.6/include/QtCore -I../../../../Qt-4.8.6/include/QtNetwork -I../../../../Qt-4.8.6/include/QtGui -I../../../../Qt-4.8.6/include/QtSql -I../../../../Qt-4.8.6/include/QtScript -I../../../../Qt-4.8.6/include -I../../../../Qt-4.8.6/include/QtHelp -I../../../src -I../../libs -I/Work/DESENV/tools/qt-creator-opensource-src-3.2.0/tools -I../../plugins -I../../shared/scriptwrapper -I.moc/release-shared -I.uic -o .obj/release-shared/mainwindow.o mainwindow.cpp
    mainwindow.cpp: In function ‘QListCore::IDocumentFactory* Core::Internal::getNonEditorDocumentFactories()’:
    mainwindow.cpp:748: error: expected primary-expression before ‘[’ token
    mainwindow.cpp:748: error: expected primary-expression before ‘]’ token
    mainwindow.cpp:748: error: expected primary-expression before ‘*’ token
    mainwindow.cpp:748: error: ‘factory’ was not declared in this scope

    I've compiled the Qt 4.8.6 with no error. I'm using Red Hat 5 with g++44 (GCC) 4.4.7 20120313 (Red Hat 4.4.7-1)

    What must I do to compile it?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

      Use a contemporary compiler. According to http://lists.qt-project.org/pipermail/qt-creator/2014-March/003417.html the required minimum to compile anything from the 3.2 branch is VS 2010, g++ 4.5 and clang 3.1.

      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