PKG_CONFIG_PATH and official Qt5 distribution

1,431 views
Skip to first unread message

Andrew Jackman

unread,
Aug 22, 2014, 4:34:01 PM8/22/14
to go-...@googlegroups.com
What am I doing wrong? Everything seems to be lined up and ready to go to use Qt5 from the Qt site.

jackman@debian:~$ ls -l /opt/Qt5.0.2/5.0.2/gcc_64/lib/pkgconfig/
total 136
-rw-r--r-- 1 root root 277 Aug 22 14:26 Qt5Bootstrap.pc
-rw-r--r-- 1 root root 287 Aug 22 14:26 Qt5CLucene.pc
-rw-r--r-- 1 root root 299 Aug 22 14:26 Qt5Concurrent.pc
-rw-r--r-- 1 root root 773 Aug 22 14:26 Qt5Core.pc
-rw-r--r-- 1 root root 275 Aug 22 14:26 Qt5DBus.pc
-rw-r--r-- 1 root root 350 Aug 22 14:26 Qt5Declarative.pc
-rw-r--r-- 1 root root 380 Aug 22 14:26 Qt5DesignerComponents.pc
-rw-r--r-- 1 root root 335 Aug 22 14:26 Qt5Designer.pc
-rw-r--r-- 1 root root 290 Aug 22 14:26 Qt5Gui.pc
-rw-r--r-- 1 root root 312 Aug 22 14:26 Qt5Help.pc
-rw-r--r-- 1 root root 336 Aug 22 14:26 Qt5Multimedia.pc
-rw-r--r-- 1 root root 369 Aug 22 14:26 Qt5MultimediaQuick_p.pc
-rw-r--r-- 1 root root 378 Aug 22 14:26 Qt5MultimediaWidgets.pc
-rw-r--r-- 1 root root 287 Aug 22 14:26 Qt5Network.pc
-rw-r--r-- 1 root root 320 Aug 22 14:26 Qt5OpenGL.pc
-rw-r--r-- 1 root root 345 Aug 22 14:26 Qt5PlatformSupport.pc
-rw-r--r-- 1 root root 344 Aug 22 14:26 Qt5PrintSupport.pc
-rw-r--r-- 1 root root 303 Aug 22 14:26 Qt5QmlDevTools.pc
-rw-r--r-- 1 root root 282 Aug 22 14:26 Qt5Qml.pc
-rw-r--r-- 1 root root 357 Aug 22 14:26 Qt5QuickParticles.pc
-rw-r--r-- 1 root root 312 Aug 22 14:26 Qt5Quick.pc
-rw-r--r-- 1 root root 325 Aug 22 14:26 Qt5QuickTest.pc
-rw-r--r-- 1 root root 283 Aug 22 14:26 Qt5Script.pc
-rw-r--r-- 1 root root 322 Aug 22 14:26 Qt5ScriptTools.pc
-rw-r--r-- 1 root root 271 Aug 22 14:26 Qt5Sql.pc
-rw-r--r-- 1 root root 308 Aug 22 14:26 Qt5Svg.pc
-rw-r--r-- 1 root root 284 Aug 22 14:26 Qt5Test.pc
-rw-r--r-- 1 root root 306 Aug 22 14:26 Qt5UiTools.pc
-rw-r--r-- 1 root root 249 Aug 22 14:26 Qt5V8.pc
-rw-r--r-- 1 root root 353 Aug 22 14:26 Qt5WebKit.pc
-rw-r--r-- 1 root root 355 Aug 22 14:26 Qt5WebKitWidgets.pc
-rw-r--r-- 1 root root 313 Aug 22 14:26 Qt5Widgets.pc
-rw-r--r-- 1 root root 314 Aug 22 14:26 Qt5XmlPatterns.pc
-rw-r--r-- 1 root root 271 Aug 22 14:26 Qt5Xml.pc
jackman@debian:~$ echo $PKG_CONFIG_PATH
/opt/Qt5.0.2/5.0.2/gcc_64/lib/pkgconfig/
jackman@debian:~$ GOPATH=$HOME/code/edge-client go get -u gopkg.in/qml.v1
# pkg-config --cflags Qt5Core Qt5Widgets Qt5Quick
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Core' found
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5Quick was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Quick.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Quick' found
exit status 1
jackman@debian:~$

Similar output is given when using the latest (5.3.1) Qt.

Thanks.

Andrew Jackman

Jackman

unread,
Aug 25, 2014, 12:07:04 PM8/25/14
to Andrew Jackman, go-...@googlegroups.com
It turns out that when you define the PKG_CONFIG_PATH variable, you need to use the 'export' command.

Andrew Jackman
kd7...@gmail.com



Andrew Jackman

--
You received this message because you are subscribed to the Google Groups "go-qml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-qml+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages