mmozeiko / RcloneBrowser

Simple cross platform GUI for rclone
https://mmozeiko.github.io/RcloneBrowser
The Unlicense
1.32k stars 419 forks source link

use of undeclared identifier 'mMimeDatabase' #96

Open Nostradamus1973 opened 6 years ago

Nostradamus1973 commented 6 years ago

Hello and Good Afternoon, I was trying to compile Rclone Browser for GhostBSD 11.1 and came across the following statement:

/usr/home/nostradamus/Downloads/RcloneBrowser-1.2/src/icon_cache.cpp:48:26: error: use of undeclared identifier 'mMimeDatabase' QMimeType mime = mMimeDatabase.mimeTypeForFile(item->name, QMime...

I tried searching the error database first and didn't see anything pertaining to my problem, I tried changing the header or seeing if there was an ending semicolon in the wrong place, BUT, saying that I don't know "C" is an understatement, so, I didn't want to mess with too much and make it worse. Although I've been using Linux for 25 years and Unix for 5, this is completely alien to me, so, any help would be greatly appreciated. Thank you for your time. -Pete

P.S. I wanted all the contributors that this is an awesome project, not just the gui, but the whole package and you guys deserve a ton of credit and thx for what you did, do, and gonna-do. :)

mmozeiko commented 6 years ago

You'll probably will need to adjust defines in icon_cache.cpp/h files to work on BSD. In worst case simple comment out mMimeDatabase usage, it is only there for pretty icons. Without it you'll get no icons.

woodsb02 commented 5 years ago

rclone-browser has just been added to the FreeBSD ports tree. Users can now install it on FreeBSD with the command: # pkg install rclone-browser.

The problem with error: use of undeclared identifier 'mMimeDatabase' was solved with the following patch, as per mmozeiko's recommendation: https://svnweb.freebsd.org/ports/head/net/rclone-browser/files/patch-src_icon__cache.h?revision=503430&view=markup

woodsb02 commented 5 years ago

@mmozeiko - would you please consider incorporating this patch into this upstream code repository for rclone-browser?