make dolfin error: No rule to make target `dolfin/swig/dolfin/swig/shared_ptr_classes.i

Asked by kassbohm

trying to install dolfin I get the following results:

./dolfin-0.9.11# make
Scanning dependencies of target dolfin
[ 1%] Building CXX object dolfin/CMakeFiles/dolfin.dir/adaptivity/AdaptiveVariationalSolver.cpp.o
...
[100%] Building CXX object dolfin/CMakeFiles/dolfin.dir/refinement/RivaraRefinement.cpp.o
Linking CXX shared library libdolfin.so
[100%] Built target dolfin
make[2]: *** No rule to make target `dolfin/swig/dolfin/swig/shared_ptr_classes.i', needed by `dolfin/swig/dolfinPYTHON_wrap.cxx'. Stop.

Does anybody have an idea on this?

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johan Hake
Solved:
Last query:
Last reply:
Revision history for this message
kassbohm (kassbohm) said :
#1

target `dolfin/swig/dolfin/swig/shared_ptr_classes.i'

Obviously there is no such target, because the directory is wrong / duplicate...

Revision history for this message
kassbohm (kassbohm) said :
#2

Or I should rather say: shared_ptr_classes.i is already made and it sits in

dolfin/swig...

Revision history for this message
Best Johan Hake (johan-hake) said :
#3

This looks weird...

Have you tried building outside the source directory?

  make build
  cd build
  cmake .. +OPTIONS
  make
  make install

Johan

On Thursday June 23 2011 08:31:27 Sven Kaßbohm wrote:
> New question #162488 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/162488
>
> trying to install dolfin I get the following results:
>
> ./dolfin-0.9.11# make
> Scanning dependencies of target dolfin
> [ 1%] Building CXX object
> dolfin/CMakeFiles/dolfin.dir/adaptivity/AdaptiveVariationalSolver.cpp.o
> ...
> [100%] Building CXX object
> dolfin/CMakeFiles/dolfin.dir/refinement/RivaraRefinement.cpp.o Linking CXX
> shared library libdolfin.so
> [100%] Built target dolfin
> make[2]: *** No rule to make target
> `dolfin/swig/dolfin/swig/shared_ptr_classes.i', needed by
> `dolfin/swig/dolfinPYTHON_wrap.cxx'. Stop.
>
> Does anybody have an idea on this?

Revision history for this message
Anders Logg (logg) said :
#4

On Thu, Jun 23, 2011 at 04:35:49PM -0000, Johan Hake wrote:
> Question #162488 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/162488
>
> Status: Open => Answered
>
> Johan Hake proposed the following answer:
> This looks weird...
>
> Have you tried building outside the source directory?
>
> make build

mkdir build

> cd build
> cmake .. +OPTIONS
> make
> make install
>
> Johan
>
> On Thursday June 23 2011 08:31:27 Sven Kaßbohm wrote:
> > New question #162488 on DOLFIN:
> > https://answers.launchpad.net/dolfin/+question/162488
> >
> > trying to install dolfin I get the following results:
> >
> > ./dolfin-0.9.11# make
> > Scanning dependencies of target dolfin
> > [ 1%] Building CXX object
> > dolfin/CMakeFiles/dolfin.dir/adaptivity/AdaptiveVariationalSolver.cpp.o
> > ...
> > [100%] Building CXX object
> > dolfin/CMakeFiles/dolfin.dir/refinement/RivaraRefinement.cpp.o Linking CXX
> > shared library libdolfin.so
> > [100%] Built target dolfin
> > make[2]: *** No rule to make target
> > `dolfin/swig/dolfin/swig/shared_ptr_classes.i', needed by
> > `dolfin/swig/dolfinPYTHON_wrap.cxx'. Stop.
> >
> > Does anybody have an idea on this?
>

Revision history for this message
kassbohm (kassbohm) said :
#5

Hello Anders,

thanks for your reply. I didn't try that. But now I did.

Now it works. Thanks. Don't know why, though. But I guess, we try not to worry about it...

Thanks again, Sven.

Revision history for this message
kassbohm (kassbohm) said :
#6

Thanks Johan Hake, that solved my question.

Revision history for this message
Johan Hake (johan-hake) said :
#7

On Thursday June 23 2011 10:55:53 Sven Kaßbohm wrote:
> Question #162488 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/162488
>
> Status: Answered => Solved
>
> Sven Kaßbohm confirmed that the question is solved:
> Hello Anders,
>
> thanks for your reply. I didn't try that. But now I did.

It might be a bug for in-source build.

Do you know if this is not working Johannes?

Johan

Revision history for this message
Johannes Ring (johannr) said :
#8

It seems that in-source builds works fine. I just tried it and I had no problems. However, I would recommend to always do out-of-source builds.

Revision history for this message
kassbohm (kassbohm) said :
#9

Hi Johannes and Johan,

just to make sure, I downloaded a fresh gz.

Then tried to build via:
cmake .
make

Everything fine until:

[ 98%] Building CXX object dolfin/CMakeFiles/dolfin.dir/refinement/refine.cpp.o
[100%] Building CXX object dolfin/CMakeFiles/dolfin.dir/refinement/RivaraRefinement.cpp.o
Linking CXX shared library libdolfin.so
[100%] Built target dolfin
make[2]: *** No rule to make target `dolfin/swig/dolfin/swig/shared_ptr_classes.i', needed by `dolfin/swig/dolfinPYTHON_wrap.cxx'. Stop.
make[1]: *** [dolfin/swig/CMakeFiles/_cpp.dir/all] Error 2
make: *** [all] Error 2