Comments (11)
the offending line requires c++11 to be compiled.
first try changing "-std=c++0x" into "-std=c++11";
If it doesn't work, replace the two lines with:
for(std::set<EventsListener * >::iterator it = listeners[e].begin(); it !=listeners[e].end();++it)
(*it)->notifyEvent(er);
from megafuse.
thanks
The first solution bring me an error while modifying the Makefile
x86_64-unknown-linux-gnu-g++ -I inc -I /raid/data/module/MegaFuse/sys/include/cryptopp -I sdk -std=c++11 -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -I/raid/data/module/MegaFuse/sys/include -c src/MegaFuseApp.cpp -o src/MegaFuseApp.o
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [src/MegaFuseApp.o] Error 1
I am not sure what you mean by
If it doesn't work, replace the two lines with:
for(std::set::iterator it = listeners[e].begin(); it !=listeners[e].end();++it)
(*it)->notifyEvent(er);
is it in src/EventsHandler.cpp
from megafuse.
i put back the "-std=c++0x"
and modify in src/EventsHandler.cpp
replacing
for(EventsListener * it : listeners[e])
it->notifyEvent(er);
by
for(std::set::iterator it = listeners[e].begin(); it !=listeners[e].end();++it)
(*it)->notifyEvent(er);
still push me an error
/raid/data/module/MegaFuse/sys/include/cryptopp/misc.h: At global scope:
/raid/data/module/MegaFuse/sys/include/cryptopp/misc.h:548:20: warning: 'std::string CryptoPP::StringNarrow(const wchar_t_, bool)' defined but not used
x86_64-unknown-linux-gnu-g++ -I inc -I /raid/data/module/MegaFuse/sys/include/cryptopp -I sdk -std=c++0x -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_DEBUG -I/raid/data/module/MegaFuse/sys/include -c src/EventsHandler.cpp -o src/EventsHandler.o
src/EventsHandler.cpp: In member function 'int EventsHandler::notifyEvent(EventsHandler::event, int, std::string)':
src/EventsHandler.cpp:43:10: error: 'template<class _Key, class _Compare, class Allocator> class std::__debug::set' used without template parameters
src/EventsHandler.cpp:43:24: error: expected ';' before 'it'
src/EventsHandler.cpp:43:51: error: 'it' was not declared in this scope
make: ** [src/EventsHandler.o] Error 1
from megafuse.
sorry, github deleted part of the line.
from megafuse.
it is ok, seem to go on now, I have another problem linked with libcurl and undefined reference to openssl but it is not a problem linked to MegaFuse.
Thanks again
Stéphane
from megafuse.
Finally found the rror i had was also link to the Makefile missing some libs link added
to the LDFLAGS -lssl -liconv -lcrypto -lz
now i have a full megafuse binary :)))
here is Make File modification i did
from megafuse.
not sure what happen but launching the MegaFuse Binary show me an eternal
API request failed, retrying in 100 ms - Use 'retry' to retry immediately...
API request failed, retrying in 200 ms - Use 'retry' to retry immediately...
API request failed, retrying in 400 ms - Use 'retry' to retry immediately...
API request failed, retrying in 800 ms - Use 'retry' to retry immediately...
API request failed, retrying in 1600 ms - Use 'retry' to retry immediately...
API request failed, retrying in 3200 ms - Use 'retry' to retry immediately...
API request failed, retrying in 6400 ms - Use 'retry' to retry immediately...
did i miss something ? the conf file is well filled
from megafuse.
Sometimes the MEGA server is offline. If you still cannot connect after 1 hour, write another post here. Can you connect from your ordinary PC with the same credentials?
from megafuse.
still the same :(((
caricata la variabile MOUNTPOINT con il valore /raid/data/MEGA
API request failed, retrying in 100 ms - Use 'retry' to retry immediately...
API request failed, retrying in 200 ms - Use 'retry' to retry immediately...
API request failed, retrying in 400 ms - Use 'retry' to retry immediately...
API request failed, retrying in 800 ms - Use 'retry' to retry immediately...
API request failed, retrying in 1600 ms - Use 'retry' to retry immediately...
API request failed, retrying in 3200 ms - Use 'retry' to retry immediately...
API request failed, retrying in 6400 ms - Use 'retry' to retry immediately...
API request failed, retrying in 12800 ms - Use 'retry' to retry immediately...
and no problem to log within a a web browser
can it be link to a free acoount, i registered for my test ?
from megafuse.
I have a free account too.
What i mean is: try megafuse on a ubuntu or debian computer or laptop, compiled with a normal gcc (not cross compiled). If it works, then i'll try to simulate the NAS to see what goes wrong
from megafuse.
thanks, let me know
I will also try to compile it on a PPC NAS Thecus N2310, which doesnt require Cross compilation, all is done through a chrooted environment. but i am sure it is not related to my ToolChain, neither my NAS connection...
from megafuse.
Related Issues (20)
- Fix for compile in Debian 9
- mount directory disapears
- canot build for debain 64
- Compilation error on Debian 10 x86 HOT 1
- FATAL: Request failed (Expired) HOT 5
- instruction to compile?
- Bulid error in Ubuntu Server 16.04
- error in row cpp HOT 3
- libfreeimage.dylib when using the bin file for OSX
- 'fuse' not found so compiling cannot continue HOT 1
- Compile how to HOT 1
- download fallito: -5 HOT 1
- Is this repo dead? HOT 11
- MegaFuse arguments HOT 3
- megafuse_symlink
- Inconsistent behavior when removing and possibly modifying symlinks
- Needs additional tools and an include to build on Ubuntu 18.04 HOT 3
- Attribute to upldaed files is -555 & samba issue HOT 1
- installation failed HOT 1
- error when open remote folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megafuse.