cogenda / Genius-TCAD-Open

Open-source version of the Genius Semiconductor Device Simulator
http://www.cogenda.com
Other
117 stars 68 forks source link

I cannot configure genius with petsc and vtk #5

Closed vhcg77 closed 13 years ago

vhcg77 commented 13 years ago

I perform the following command in order to install genius:

vhcg77@vhcg77-Vostro1510:~/GSS/genius-20100411-open$ sudo ./configure --with-vtk-include=/usr/local/include/vtk-5.6/ --with-vtk-lib=/usr/local/lib/vtk-5.6/ --enable-vtk=yes

and this is the output from the command:


----------- Configuring GENIUS --------------

checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for mpicc... mpicc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether mpicc accepts -g... yes checking for mpicc option to accept ISO C89... none needed checking for mpicxx... mpicxx checking whether we are using the GNU C++ compiler... yes checking whether mpicxx accepts -g... yes checking for mpif90... mpif90 checking whether we are using the GNU Fortran compiler... yes checking whether mpif90 accepts -g... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for strip... strip checking whether make sets $(MAKE)... yes checking for ar... ar <<< C++ compiler is gcc-4.4 >>> checking how to run the C preprocessor... mpicc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of short int... 2 checking size of int... 4 checking size of long int... 8 checking size of float... 4 checking size of double... 8 checking size of void *... 8 checking if CGNS directory was specified... /usr/local checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking how to run the C++ preprocessor... mpicxx -E checking for /include/petsc.h... no <<< PETSc disabled. Please set your "$PETSC_ARCH" environment variable correctly. >>> checking for ./src/contrib/ann/ANN.cpp... yes <<< Configuring library with ANN support >>> checking for ./src/contrib/metis/metis.h... yes <<< Configuring library with Metis support >>> checking for /usr/local/include/vtk-5.6//vtkConfigure.h... yes checking for /usr/local/lib/vtk-5.6//libvtkIO.a... no VTK library files not found! checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking whether the compiler implements namespaces... yes checking whether the compiler has locale... yes checking whether the compiler has stringstream... yes checking whether the compiler supports std::tr1::unordered_map... yes checking whether the compiler supports std::tr1::unordered_set... yes checking whether the compiler supports std::unordered_map... no checking whether the compiler supports std::unordered_set... no checking whether the compiler supports gnu_cxx::hash_map... yes checking whether the compiler supports gnu_cxx::hash_set... yes checking whether the compiler supports std::hash_map... no checking whether the compiler supports std::hash_set... no checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for working strtod... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for dlopen in -ldl... yes checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XFlush in -lX11... yes checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes checking for TIFFOpen in -ltiff... yes checking whether make sets $(MAKE)... (cached) yes configure: creating ./config.status config.status: creating make.defs config.status: creating config.h

config.status: config.h is unchanged

--------- Done Configuring GENIUS -----------

The problem is I installed petsc (petsc-3.1-p7) and I configured the environment variables follow in my .bashrc file:

export PETSC_DIR=/home/vhcg77/petsc/petsc-3.1-p7 export PETSC_ARCH=linux-gnu-cxx-opt export PATH=$PATH:$PETSC_DIR

As we can see from the output, the configure file cannot find the petsc.h and the libvtkIO.a files.

I have the petsc.h file in the following directory: /home/vhcg77/petsc/petsc-3.1-p7/include/petsc.h

But the libvtkIO.a is not at any directory.

Could somebody help me with this issue,

Thank you very much!!..

cogenda commented 13 years ago
  1. Please use Petsc-3.0, instead of 3.1. There is a major API change.
  2. The configure script is trying to find the libvtkIO.a static library. Is Vtk compiled to produce .a static library? If the .a file is not present, but a .so file is, I guess you need to re-compile Vtk, and turn-off the shared library option.
vhcg77 commented 13 years ago

Many thanks!! I'm sorry for being late in answer this solution!