Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Proper use of prefix, extprefix, and sysroot during configure

$
0
0
I’m at a loss for the proper way to call configure and make use of prefix, extprefix, sysroot, etc. I always end up with a misconfigured system. Here is my situation (paths are shortened a bit to make this easier to read): I have a sysroot in /home/steve/sysroot. I want to install into /home/steve/nfs, which is the NFS root of my ARM device. When I run “make install”, I end up with files installed into: /home/steve/nfs/* /home/steve/nfs/home/steve/nfs/* /home/steve/sysroot/home/steve/nfs/* I’ve been able to circumvent this (I think) by making symlinks in the second two locations, pointing back to the first. When I add the qmake to Creator (or write a program to query the paths using “QLibraryInfo::location(QLibraryInfo::PrefixPath)”, for example), the paths all begin /home/steve/nfs, when they really should begin with “/”. Using the example paths above, my configure command line would be something like ./configure -sysroot /home/steve/sysroot -prefix /home/steve/nfs -extprefix /home/steve/nfs <other stuff> I’ve tried different ways of doing this, like completely omitting extprefix or prefix. When I try to use “-prefix /”, I get the following error when I try to run make: /home/steve/qt-arm-5.3.0/qtbase/mkspecs/features/qt_module_pris.prf:116: Cannot write file /home/steve/ti-sdk-am335x-evm-07.00.00.00/targetNFS/mkspecs/modules-inst/qt_lib_bootstrap_private.pri: Cannot create parent directory. It’s strange that a simple “make” would try to do something with the target. I’ve re-run this as root (not very safe), but it will fail much later on with something else (I forget the error). What is the proper way to call configure in my situation? _Note: There is already a post about this problem here [qt-project.org], which I would like to delete since this post more clearly states the problem, but I can’t figure out how…

Viewing all articles
Browse latest Browse all 2113

Trending Articles