Open nbigaouette opened 9 years ago
Maybe it can be added a wrapper with ifdef to use getmntinfo[1] instead on OS X? https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/getmntinfo.3.html
Sure, the linux only feature should be at least isolated using #ifdef
s if the app is meant to be portable to other platforms.
I'm trying to wrap the mount helper to work both on Linux and OSX, the app is compiling, but when I try to run it I receive the following error: main.qml:23 module "org.nemomobile.folderlistmodel" is not installed
Any idea how can I solve it? I already tried to add the folderlistmodel path to the QML2_IMPORT_PATH env var, but it didn't help.
I have the same problem. Actually I've never been able to run files-app, neither on linux nor osx.
On OSX, I get the following:
./src/app/papyros-files
Trying to load QML from: "/Users/path/to/files-app.git/build/src/app/qml/main.qml"
QQmlApplicationEngine failed to load component
file:///Users/path/to/files-app.git/build/src/app/qml/main.qml:23 module "io.papyros.folderlistmodel" is not installed
Might be the same error on linux (can't remember, can check tomorrow).
I think I've seen another bug report about the folderlist module missing.
Also, note that in the error above I have run papyros-files from the build dir. When installing with make install
I have rpath problems:
$ /usr/local/bin/papyros-files
dyld: Library not loaded: @rpath/QtQuick.framework/Versions/5/QtQuick
Referenced from: /usr/local/bin/papyros-files
Reason: image not found
Trace/BPT trap: 5
from which I tried to fix using:
$ ldd /usr/local/bin/papyros-files
/usr/local/bin/papyros-files:
@rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.5.0, current version 5.5.1)
@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.1)
@rpath/QtQml.framework/Versions/5/QtQml (compatibility version 5.5.0, current version 5.5.1)
@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.5.0, current version 5.5.1)
@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.1)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)
$ install_name_tool -change @rpath/QtQuick.framework/Versions/5/QtQuick /Users/me/Qt/5.5/clang_64/lib/QtQuick.framework/Versions/5/QtQuick /usr/local/bin/papyros-files
$ install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui /Users/me/Qt/5.5/clang_64/lib/QtGui.framework/Versions/5/QtGui /usr/local/bin/papyros-files
$ install_name_tool -change @rpath/QtQml.framework/Versions/5/QtQml /Users/me/Qt/5.5/clang_64/lib/QtQml.framework/Versions/5/QtQml /usr/local/bin/papyros-files
$ install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork /Users/me/Qt/5.5/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/bin/papyros-files
$ install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore /Users/me/Qt/5.5/clang_64/lib/QtCore.framework/Versions/5/QtCore /usr/local/bin/papyros-files
but then I get:
$ /usr/local/bin/papyros-files
This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Available platform plugins are: cocoa, minimal, offscreen.
Reinstalling the application may fix this problem.
Abort trap: 6
@nbigaouette I can't help you much because i never worked with OS X but on linux i would delete everything installed in /usr/local listed in install_manifest.txt
. clean the build directory and install with the following commands.
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
@danielfranca i think the same would work for you. Specially because in current master org.nemomobile.folderlistmodel
is called io.papyros.folderlistmodel
After update my master with the current master, I could figure out how to solve this specific problem. I'd to include the libtag again, and then fix manually the files: folderlistmodel.dir/link.txt and CMakeFiles/folderlistmodel.dir/flags.make
Because the path for taglib includes/libs was wrong/missing in those files, so the folderlistmodel was not being compiled.
After that it was compiled, but then I got some errors trying to run files-app, errors saying that it was not finding the QtQuick libraries to load: dyld: Library not loaded: @rpath/QtQuick.framework/Versions/5/QtQuick
To fix that I copied the libraries to the executable path, following the dir structure, like: ./QtQuick.framework/Versions/5/QtQuick
But now I receive the error: This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Tried to copy the cocoa lib to the structure: ./plugins/platforms/libqcocoa.dylib
No success, for now I'm done, if anyone has any other idea to make it work let me know
There seems to be a mount helper included in files-app but this is not supported under OSX.
Trying to compile it I get the following error:
I simply deleted everything related to mtab for files-app to compile: