Thank you! Professor W.
I have solved my problem, 

-DHDF5_LIBRARY=/usr/lib/x86_64-linux-gnu/hdf5/serial/lib 

this command should link a static library, not a /lib.

在 2018年4月27日星期五 UTC+8下午10:45:27,Wolfgang Bangerth写道:
>
> On 04/27/2018 01:28 AM, cxmai...@gmail.com <javascript:> wrote: 
> > @davydden But after I finish configure the dealii: 
> > 
> > | 
> > sudo cmake -DCMAKE_INSTALL_PREFIX=/home/chenxi/DealIInew 
>
> It's generally a bad idea to do anything with 'sudo'. In your case, you 
> are installing into your home directory, so it is not even necessary here. 
>
>
> > But I still got some warnings: 
> > 
> > 
> > | 
> > WARNING:Target"deal_II.g"requests linking to directory 
> > "/usr/lib/x86_64-linux-gnu/hdf5/serial/lib".Targetsmay link only to 
> > libraries.CMakeisdropping the item. 
>
> I don't know where they come from, but these are just warnings. You can 
> ignore them. As long as.... 
>
> > But it works when I use make install to install dealii 
> ...it works, you should be fine. Can you run any of the tutorial programs? 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
>                             www: http://www.math.colostate.edu/~bangerth/ 
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to