The same problem



  • I have the same problem. Valid path is /Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/lib', but i think, compiler split the spaces.
    It produce such errors:
    no such file or directory: 'HD'
    no such file or directory: '1/Developer/QT/5.6/clang_64/lib'

    Any ideas how to fix it?

    Re: OS X Yosemite no such file or directory: '1/Qt/5.5/clang_64/lib'


  • Moderators

    Can you show your PRO file?
    Compiler does not split anything. The problem is probably that the paths are passed without surrounding "".
    Paths should be inside "", then it should work even with spaces.



  • @jsulm

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = Test
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui


  • Moderators

    Can you post the complete build log?



  • This post is deleted!


  • @jsulm

    After rebuild, i have found a bad string. But don't know how to change it. Here is the double slash
    -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -framework

    13:12:32: Starting: "/usr/bin/make"
    '/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/bin/uic' ../Test/mainwindow.ui -o ui_mainwindow.h
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Test -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtGui.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/mkspecs/macx-clang -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -o main.o ../Test/main.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Test -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtGui.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/mkspecs/macx-clang -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -o mainwindow.o ../Test/mainwindow.cpp
    '/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/bin/moc' -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -D__APPLE_CC__ -I'/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/mkspecs/macx-clang' -I/Users/vvruspat/Test -I'/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/lib/QtWidgets.framework/Headers' -I'/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/lib/QtGui.framework/Headers' -I'/Volumes/Macintosh HD 1/Developer/QT/5.6/clang_64/lib/QtCore.framework/Headers' -I. -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib ../Test/mainwindow.h -o moc_mainwindow.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Test -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtGui.framework/Headers -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/mkspecs/macx-clang -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -o moc_mainwindow.o moc_mainwindow.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wl,-rpath,/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -o Test.app/Contents/MacOS/Test main.o mainwindow.o moc_mainwindow.o -F/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
    clang: error: no such file or directory: 'HD'
    clang: error: no such file or directory: '1/Developer/QT/5.6/clang_64/lib'
    make: *** [Test.app/Contents/MacOS/Test] Error 1


  • Moderators

    Problem are lines like this one:

    -I/Volumes/Macintosh\ HD\ 1/Developer/QT/5.6/clang_64/lib/QtCore.framework/Headers
    

    But I don't know how to fix this.



  • @jsulm i think, this pathes stores in enviroment variables, but i dont know where...



  • I solved this problem by creating a symbolic link to the folder in root. Then reinstalled the QT Creator, using this link. Now all paths in configs are /QT/5.6/clang_64/...
    and all works perfectly!


Log in to reply
 

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