888 wrote:Ok, i manage to run the script from the MinGw32 console but im getting some errors.
For each of the compile loops its the same:
Then follows two lines where the make and install instances are stoped.Code: Select all
configure: error: C compiler cannot create executables
It says that more details are given in some config.log file but where is it?
And in one of the other loops the "C" is replaced by "Fortran 77". Actually in this loop in particular i also get a missing .dll error
The script:
Code: Select all
#start of script, compile-elmer.sh #!/bin/sh -f # # Create temp names # #change the next statement to reflect your directory structure export ELMER_HOME=/E/Programas/ElmerMPI/Build #export ELMER_POST_HOME=$ELMER_HOME/share/elmerpost #export ELMER_FRONT_HOME=$ELMER_HOME/share/elmerfront export PATH=$ELMER_HOME/bin:$PATH export CC=mpicc export CXX=mpic++ export FC=mpif90 export F77=mpif77 #export CPP=cpp-elmer export LDFLAGS="-L/e/Programas/MinGW/lib/gcc/mingw32/4.5.2 -Xlinker --stack=1000000000 " #change that to your MPI installation path export MPIDIR="E/Programas/OpenMPI_v1.5.3-win32" #following statement is optional, will suppress ’deprecated’ warning in compiler output export CXXFLAGS="-Wno-deprecated" modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem" for m in $modules; do cd $m ./configure --with-mpi=yes --with-mpi-dir="$MPIDIR" --with-mpi-lib-dir="$MPIDIR/lib" --with-mpi-inc-dir="$MPIDIR/include" --prefix=$ELMER_HOME #if you get an error message at the end of compiling with ’gcc-sjlj’ in it, then #uncomment the next line and run once. Then recomment the line, and run #again to compile. # make distclean make make install cd .. done #end of script
hi,i meet the same problem with you ,could you tell me how do you solve this