matteoserva / MegaFuse

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

make error (debian jessie) #55

Closed poosey closed 8 years ago

poosey commented 8 years ago

Been trying to compile this thing for a week now with no avail. Everything needed is installed already. Always fails on the misc.h crypto++ part. Here's my log file of the error in question:

make: pkg-config: Command not found g++ -I inc -I /usr/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o In file included from /usr/include/fuse/fuse.h:26:0, from /usr/include/fuse.h:9, from inc/megafusemodel.h:7, from src/MegaFuseApp.cpp:9: /usr/include/fuse/fuse_common.h:33:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!

error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!

^ src/MegaFuseApp.cpp: In member function ‘virtual void MegaFuseApp::transfer_update(int, m_off_t, m_off_t, dstime)’: src/MegaFuseApp.cpp:360:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) { ^ 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/MegaFuseApp.cpp:7: /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/misc.h:59:118: warning: unused variable ‘cryptopp_assert_26’ [-Wunused-variable]

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                                                  ^

/usr/include/cryptopp/misc.h:62:39: note: in definition of macro ‘CRYPTOPP_DO_ASSERT_JOIN’

define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y

                                   ^

/usr/include/cryptopp/misc.h:59:97: note: in expansion of macro ‘CRYPTOPP_ASSERT_JOIN’

define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptoppassert, instance)

                                                                                             ^

/usr/include/cryptopp/misc.h:55:44: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT_INSTANCE’

define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, LINE)

                                        ^

/usr/include/cryptopp/algparam.h:26:9: note: in expansion of macro ‘CRYPTOPP_COMPILE_ASSERT’ 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/MegaFuseApp.cpp:7: /usr/include/cryptopp/algparam.h: In instantiation of ‘void CryptoPP::AlgorithmParametersTemplate::MoveInto(void) const [with T = CryptoPP::RandomNumberGenerator_]’: src/MegaFuseApp.cpp:377:1: required from here /usr/include/cryptopp/algparam.h:322:35: warning: unused variable ‘p’ [-Wunused-variable] AlgorithmParametersTemplate* p = new(buffer) AlgorithmParametersTemplate(_this); ^ 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/MegaFuseApp.cpp:7: /usr/include/cryptopp/misc.h: At global scope: /usr/include/cryptopp/misc.h:549:20: warning: ‘std::string CryptoPP::StringNarrow(const wchart, bool)’ defined but not used [-Wunused-function] static std::string StringNarrow(const wchar_t str, bool throwOnError = true) ^ Makefile:43: recipe for target 'src/MegaFuseApp.o' failed make: ** [src/MegaFuseApp.o] Error 1

matteoserva commented 8 years ago

The first line days that pkg-config is missing. Try installing it and see if it solves the issue

poosey commented 8 years ago

Thanks! That did the trick. duh