2016-03-23 11 views
1

こんにちは、openmpcmakeを使用して構築)を使用してQtプロジェクトをコンパイルする必要があります。今までhomebrew利用可能なコンパイラのリスト

私はhomebrewが提供するgcc-5を使用しますが、私は打ち鳴らすを使用したいと思います(私の好み...)

私は(cmake -DCMAKE_CXX_COMPILER=/usr/local/bin/clang-omp++ ..を経由して生成された)私のプロジェクトをコンパイルしようとすると、私は今homebrew install clang-omp経由clang-ompをインストールしたが、私はこのエラーを取得:

cd /Users/tommaso/neutrino/debug/src && /usr/local/bin/clang-omp++ -DHAVE_HDF5 -DHAVE_JPEG -DHAVE_LIBCFITSIO -DHAVE_LIBCLFFT -DHAVE_LIBDF -DHAVE_LIBFFTW -DHAVE_LIBFFTW_THREADS -DHAVE_LIBGSL -DHAVE_LIBGSLCBLAS -DHAVE_LIBHDF5HL -DHAVE_LIBMFHDF -DHAVE_LIBNETPBM -DHAVE_LIBTIFF -DHAVE_NPHYSIMAGE -DHAVE_OPENCL -DHAVE_PYTHONQT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UIPLUGIN_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DUSE_QT5 -D__VER=\"osx-cmake-v2.0-75.bdff6e3\" -I/Users/tommaso/neutrino/debug/src -I/Users/tommaso/neutrino/src -I/usr/include/hdf -I/usr/local/include/netpbm -I/Library/Frameworks/qwt.framework/Headers -I/usr/local/Cellar/hdf5/1.8.16_1/include -I/usr/include/python2.7 -I/Users/tommaso/neutrino/src/../../pythonqt-code/src -I/Users/tommaso/neutrino/src/../../pythonqt-code/src/gui -I/Users/tommaso/pythonqt-code/src -I/Users/tommaso/pythonqt-code/extensions/PythonQt_QtAll -I/Users/tommaso/neutrino/src/python -iframework /usr/local/opt/qt5/lib -isystem /usr/local/opt/qt5/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt5/./mkspecs/macx-clang -isystem /usr/local/opt/qt5/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Headers -isystem /usr/local/opt/qt5/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt5/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt5/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt5/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt5/include -isystem /usr/local/opt/qt5/include/QtUiTools -isystem /usr/local/opt/qt5/lib/QtMultimedia.framework/Headers -isystem /usr/local/opt/qt5/lib/QtNetwork.framework/Headers -isystem /usr/local/opt/qt5/lib/QtMultimediaWidgets.framework/Headers -I/Users/tommaso/neutrino/debug -I/Users/tommaso/neutrino/src/graphics -I/Users/tommaso/neutrino/src/doc -I/Users/tommaso/neutrino/src/pans -I/Users/tommaso/neutrino/src/pans/VISAR -I/Users/tommaso/neutrino/src/pans/colorbar -I/Users/tommaso/neutrino/src/pans/winlist -I/Users/tommaso/neutrino/src/../nPhysImage -I/Users/tommaso/neutrino/nPhysImage -isystem /usr/local/opt/qt5/lib/QtUiPlugin.framework/Headers -O3 -fopenmp -fopenmp -O0 -ggdb -D__phys_debug=10 -std=c++11 -Wall -fPIC -mmacosx-version-min=10.6 -o CMakeFiles/Neutrino.dir/neutrino.cc.o -c /Users/tommaso/neutrino/src/neutrino.cc 

In file included from /Users/tommaso/neutrino/src/neutrino.cc:26: 
In file included from /usr/local/opt/qt5/lib/QtSvg.framework/Headers/QtSvg:3: 
In file included from /usr/local/opt/qt5/include/QtSvg/QtSvgDepends:3: 
In file included from /usr/local/opt/qt5/include/QtCore/QtCore:4: 
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/qabstractanimation.h:37: 
In file included from /usr/local/opt/qt5/include/QtCore/qobject.h:41: 
/usr/local/opt/qt5/include/QtCore/qstring.h:739:55: error: no type named 'u16string' in namespace 'std' 
    static inline QString fromStdU16String(const std::u16string &s); 

それは私が同じclang-ompコンパイラでQTをコンパイルするために、おそらく必要があること(私が間違っているなら、私を修正)が判明しました。

私は大したを考えていないが、私はこれをしようとするとhomebrew叫ぶ:

HOMEBREW_CC=clang-omp HOMEBREW_CXX=clang-omp++ brew install -s qt5 
Error: Invalid value for HOMEBREW_CC: clang-omp 

のでhomebrewを使用してQt再構築を持ってする方法はありますか?

homebrewのコンパイラを入手するコマンドはありますか?

答えて

1

Qtを別のコンパイラで再コンパイルすると、おそらくこの問題は解決されません。

はまた、適切にあなたのコンパイラを検出できませんQtのヘッダにかかわる問題であること、その後、誤ってそれがstd::u16string

それとも、あなたのためのサポートを持っていると仮定して...

を代わりにthis other questionを見てください追加するのを忘れた#include <string>

+0

ありがとうございました!あなたは両方の問題を固定しました! – bibi

関連する問題