Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Build a sample #180

Open
QuestionPython opened this issue Mar 11, 2017 · 3 comments
Open

Error Build a sample #180

QuestionPython opened this issue Mar 11, 2017 · 3 comments

Comments

@QuestionPython
Copy link

QuestionPython commented Mar 11, 2017

Hello,
i can not build all sample.
i also have qt creator in system(ubuntu 16.10-64bit)

guest@system:~/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts$ go build basiclayouts.go
guest@system:~/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts$ ./basiclayouts
error: file:////home/guest/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts/main.qml.:46 module "QtQuick.Controls" is not installed
file:////home/guest/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts/main.qml.:47 module "QtQuick.Layouts" is not installed
file:////home/guest/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts/main.qml.:46 module "QtQuick.Controls" is not installed
file:////home/guest/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts/main.qml.:47 module "QtQuick.Layouts" is not installed
guest@system:~/go/src/gopkg.in/qml.v1/examples/controls/basiclayouts$ 

how fix?

@CheckGitCode
Copy link

I also have this problem! , how can fix?

@jeanlucmongrain
Copy link

Last commit in this repo is nearly 2 years ago.
You guys need to look at https://github.com/therecipe/qt
Its maintained and working

@QuestionPython
Copy link
Author

QuestionPython commented Mar 13, 2017

i install qt + qtcreator. (help from therecipe/qt#245 )


$ go build qml.go
# command-line-arguments
./qml.go:5:19: fatal error: capi.h: No such file or directory
 // #include "capi.h"
                   ^
compilation terminated.


$ go test
# testmain
2017/03/14 00:22:44 duplicate symbol _cgoexp_0ae46c052b10_hookIdleTimer (types 1 and 1) in github.com/go-qml/qml and /home/guest/go/pkg/linux_amd64/gopkg.in/qml.v1.a(_go_.o)
FAIL	github.com/go-qml/qml [build failed]

How Fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants