-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on M1, MacOS 11.1 + MacFuse 4.0.5 fails: library not found for -losxfuse_i64 #239
Comments
I solved it and can read and write bitlocker-encrypted partitions. For anyone else looking for this, here is a list of steps for building and running on OS X 11 and an M1-processor. It took a few days trying and leaving it and trying again, I hope I haven't forgotten some details: Building: Install macports. Then install these packages:
Link some include files to be found later by src/dislocker-fuse.c
Download the dislocker source and make a few changes:
Now start cmake: to make make find the fuse libs, export LIBRARY_PATH:
Attach a bitlocker partition:
the partition name will appear as a new drive in Finder. To de-attach the partition: Hope this helps someone! Thank you Aorimn! |
@rev111 |
Hi Emad, My instructions above to mount and umount are a bit outdated, lately I used the gist from here: Edit: Adding .jpg as file extension was a stupid idea, zipped it instead. |
Thanks! This is very helpful. I tested this on M2 macbook air with Ventura 13.4.1. After installing port install cmake
port install mbedtls
LIBRARY_PATH=/usr/local/lib:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include cmake .
make
sudo make install Then |
This is great, thanks @qiyan98. To add, for anyone who is still struggling to set up dislocker and finds this issue, I tested these commands on my M1 Macbook Pro running macOS 14.1 Sonoma. Make sure to install MacPorts first (https://www.macports.org/). Then install macFUSE through the installer (https://osxfuse.github.io/) and make sure the kernel extensions are enabled. Perform the commands given by @qiyan98 above to install gsed -i 's/^#include "mbedtls\/config.h"/#include "mbedtls\/mbedtls_config.h"/;s/# define SHA256(input, len, output) mbedtls_sha256_ret(input, len, output, 0)/# define SHA256(input, len, output) mbedtls_sha256(input, len, output, 0)/' include/dislocker/ssl_bindings.h After this, run the |
This also works on Sonoma 14.5 M2 & M3 with homebrew instead of macports just need to do the following:
Compiling dislocker requires the second version of Mbed-TSL (previously PolarSSL). Trying to compile with the latest (third) version causes an error so you have to use
As the mbedlts@2 package is only available as a keg, no symbolic links are created into /usr/local by default. Thankfully, we may easily temporarily replace the linked libraries from mbedtls (if installed) with mbedtls@2:
Now we may get the latest version of dislocker, compile and install it:
Finally with dislocker installed, we may undo the previous changes and relink to version 3 if you have it installed:
|
Hello, since I have a different processor, OS and OSXFuse version I moved this into a separate issue.
I'm trying to build under OSX Big Sur 11.1 with the new M1/Silicon processor.
I rely on Macports as package manager and installing homebrew along it is not recommended. So I'm trying to build from source.
cmake runs successful (albeit with warnings) with this command from issue 223:
LIBRARY_PATH=/usr/local/lib:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include cmake .
But make fails:
The libraries below have been installed by the latest version of OSXFuse (now renamed to MacFuse) 4.0.5.
Are these the osxfuse libraries that dislocker expects?
I tried to alter search terms in make/FindFUSE.cmake like this:
I also tried appending the library path:
as well as presetting it like with the cmake command:
LIBRARY_PATH=/usr/local/lib:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include make
But the error remains, and I'm running out of ideas.
I'm not even sure where the check for losxfuse_i64 comes from. Maybe somebody knows how to find out which library exactly is expected here and where it should be found?
Any help very much appreciated!
The text was updated successfully, but these errors were encountered: