mtu-most / MOSTMetalCura

A slicer program for MOST's open-source metal 3-D printer.
GNU Affero General Public License v3.0
8 stars 7 forks source link

Build error! #1

Open akarimg opened 5 years ago

akarimg commented 5 years ago

Hello, I am trying to build MOSTMetalCura, all dependencies have been successfully built, but I encountered this error.

` user@debian64:~$ git clone https://github.com/mtu-most/MOSTMetalCura.git Cloning into 'MOSTMetalCura'... Resolving deltas: 100% (28/28), done.

user@debian64:~$ cd MOSTMetalCura/

user@debian64:~/MOSTMetalCura$ mkdir build && cd build

user@debian64:~/MOSTMetalCura/build$ cmake .. -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found suitable version "3.6.1", minimum required is "3.0.0") -- Configuring done -- Generating done -- Build files have been written to: /home/user/MOSTMetalCura/build

user@debian64:~/MOSTMetalCura/build$ make Scanning dependencies of target clipper [ 2%] Building CXX object CMakeFiles/clipper.dir/libs/clipper/clipper.cpp.o [ 5%] Linking CXX static library libclipper.a [ 5%] Built target clipper Scanning dependencies of target Test [ 8%] Building CXX object CMakeFiles/Test.dir/src/test.cpp.o [ 11%] Linking CXX executable Test [ 11%] Built target Test [ 14%] Running C++ protocol buffer compiler on Cura.proto Scanning dependencies of target MOSTMetalCura [ 17%] Building CXX object CMakeFiles/MOSTMetalCura.dir/src/bridge.cpp.o [ 20%] Building CXX object CMakeFiles/MOSTMetalCura.dir/src/comb.cpp.o [ 23%] Building CXX object CMakeFiles/MOSTMetalCura.dir/src/commandSocket.cpp.o /home/user/MOSTMetalCura/src/commandSocket.cpp: In member function ‘void cura::CommandSocket::connect(const string&, int)’: /home/user/MOSTMetalCura/src/commandSocket.cpp:62:76: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::ObjectList)’ d->socket->registerMessageType(1, &Cura::ObjectList::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:63:82: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::SlicedObjectList)’ d->socket->registerMessageType(2, &Cura::SlicedObjectList::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:64:74: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::Progress)’ d->socket->registerMessageType(3, &Cura::Progress::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:65:76: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::GCodeLayer)’ d->socket->registerMessageType(4, &Cura::GCodeLayer::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:66:81: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::ObjectPrintTime)’ d->socket->registerMessageType(5, &Cura::ObjectPrintTime::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:67:77: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::SettingList)’ d->socket->registerMessageType(6, &Cura::SettingList::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:68:77: error: no matching function for call to ‘Arcus::Socket::registerMessageType(int, const Cura::GCodePrefix)’ d->socket->registerMessageType(7, &Cura::GCodePrefix::default_instance()); ^ In file included from /home/user/MOSTMetalCura/src/commandSocket.cpp:8:0: /usr/local/include/Arcus/Socket.h:73:22: note: candidate: virtual bool Arcus::Socket::registerMessageType(const google::protobuf::Message) virtual bool registerMessageType(const google::protobuf::Message* message_type); ^~~~~~~ /usr/local/include/Arcus/Socket.h:73:22: note: candidate expects 1 argument, 2 provided /home/user/MOSTMetalCura/src/commandSocket.cpp:72:22: error: ‘class Arcus::Socket’ has no member named ‘state’; did you mean ‘getState’? while(d->socket->state() != Arcus::SocketState::Closed && d->socket->state() != Arcus::SocketState::Error) ^~~~~ /home/user/MOSTMetalCura/src/commandSocket.cpp:72:74: error: ‘class Arcus::Socket’ has no member named ‘state’; did you mean ‘getState’? while(d->socket->state() != Arcus::SocketState::Closed && d->socket->state() != Arcus::SocketState::Error) ^~~~~ /home/user/MOSTMetalCura/src/commandSocket.cpp:100:24: error: ‘class Arcus::Socket’ has no member named ‘errorString’ if(!d->socket->errorString().empty()) { ^~~ /home/user/MOSTMetalCura/src/commandSocket.cpp:101:41: error: ‘class Arcus::Socket’ has no member named ‘errorString’ logError("%s\n", d->socket->errorString().data()); ^~~ CMakeFiles/MOSTMetalCura.dir/build.make:118: recipe for target 'CMakeFiles/MOSTMetalCura.dir/src/commandSocket.cpp.o' failed make[2]: [CMakeFiles/MOSTMetalCura.dir/src/commandSocket.cpp.o] Error 1 CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/MOSTMetalCura.dir/all' failed make[1]: [CMakeFiles/MOSTMetalCura.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 ` Can you help resolve this error please?

outbound-pt commented 5 years ago

I think I'm getting the exact same error on Ubuntu 18.04.

domagalski-b87 commented 5 years ago

Hi, I am having exactly the same error as described before. I believe that all necessary dependencies are installed correctly. Any ideas or tips how to resolve it? Thank you in advance!