[TASK] Add instructions to build for arch linux.
This commit is contained in:
parent
18807593c4
commit
9a7dce82b1
|
@ -3,8 +3,17 @@ This repository contains a small QT4/C++ based project which implements basic im
|
||||||
|
|
||||||
# Building and running
|
# Building and running
|
||||||
|
|
||||||
|
This project requires qt4 to build and run:
|
||||||
<pre>
|
<pre>
|
||||||
qmake
|
qmake
|
||||||
make
|
make
|
||||||
./imageviewer-qt4
|
./imageviewer-qt4
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
For Arch Linux, there is qtchooser.
|
||||||
|
Using it, you can use
|
||||||
|
<pre>
|
||||||
|
QT_SELECT=4 qmake
|
||||||
|
</pre>
|
||||||
|
to create the Makefile.
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
HEADERS = imageviewer-qt4.h
|
HEADERS = imageviewer-qt4.h
|
||||||
SOURCES = imageviewer-qt4.cpp \
|
SOURCES = imageviewer-qt4.cpp \
|
||||||
imageviewer-main-qt4.cpp
|
imageviewer-main-qt4.cpp
|
||||||
|
|
||||||
# install
|
# install
|
||||||
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer
|
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer
|
||||||
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS imageviewer.pro
|
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS imageviewer.pro
|
||||||
sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer
|
sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer
|
||||||
INSTALLS += target sources
|
INSTALLS += target sources
|
||||||
|
|
||||||
symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
|
symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
|
||||||
|
|
||||||
wince*: {
|
wince*: {
|
||||||
DEPLOYMENT_PLUGIN += qjpeg qmng qgif
|
DEPLOYMENT_PLUGIN += qjpeg qmng qgif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue