Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Compiling Qt Creator in OS X: unixutils.cpp

    Tools
    1
    1
    856
    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.
    • A
      Apelsinsaft last edited by

      Hi,

      While the fireworks lit up the sky outside, I celebrated new year's by trying to compile Qt Creator straight from git. The linker gave this error:

      Undefined symbols for architecture x86_64:
      "Utils::UnixUtils::fileBrowser(QSettings const*)", referenced from:
      Core::FileUtils::showInGraphicalShell(QWidget*, QString const&) in fileutils.o
      "Utils::UnixUtils::substituteFileBrowserParameters(QString const&, QString const&)", referenced from:
      Core::FileUtils::showInGraphicalShell(QWidget*, QString const&) in fileutils.o
      ld: symbol(s) not found for architecture x86_64

      I resolved it by removing the "!macx" condition on line 95 in src/libs/utils/utils-lib.pri, so that unixutils.cpp gets compiled for OS X. Is my fix "correct"? If so, should this be considered a bug in the utils-lib.pri file? I suspect that it might not be that simple, since unixutils.cpp was explicitly disabled for macx, but not for other unixes. However, Qt Creator built with the change, and seems to be running OK.

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