go-qml / qml

QML support for the Go language
Other
1.96k stars 187 forks source link

OSX 10.9.1 Error: no such file or directory : '/QtCore' #28

Closed xyhp915 closed 10 years ago

xyhp915 commented 10 years ago
☁  ~  go version 
go version go1.2 darwin/386
☁  ~  ls /usr/local/Cellar/qt5/HEAD/include/QtCore/ | grep '^5'
5.2.1
☁  ~  echo $PKG_CONFIG_PATH
/usr/local/opt/qt5/lib/pkgconfig

☁  ~  CXX=g++-4.8 go get github.com/niemeyer/qml
# github.com/niemeyer/qml
clang: error: no such file or directory: '/QtCore'

is there any path not configured ?

laurent22 commented 10 years ago

You will need gcc to compile it - see Requirements in Mac OS X.

xyhp915 commented 10 years ago

@laurent22 thanks for your reply :)
I had installed gcc48 . but how can i invoke it to compile qml ?

laurent22 commented 10 years ago

Hmm, not sure, it looks like it's still using clang instead of gcc. Did you follow all the steps in README.md? Last time I tried it worked for me (at last on Mountain Lion). If you search for g++ in /usr/bin what does it say? ls -la /usr/bin | grep g++

xyhp915 commented 10 years ago

Yes . I had follow these steps in README.md . Below it says ..

☁  ~  ls -la /usr/bin | grep g++
lrwxr-xr-x     1 root   wheel         7  8 28 23:54 c++ -> clang++
-rwxr-xr-x     1 root   wheel     14240 10  8 18:21 clang++
-rwxr-xr-x     1 root   wheel     14224 10  8 18:21 g++
lrwxr-xr-x     1 root   wheel         7  8 28 23:54 llvm-g++ -> clang++
dyxushuai commented 10 years ago

I come with the same problem.what can I do for it

raff commented 10 years ago

Try my suggestion at https://github.com/niemeyer/qml/issues/33

niemeyer commented 10 years ago

I've updated the instructions as @raff suggested. Let's hope it works for you. If not, please reopen this issue with more details.

rawberg commented 9 years ago

I ran into this issue trying to install against Qt 5.5.0-beta. I've tried gcc 4.8, 4.9 and 5.1 always get the same error. Also downgraded Xcode and command line tools to 6.3.1.

go version go1.4.2 darwin/amd64
pkg-config --modversion Qt5Core 
5.5.0
echo $PKG_CONFIG_PATH
/usr/local/Cellar/qt5/5.5.0-beta/lib/pkgconfig/
g++-4.9: error: QtWidgets: No such file or directory
g++-4.9: error: QtWebEngine: No such file or directory
g++-4.9: error: QtQuick: No such file or directory
g++-4.9: error: QtGui: No such file or directory
g++-4.9: error: QtQml: No such file or directory
g++-4.9: error: QtNetwork: No such file or directory
g++-4.9: error: QtCore: No such file or directory
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
g++-4.9: error: unrecognized command line option '-framework\'
facekapow commented 9 years ago

@rawberg Same problem on OS X Yosemite.

Thomasdezeeuw commented 9 years ago

I'm having the same issue with clang:

# gopkg.in/qml.v1
clang: error: unknown argument: '-framework\'
clang: error: unknown argument: '-framework\'
clang: error: unknown argument: '-framework\'
clang: error: unknown argument: '-framework\'
clang: error: unknown argument: '-framework\'
clang: error: unknown argument: '-framework\'
clang: error: no such file or directory: 'QtWidgets'
clang: error: no such file or directory: 'QtQuick'
clang: error: no such file or directory: 'QtGui'
clang: error: no such file or directory: 'QtQml'
clang: error: no such file or directory: 'QtNetwork'
clang: error: no such file or directory: 'QtCore'