Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to compile on ubuntu 14.04? #24

Closed
timotheecour opened this issue Oct 3, 2016 · 9 comments
Closed

how to compile on ubuntu 14.04? #24

timotheecour opened this issue Oct 3, 2016 · 9 comments
Assignees
Labels

Comments

@timotheecour
Copy link

timotheecour commented Oct 3, 2016

I'm struggling trying to compile this library (or any msgpack-rpc library for C++ for that matter). Please advise.

sudo apt-get install libmsgpack-dev
cd ~/git_clone
git clone https://github.com/jubatus/jubatus-msgpack-rpc
./bootstrap
./configure
#--with-mpio=DIR option may be needed.

Then:

cd ~/git_clone
git clone https://github.com/jubatus/jubatus-mpio
./bootstrap
./configure
make -j8
make install DESTDIR=$HOME
libtool --finish $HOME/usr/local/lib
#doesn' seem to build libmpio.a so I also did:
ln -s $HOME/usr/local/lib/libjubatus_mpio.a $HOME/usr/local/lib/libmpio.a

#trying again:
cd ~/msgpack-rpc-cpp
./configure --with-mpio=$HOME/usr/local

types.h:22:23: fatal error: mp/memory.h: No such file or directory
@kmaehashi
Copy link
Member

You cannot build msgpack-rpc-cpp against jubatus-mpio. The allowed combinations are:

or

The installation path of jubatus_mpio library needs to be specified as --with-mpio argument when configuring jubatus-msgpack-rpc.

@timotheecour
Copy link
Author

cd ~/git_clone/jubatus-msgpack-rpc/cpp
./configure --with-jubatus-mpio=$HOME/usr/local
make
In file included from exception.h:23:0,
                 from session.h:24,
                 from client.h:23,
                 from client.cc:18:
future.h: In member function 'void msgpack::rpc::future::type<void>::get()':
future.h:99:17: error: 'nil' is not a member of 'msgpack::v2::type'
   { future::get<msgpack::type::nil>(); }
                 ^
future.h:99:17: note: suggested alternative:
In file included from /home/timothee/.linuxbrew/include/msgpack/adaptor/nil_decl.hpp:13:0,
                 from /home/timothee/.linuxbrew/include/msgpack/adaptor/nil.hpp:13,
                 from /home/timothee/.linuxbrew/include/msgpack/type.hpp:13,
                 from /home/timothee/.linuxbrew/include/msgpack.hpp:18,
                 from types.h:22,
                 from client.h:22,
                 from client.cc:18:
/home/timothee/.linuxbrew/include/msgpack/v1/adaptor/nil_decl.hpp:28:15: note:   'msgpack::v1::type::nil'
 typedef nil_t nil;
               ^

@kmaehashi
Copy link
Member

If you're using MessagePack v1.0+, try msgpack-1.x branch:

https://github.com/jubatus/jubatus-msgpack-rpc/tree/msgpack-1.x

@timotheecour
Copy link
Author

cd /home/timothee/git_clone/jubatus-msgpack-rpc/cpp
git fetch
git checkout msgpack-1.x
./bootstrap
./configure --with-jubatus-mpio=$HOME/usr/local
make clean
make

future.h: In member function 'void msgpack::rpc::future::type::get()':
future.h:99:17: error: 'nil' is not a member of 'msgpack::v2::type'
{ future::getmsgpack::type::nil(); }

@timotheecour
Copy link
Author

also tried:

brew install msgpack
./configure --with-jubatus-mpio=$HOME/usr/local --with-msgpack=/home/timothee/.linuxbrew/

@timotheecour
Copy link
Author

@timotheecour
Copy link
Author

timotheecour commented Oct 6, 2016

this works as a temporary workaround, but uses old versions:

cd $git_clone_D/msgpack-c
git checkout cpp-1.4
./bootstrap
./configure
make
make install DESTDIR=$HOME/temp/stage3

cd $git_clone_D/jubatus-msgpack-rpc/cpp
git checkout msgpack-1.x
./configure --with-jubatus-mpio=$HOME/temp/stage3/usr/local --with-msgpack=$HOME/temp/stage3/usr/local/
make
make install DESTDIR=$HOME/temp/stage3

However, I'm running into trouble when trying to run examples:

#include <jubatus/msgpack/rpc/client.h>

crashes (will open another bug)

In file included from /home/timothee/temp/stage3/usr/local/include/jubatus/msgpack/rpc/session.h:23:0,
from /home/timothee/temp/stage3/usr/local/include/jubatus/msgpack/rpc/client.h:23,
from /home/timothee/git_clone//lhrep//tests/test_msgpack_rpc.cpp:8:
/home/timothee/temp/stage3/usr/local/include/jubatus/msgpack/rpc/protocol.h:61:28: error:
'tuple_type' in namespace 'msgpack::v1::type' does not name a template type
typename msgpack::type::tuple_type<Parameter>::transparent_reference param,

@stale
Copy link

stale bot commented May 16, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 16, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

Closing this issue after a prolonged period of inactivity. Please feel free to create a new issue or re-open it if you need.

@stale stale bot closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants