Unfortunately this also didn't work. I'm trying to compile qtdesktopcomponents (https://git.gitorious.org/qtplaygrou...components.git). When I run:
qmake DESTDIR=../pkg && make
qmake DESTDIR=../pkg && make
To copy to clipboard, switch view to plain text mode
it still wants to install a file in /usr directory.
I think this is the file which generates the library which should get installed into /usr: qtdesktop.pro
I've tried to replace
TARGETPATH = QtDesktop
TARGETPATH = QtDesktop
To copy to clipboard, switch view to plain text mode
with
TARGETPATH = $$(PWD)/$$(DESTDIR)/QtDesktop
TARGETPATH = $$(PWD)/$$(DESTDIR)/QtDesktop
To copy to clipboard, switch view to plain text mode
Then I run:
qmake DESTDIR=../../pkg && make
qmake DESTDIR=../../pkg && make
To copy to clipboard, switch view to plain text mode
but it still wants to install the file into /usr:
cd qtdesktop/ && ( test -f Makefile || /usr/bin/qmake /home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/qtdesktop.pro DESTDIR=../../pkg -o Makefile ) && make -f Makefile
WARNING: DESTDIR: Cannot access directory '/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop'
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
mkdir: das Verzeichnis „/usr/lib/qt/qml/home“ kann nicht angelegt werden: Keine Berechtigung
make[2]: *** [/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop/libstyleplugin.so] Fehler 1
cd qtdesktop/ && ( test -f Makefile || /usr/bin/qmake /home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/qtdesktop.pro DESTDIR=../../pkg -o Makefile ) && make -f Makefile
WARNING: DESTDIR: Cannot access directory '/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop'
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
mkdir: das Verzeichnis „/usr/lib/qt/qml/home“ kann nicht angelegt werden: Keine Berechtigung
make[2]: *** [/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop/libstyleplugin.so] Fehler 1
To copy to clipboard, switch view to plain text mode
I then added
INSTALLPATH = $$(PWD)/$$(DESTDIR)
INSTALLPATH = $$(PWD)/$$(DESTDIR)
To copy to clipboard, switch view to plain text mode
but this also doesn't change anything.
Adding this:
unix {
installPath = $$(PWD)/$$(DESTDIR)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}
unix {
installPath = $$(PWD)/$$(DESTDIR)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}
To copy to clipboard, switch view to plain text mode
to the .pro file results in:
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
/usr/bin/qmake DESTDIR=../../pkg -o Makefile qtdesktop.pro
WARNING: DESTDIR: Cannot access directory '/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop/QtDesktop/QtDesktop/QtDesktop'
make[2]: Leaving directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
Makefile:8044: warning: overriding recipe for target `install_target'
Makefile:7937: warning: ignoring old recipe for target `install_target'
Makefile:8049: warning: overriding recipe for target `uninstall_target'
Makefile:7942: warning: ignoring old recipe for target `uninstall_target'
Makefile:8055: warning: overriding recipe for target `install_qmldir'
Makefile:7947: warning: ignoring old recipe for target `install_qmldir'
Makefile:8102: warning: overriding recipe for target `uninstall_qmldir'
Makefile:7995: warning: ignoring old recipe for target `uninstall_qmldir'
mkdir: das Verzeichnis „/usr/lib/qt/qml/home“ kann nicht angelegt werden: Keine Berechtigung
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
/usr/bin/qmake DESTDIR=../../pkg -o Makefile qtdesktop.pro
WARNING: DESTDIR: Cannot access directory '/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/usr/lib/qt/qml/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/pkg/QtDesktop/QtDesktop/QtDesktop/QtDesktop'
make[2]: Leaving directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
Makefile:8044: warning: overriding recipe for target `install_target'
Makefile:7937: warning: ignoring old recipe for target `install_target'
Makefile:8049: warning: overriding recipe for target `uninstall_target'
Makefile:7942: warning: ignoring old recipe for target `uninstall_target'
Makefile:8055: warning: overriding recipe for target `install_qmldir'
Makefile:7947: warning: ignoring old recipe for target `install_qmldir'
Makefile:8102: warning: overriding recipe for target `uninstall_qmldir'
Makefile:7995: warning: ignoring old recipe for target `uninstall_qmldir'
mkdir: das Verzeichnis „/usr/lib/qt/qml/home“ kann nicht angelegt werden: Keine Berechtigung
To copy to clipboard, switch view to plain text mode
When I add these lines:
TARGET.path = $$(PWD)/$$(DESTDIR)/QtDesktop
INSTALLS += TARGET
TARGET.path = $$(PWD)/$$(DESTDIR)/QtDesktop
INSTALLS += TARGET
To copy to clipboard, switch view to plain text mode
I get the following error message:
cd qtdesktop/ && ( test -f Makefile || /usr/bin/qmake /home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/qtdesktop.pro DESTDIR=/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build../../pkg -o Makefile ) && make -f Makefile
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
mkdir: das Verzeichnis „/usr/lib/qt/qml/QtQml/“ kann nicht angelegt werden: Keine Berechtigung
make[2]: *** [/usr/lib/qt/qml/QtQml/libstyleplugin.so] Fehler 1
cd qtdesktop/ && ( test -f Makefile || /usr/bin/qmake /home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop/qtdesktop.pro DESTDIR=/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build../../pkg -o Makefile ) && make -f Makefile
make[2]: Entering directory `/home/gumstix/abs/qtdesktopcomponents/src/qtdesktopcomponents-build/src/qtdesktop'
mkdir: das Verzeichnis „/usr/lib/qt/qml/QtQml/“ kann nicht angelegt werden: Keine Berechtigung
make[2]: *** [/usr/lib/qt/qml/QtQml/libstyleplugin.so] Fehler 1
To copy to clipboard, switch view to plain text mode
So I'm out of luck with my guessing.
Bookmarks