Giter Site home page Giter Site logo

Comments (11)

matteoserva avatar matteoserva commented on July 19, 2024

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.

nephaste avatar nephaste commented on July 19, 2024

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.

nephaste avatar nephaste commented on July 19, 2024

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.

matteoserva avatar matteoserva commented on July 19, 2024

sorry, github deleted part of the line.

http://pastebin.com/5uJx0LSF

from megafuse.

nephaste avatar nephaste commented on July 19, 2024

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.

nephaste avatar nephaste commented on July 19, 2024

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

http://pastebin.com/XaCXGvgz

from megafuse.

nephaste avatar nephaste commented on July 19, 2024

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.

matteoserva avatar matteoserva commented on July 19, 2024

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.

nephaste avatar nephaste commented on July 19, 2024

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.

matteoserva avatar matteoserva commented on July 19, 2024

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.

nephaste avatar nephaste commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.