[KDE/Mac] QStandardPaths possible solution

René J.V. Bertin rjvbertin at gmail.com
Sun Jan 11 01:52:01 UTC 2015


Hi,

So I applied the latest patch from gerrit to Qt 5.3.2, and in the end got this from qtdiag:

Standard paths [*...* denote writable entry]:
  DesktopLocation: "Desktop" */Users/bertin/Desktop*
  DocumentsLocation: "Documents" */Users/bertin/Documents*
  FontsLocation: "Fonts" */System/Library/Fonts*
  ApplicationsLocation: "Applications" */Applications*
  MusicLocation: "Music" */Users/bertin/Music*
  MoviesLocation: "Movies" */Users/bertin/Movies*
  PicturesLocation: "Pictures" */Users/bertin/Pictures*
  TempLocation: "TemporaryItems" */var/folders/j1/1439ppj08xj8h6006s6drbq00000gs/T*
  HomeLocation: "Home" */Users/bertin*
  DataLocation: "Application Support" */Users/bertin/Library/Application Support/Qt Project/qtdiag* /Library/Application Support/Qt Project/qtdiag /opt/local/libexec/qt5/share/Qt Project/qtdiag /opt/local/libexec/qt5/bin/
  CacheLocation: "Caches" */Users/bertin/Library/Caches/Qt Project/qtdiag* /Library/Caches/Qt Project/qtdiag
  GenericDataLocation: "Application Support" */Users/bertin/Library/Application Support* /opt/local/libexec/qt5/share /Library/Application Support
  RuntimeLocation: "Application Support" */Users/bertin/Library/Application Support*
  ConfigLocation: "Preferences" */Users/bertin/Library/Preferences* /opt/local/libexec/qt5/config
  DownloadLocation: "Documents" */Users/bertin/Documents*
  GenericCacheLocation: "Caches" */Users/bertin/Library/Caches* /Library/Caches
  GenericConfigLocation: "Preferences" */Users/bertin/Library/Preferences* /opt/local/libexec/qt5/config


In other words, I've been sleeping on the job again, talking about using the install prefix, and not realising that in my own work to make the Qt ports co-installable, -prefix != ${prefix} because I use -prefix=${prefix}/libexec/qt5 :-/

I am calling configure with the options

>         -prefix         ${qt_dir}              \
>         -docdir         ${qt_docs_dir}         \
>         -headerdir      ${qt_includes_dir}     \
>         -plugindir      ${qt_plugins_dir}      \
>         -importdir      ${qt_imports_dir}      \
>         -qmldir         ${qt_qml_dir}          \
>         -datadir        ${qt_data_dir}         \
>         -libdir         ${qt_frameworks_dir}   \
>         -bindir         ${qt_bins_dir}         \
>         -translationdir ${qt_translations_dir} \
>         -sysconfdir     ${qt_sysconf_dir}      \
>         -examplesdir    ${qt_examples_dir}     \
>         -testsdir       ${qt_tests_dir}        \
>         -hostdatadir    ${qt_host_data_dir}

(I only changed the paths passed in, not the options used). Is there another path specification option that can be used to get the path /opt/local/share (${prefix}/share) where it belongs??

R.


More information about the kde-mac mailing list