vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 140 forks source link

Grive2 on MacOS it's possibile :) #110

Open massimiliano-dalcero opened 8 years ago

massimiliano-dalcero commented 8 years ago

Hi everybody, I modified some things and compiled grive2 on OSX and now works :)

these are my steps:

For compile, first Install follows dependencies with brew (http://brew.sh/): brew install cmake brew install libgcrypt brew install boost brew install boost-build brew install yajl brew install pkgconfig

change all occurences of type off64_t with off_t , because in OSX all types are 64bit and off64_t doesn't exists. ( VIM tips: %s/off64_t/off_t/g )

in the source file: "libgrive//src/http/CurlAgent.cc": modify the callback function "progress_callback" called by: "curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback);"

For my fast use, I only modified the if condition : if ( pthis->m_pb && false ) { ... } return 0

otherwhise gdrive raises a segmentation fault

... surely can do better :D

kbarros commented 2 years ago

As of this commit 3 years ago, the CMakeLists.txt maps off64_t to off_t on MacOS. https://github.com/vitalif/grive2/commit/8e3c3d25cb51dc2ceb2044dec545dc4028cfe39a