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 while building/testing on windows #187

Open
datNurd opened this issue Mar 31, 2018 · 1 comment
Open

Error while building/testing on windows #187

datNurd opened this issue Mar 31, 2018 · 1 comment

Comments

@datNurd
Copy link

datNurd commented Mar 31, 2018

Using Go1.5
and Qt 5.1.1
'# github.com/limetext/qml-go/qpainter
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterSetCompositionMode': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:13: undefined reference to _imp___ZN8QPainter18setCompositionModeENS_15CompositionModeE'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterCompositionMode': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:16: undefined reference to _imp___ZNK8QPainter15compositionModeEv'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterSave': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:68: undefined reference to _imp___ZN8QPainter4saveEv'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterRestore': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:71: undefined reference to _imp___ZN8QPainter7restoreEv'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterScale': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:101: undefined reference to _imp___ZN8QPainter5scaleEdd'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterShear': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:104: undefined reference to _imp___ZN8QPainter5shearEdd'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterRotate': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:107: undefined reference to _imp___ZN8QPainter6rotateEd'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function ZN8QPainter9translateEdd': C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtGui/qpainter.h:901: undefined reference to _imp___ZN8QPainter9translateERK7QPointF'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function ZN8QPainter9setWindowEiiii': C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtGui/qpainter.h:916: undefined reference to _imp___ZN8QPainter9setWindowERK5QRect'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function ZN8QPainter11setViewportEiiii': C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtGui/qpainter.h:911: undefined reference to _imp___ZN8QPainter11setViewportERK5QRect'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterBeginNativePainting': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:321: undefined reference to _imp___ZN8QPainter19beginNativePaintingEv'
C:\Users\pnikh\AppData\Local\Temp\go-build489265622\github.com\limetext\qml-go\qpainter_obj\painter.cpp.o: In function painterEndNativePainting': C:/Users/pnikh/Documents/go/src/github.com/limetext/qml-go/qpainter/painter.cpp:324: undefined reference to _imp___ZN8QPainter17endNativePaintingEv'
collect2.exe: error: ld returned 1 exit status'

@datNurd
Copy link
Author

datNurd commented Mar 31, 2018

Was able to solve this issue by adding pkg-config files for Qt5Qml Qt5Quick Qt5OpenGL to the bridge.go file

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

1 participant