Open novec-tech opened 2 years ago
Hello,
can you please provide list of packages needed to compile this ?
I am using ubuntu in docker. Install g++,gcc,pkg-config but still receive some errors.
Many thanks in advance
Jan
root@1ffee5f0e502:/MegaFuse# 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/incl ude/x86_64-linux-gnu -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o 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 of integer expressions of different signedness: 'int' and 'std::__cxx1998::vector<bool, std::allocator >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 360 | } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) { | ~~~^~~~~~~~~ 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/x86_64-linux-gnu -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/file_cache_row.cpp -o src/file_cache_row.o src/file_cache_row.cpp: In static member function 'static int CacheManager::numChunks(size_t)': src/file_cache_row.cpp:72:13: error: 'ceil' was not declared in this scope 72 | return 8 + ceil(float(pos-end)/(8.0*ChunkedHash::SEGSIZE)); | ^~~~ make: *** [Makefile:43: src/file_cache_row.o] Error 1
Hello,
can you please provide list of packages needed to compile this ?
I am using ubuntu in docker. Install g++,gcc,pkg-config but still receive some errors.
Many thanks in advance
Jan
root@1ffee5f0e502:/MegaFuse# 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/incl ude/x86_64-linux-gnu -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o 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 of integer expressions of different signedness: 'int' and 'std::__cxx1998::vector<bool, std::allocator >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
360 | } else if(endChunk > startChunk && endChunk < it->second.availableChunks.size() && it->second.availableChunks[endChunk]) {
|
~~~^~~~~~~~~ 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/x86_64-linux-gnu -I/usr/include/fuse -D_GLIBCXX_DEBUG -c src/file_cache_row.cpp -o src/file_cache_row.o src/file_cache_row.cpp: In static member function 'static int CacheManager::numChunks(size_t)': src/file_cache_row.cpp:72:13: error: 'ceil' was not declared in this scope 72 | return 8 + ceil(float(pos-end)/(8.0*ChunkedHash::SEGSIZE)); | ^~~~ make: *** [Makefile:43: src/file_cache_row.o] Error 1