Skip to content

compiled ok with go-1.17 on ubuntu-18 #13

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,10 @@ and [Qt 5.0.2](http://download.qt-project.org/archive/qt/5.0/5.0.2/)
directly from the upstreams. Note that you'll likely have to adapt
environment variables to reflect the custom installation path for
these libraries. See the instructions above for examples.

## Build
```sh
export CGO_CXXFLAGS="-I/usr/include/x86_64-linux-gnu/qt5/QtCore/5.9.5/"
go build
```
`CGO_CXXFLAGS` is for `#include <QtCore/private/qglobal_p.h>`, change to your local version/path.
2 changes: 1 addition & 1 deletion bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"unsafe"

"github.com/limetext/qml-go/cdata"
"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/qpainter"
"github.com/limetext/qml-go/util"
)

type mainThreadFunc struct {
Expand Down
2 changes: 1 addition & 1 deletion datatype.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"unicode"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/qpainter"
"github.com/limetext/qml-go/util"
)

var (
Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/limetext/qml-go

go 1.17

require gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c

require (
github.com/kr/pretty v0.2.1 // indirect
github.com/kr/text v0.1.0 // indirect
)
7 changes: 7 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

// SetLogger sets the target for messages logged by the qml package,
Expand Down
2 changes: 1 addition & 1 deletion qimage/qimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"runtime"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

type QImage interface {
Expand Down
2 changes: 1 addition & 1 deletion qml.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"errors"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

func AddLibraryPath(path string) {
Expand Down
2 changes: 1 addition & 1 deletion qmlcommon.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"reflect"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

// Common implements the common behavior of all QML objects.
Expand Down
2 changes: 1 addition & 1 deletion qmlcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package qml
//
import "C"
import (
"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

// Context represents a QML context that can hold variables visible
Expand Down
2 changes: 1 addition & 1 deletion qmlengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"unsafe"

"github.com/limetext/qml-go/internal/util"
"github.com/limetext/qml-go/util"
)

// Engine provides an environment for instantiating QML components.
Expand Down
File renamed without changes.