matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
249 stars 79 forks source link

Does not compíle on Fedora 21 #25

Closed ufa closed 9 years ago

ufa commented 9 years ago

Hello, I am trying to compile on Fedora 21, but I am getting this erros (after fiddling with dependencies, which I think is ok now):

$ make g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -D_GLIBCXXDEBUG -c src/megacli.cpp -o src/megacli.o src/megacli.cpp: In function ‘void createthumbnail(const char, unsigned int, std::string_)’: src/megacli.cpp:104:43: error: ‘JPEG_EXIFROTATE’ was not declared in this scope if (!(dib = FreeImage_Load(fif,filename,JPEG_EXIFROTATE | JPEG_FAST | (size << 16)))) return; ^ src/megacli.cpp:115:53: error: ‘FIF_RAW’ was not declared in this scope if (!(dib = FreeImage_Load(fif, filename, (fif == FIF_RAW) ? RAW_PREVIEW : 0))) return; ^ src/megacli.cpp:115:64: error: ‘RAW_PREVIEW’ was not declared in this scope if (!(dib = FreeImage_Load(fif, filename, (fif == FIF_RAW) ? RAW_PREVIEW : 0))) return; ^ src/megacli.cpp:146:50: error: ‘JPEG_BASELINE’ was not declared in this scope if (FreeImage_SaveToMemory(FIF_JPEG,dib,hmem,JPEG_BASELINE | JPEG_OPTIMIZE | 85)) ^ src/megacli.cpp:146:66: error: ‘JPEG_OPTIMIZE’ was not declared in this scope if (FreeImage_SaveToMemory(FIF_JPEG,dib,hmem,JPEG_BASELINE | JPEG_OPTIMIZE | 85)) ^ src/megacli.cpp: In function ‘void setprompt(prompttype)’: src/megacli.cpp:852:3: warning: statement has no effect [-Wunused-value] rl_callback_handler_install(get_prompt(),process_line); ^ src/megacli.cpp: In function ‘void processline(char)’: src/megacli.cpp:1055:23: warning: statement has no effect [-Wunused-value] if (words.size()) add_history(line); ^ In file included from /usr/include/cryptopp/modes.h:12:0, from sdk/megacrypto.h:25, from src/megacli.cpp:57: /usr/include/cryptopp/algparam.h: In instantiation of ‘CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string]’: /usr/include/cryptopp/filters.h:793:132: required from here /usr/include/cryptopp/algparam.h:26:69: warning: unused variable ‘cryptopp_assert_26’ [-Wunused-variable] CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::valuetype) == 1); ^ In file included from /usr/include/cryptopp/modes.h:12:0, from sdk/megacrypto.h:25, from src/megacli.cpp:57: /usr/include/cryptopp/algparam.h: In instantiation of ‘void CryptoPP::AlgorithmParametersTemplate::MoveInto(void) const [with T = CryptoPP::RandomNumberGenerator]’: src/megacli.cpp:2366:1: required from here /usr/include/cryptopp/algparam.h:322:35: warning: unused variable ‘p’ [-Wunused-variable] AlgorithmParametersTemplate p = new(buffer) AlgorithmParametersTemplate(_this); ^ src/megacli.cpp: At global scope: src/megacli.cpp:928:6: warning: ‘void processline(char)’ defined but not used [-Wunused-function] void process_line(char* line) ^ src/megacli.cpp:839:20: warning: ‘const char* get_prompt()’ defined but not used [-Wunused-function] static const char* get_prompt(void) ^ In file included from /usr/include/cryptopp/secblock.h:7:0, from /usr/include/cryptopp/modes.h:8, from sdk/megacrypto.h:25, from src/megacli.cpp:57: /usr/include/cryptopp/misc.h:548:20: warning: ‘std::string CryptoPP::StringNarrow(const wchart, bool)’ defined but not used [-Wunused-function] static std::string StringNarrow(const wchart str, bool throwOnError = true) ^ Makefile:43: recipe for target 'src/megacli.o' failed make: * [src/megacli.o] Error 1

Any help will be appreciated. ufa

matteoserva commented 9 years ago

apparently it's a missing header from libfreeimage. what's the version installed on your system?

ufa commented 9 years ago

3.10.0

matteoserva commented 9 years ago

with freeimage 3.15 has the missing #defines, are you able to update it?

ufa commented 9 years ago

I can do it, but I have 3.10, not 3.15

matteoserva commented 9 years ago

please download and install it from the sources at http://freeimage.sourceforge.net/

ufa commented 9 years ago

It worked, thanks.