1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

added Windows instructions to readme

This commit is contained in:
Raymond Hammarling 2015-08-07 02:25:01 +02:00
parent e351388783
commit b8a3e44d47
2 changed files with 8 additions and 4 deletions

View File

@ -11,10 +11,16 @@ any buffer copys in read/write. It also supports unmount and mouting of multiple
## Requirements ## Requirements
You need to have FUSE installed You need to have FUSE installed (or Dokany on Windows)
* On Linux/Ubuntu `sudo apt-get install libfuse-dev` * On Linux/Ubuntu `sudo apt-get install libfuse-dev`
* On OSX install [OSXFuse](http://osxfuse.github.com/) and pkg-config, `brew install pkg-config` * On OSX install [OSXFuse](http://osxfuse.github.com/) and pkg-config, `brew install pkg-config`
* On Windows see `Windows` down below...
### Windows
Using this on Windows is slightly more complicated. You need to install [Dokany](https://github.com/dokan-dev/dokany) (for `dokanfuse.lib`, `dokanctl.exe`, driver and service) **and** clone its repo (for the headers).
Once the Dokany repo is cloned, you also need to set environment variable `DOKAN_FUSE_INCLUDE` to the path to `*dokany repo*\dokan_fuse\include`.
## Usage ## Usage

View File

@ -37,11 +37,9 @@ void thread_join (HANDLE thread) {
WaitForSingleObject(thread, INFINITE); WaitForSingleObject(thread, INFINITE);
} }
#include <iostream>
void fusermount (char *path) { void fusermount (char *path) {
char cmdLine[MAX_PATH]; char cmdLine[MAX_PATH];
sprintf(cmdLine, "dokanctl.exe /u %s", path); sprintf(cmdLine, "\"C:\\Program Files\\Dokan\\DokanLibrary\\dokanctl.exe\" /u %s", path);
STARTUPINFO info = {sizeof(info)}; STARTUPINFO info = {sizeof(info)};
PROCESS_INFORMATION procInfo; PROCESS_INFORMATION procInfo;