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

Enable to use a build directory different to source directory #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Enable to use a build directory different to source directory #20

wants to merge 1 commit into from

Conversation

xkikeg
Copy link

@xkikeg xkikeg commented Jul 31, 2015

I got error when I tried to build in another directory s.t.

liquid@foo ~/work/source/jubatus-mpio
 % mkdir build
liquid@foo ~/work/source/jubatus-mpio
 % cd build/
liquid@foo ~/work/source/jubatus-mpio/build
 % ../configure
liquid@foo ~/work/source/jubatus-mpio/build
 % make
make  all-recursive
make[1]: ディレクトリ `/home/liquid/work/source/jubatus-mpio/build' に入ります
Making all in jubatus/mp
make[2]: ディレクトリ `/home/liquid/work/source/jubatus-mpio/build/jubatus/mp' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/liquid/work/source/jubatus-mpio/build/jubatus/mp' から出ます
Making all in mpsrc
make[2]: ディレクトリ `/home/liquid/work/source/jubatus-mpio/build/mpsrc' に入ります
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../mpsrc -I..  -I..  -pthread -g -O2 -g -MT libjubatus_mpio_la-wavy_connect.lo -MD -MP -MF .deps/libjubatus_mpio_la-wavy_connect.Tpo -c -o libjubatus_mpio_la-wavy_connect.lo `test -f 'wavy_connect.cc' || echo '../../mpsrc/'`wa
vy_connect.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../mpsrc -I.. -I.. -pthread -g -O2 -g -MT libjubatus_mpio_la-wavy_connect.lo -MD -MP -MF .deps/libjubatus_mpio_la-wavy_connect.Tpo -c ../../mpsrc/wavy_connect.cc  -fPIC -DPIC -o .libs/libjubatus_mpio_la-wavy_connect.o
../../mpsrc/wavy_connect.cc:18 から include されたファイル中:
../../mpsrc/wavy_loop.h:22:29: error: jubatus/mp/wavy.h: そのようなファイルやディレクトリはありません
../../mpsrc/wavy_loop.h:23:32: error: jubatus/mp/pthread.h: そのようなファイルやディレクトリはありません
../../mpsrc/wavy_kernel.h:50 から include されたファイル中,
                 ../../mpsrc/wavy_loop.h:24 から,
                 ../../mpsrc/wavy_connect.cc:18 から:
../../mpsrc/./wavy_kernel_epoll.h:22:34: error: jubatus/mp/exception.h: そのようなファイルやディレクトリはありません
(略)

Maybe we should use top_srcdir or top_builddir to specify relative directory path instead of ...
Refer: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Preset-Output-Variables.html

@kmaehashi kmaehashi self-assigned this Aug 3, 2015
@kmaehashi
Copy link
Member

Thanks! I'll review.

@kmaehashi kmaehashi added this to the 0.4.4 milestone Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants