Mehdi Nikbakht wrote:
Hello,
I just cloned the latest version of dolfin and installed it on my machine. When
I tried to compile Poisson demo, I got this error. Which package do I need to
install?
Try enabling shared libraries when building PETSc,
--with-shared=1
Garth
nikbakht@mech054:~/fenics/dolfin/demo/pde/poisson/cpp$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
mpicxx -o demo -pthread
-Wl,-rpath,/home/nikbakht/petsc-2.3.2-p8/lib/linux-gnu-c-debug -pthread
-Wl,--export-dynamic main.o -L/home/nikbakht/fenics/dolfin/local/lib
-L/usr/lib/atlas -L/home/nikbakht/petsc-2.3.2-p8/lib/linux-gnu-c-debug -ldolfin
-lblas -lumfpack -lamd -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat
-lpetscvec -lpetsc -lgts -lxml2 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCreateFontCursor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetWindowBackground'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XDrawString'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to `XSync'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XDefineCursor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XDrawPoint'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XMapWindow'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetClipRectangles'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCloseDisplay'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`dgetrs_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XLoadFont'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`dgesvd_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetForeground'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XFillPolygon'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XGetWindowAttributes'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XAllocNamedColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XLookupColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XResizeWindow'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XFreeGC'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCopyArea'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XUndefineCursor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XStringListToTextProperty'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XStoreColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XQueryPointer'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetWMName'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XFreeFontInfo'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XChangeGC'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetWindowColormap'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCreateColormap'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XParseColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XQueryColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`dpotrf_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XMatchVisualInfo'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSetWMProperties'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XMaskEvent'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XDrawLine'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`MPI_Alltoallw'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCheckTypedEvent'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`dgetrf_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`dpotrs_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XAllocColor'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XFillArc'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to `XFlush'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCreateWindow'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XSelectInput'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XGetGeometry'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XGetWMName'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XListFontsWithInfo'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XQueryFont'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XFillRectangle'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to `dgeev_'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCreatePixmap'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XCreateGC'
/home/nikbakht/fenics/dolfin/local/lib/libdolfin.so: undefined reference to
`XOpenDisplay'
collect2: ld returned 1 exit status
scons: *** [demo] Error 1
scons: building terminated because of errors.
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev