GSI Forum - RDF feed
https://forum.gsi.de/index.php
Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20562&th=5374#msg_20562
I'm installing R3BRoot to another computer, everything (FairSoft, FairRoot and R3BRoot) is the latest version, and I followed all the instructions that I followed before, when I installed it before, on my other machine. But cmake fails when building neuland/reconstruction directory with pointer error:
...
[ 53%] Building CXX object neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstru ctionNeuralNetworkMultiplicity.cxx.o
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx: In member function 'virtual std::vector<R3BNeulandNeutron> Neuland::ReconstructionNeuralNetworkMultiplicity::GetNeutrons(const std::vector<R3BNeulandCluster*>&) const':
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:69:39: error: no matching function for call to 'FairMQSocketZMQ::Send(std::unique_ptr<FairMQMessageZMQ>::pointer, int)'
fSocket->Send(msg.get(), 0);
^
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:69:39: note: candidates are:
In file included from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.h:6:0,
from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:1:
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:38:17: note: virtual int FairMQSocketZMQ::Send(FairMQMessagePtr&, int)
virtual int Send(FairMQMessagePtr& msg, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:38:17: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'FairMQMessagePtr& {aka std::unique_ptr<FairMQMessage>&}'
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:41:21: note: virtual int64_t FairMQSocketZMQ::Send(std::vector<std::unique_ptr<FairMQMessage> >&, int)
virtual int64_t Send(std::vector<std::unique_ptr<FairMQMessage>>& msgVec, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:41:21: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'std::vector<std::unique_ptr<FairMQMessage> >&'
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:73:43: error: no matching function for call to 'FairMQSocketZMQ::Receive(std::unique_ptr<FairMQMessageZMQ>::pointer, int)'
fSocket->Receive(answ.get(), 0);
^
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:73:43: note: candidates are:
In file included from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.h:6:0,
from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:1:
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:39:17: note: virtual int FairMQSocketZMQ::Receive(FairMQMessagePtr&, int)
virtual int Receive(FairMQMessagePtr& msg, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:39:17: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'FairMQMessagePtr& {aka std::unique_ptr<FairMQMessage>&}'
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:42:21: note: virtual int64_t FairMQSocketZMQ::Receive(std::vector<std::unique_ptr<FairMQMessage> >&, int)
virtual int64_t Receive(std::vector<std::unique_ptr<FairMQMessage>>& msgVec, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:42:21: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'std::vector<std::unique_ptr<FairMQMessage> >&'
neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/build.mak e:207: recipe for target 'neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstr uctionNeuralNetworkMultiplicity.cxx.o' failed
make[2]: *** [neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstr uctionNeuralNetworkMultiplicity.cxx.o] Error 1
CMakeFiles/Makefile2:1587: recipe for target 'neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/all' failed
make[1]: *** [neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Best regards,
Zsombor
]]>lanyizsombor2017-03-16T15:48:38-00:00Re: Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20565&th=5374#msg_20565
Which compilers do you have on both machines? Please post here output of "gcc --version"
Best regards,
Dima]]>Dmytro Kresan2017-03-16T16:00:07-00:00Re: Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20569&th=5374#msg_20569
Best,
Zsombor]]>lanyizsombor2017-03-16T19:53:41-00:00Re: Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20579&th=5374#msg_20579
Meanwhile I will check with my Ubuntu installation, and which compiler I have there.
Best regards,
Dima]]>Dmytro Kresan2017-03-17T05:23:59-00:00Re: Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20580&th=5374#msg_20580
Best regards,
Zsombor]]>lanyizsombor2017-03-17T10:08:09-00:00Re: Installation fails
https://forum.gsi.de/index.phpindex.php?t=rview&goto=20594&th=5374#msg_20594
In the meantime you can simply exclude that specific file from build, that is in
neuland/CMakeLists.txt
if(ROOT_VERSION_MAJOR GREATER 5)
# add_subdirectory(reconstruction) <-- don't build that for the moment
add_subdirectory(clustering)
add_subdirectory(digitizing)
else(ROOT_VERSION_MAJOR GREATER 5)