Skip to content
Snippets Groups Projects
Commit c5cb21f4 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

update build settings + test petsc/slepc 3.6.0

parent 7e0cd021
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
#cmakedefine HAVE_TAUCS #cmakedefine HAVE_TAUCS
#cmakedefine HAVE_TETGEN #cmakedefine HAVE_TETGEN
#cmakedefine HAVE_VORO3D #cmakedefine HAVE_VORO3D
#cmakedefine HAVE_ZIPPER
#define GMSH_CONFIG_OPTIONS "${GMSH_CONFIG_OPTIONS}" #define GMSH_CONFIG_OPTIONS "${GMSH_CONFIG_OPTIONS}"
......
#!/usr/bin/python2 #!/usr/bin/python
######## FOR PETSC 3.6.0
######## I had to
######## change Cxx.py in the PETSc 3.6.0 distrib to replace CXXCPP by CPP
######## edit src/system/err.c to remove the exception throwing code
######## edit android_real/lib/petsc/conf/petscvariables:
######## remove the dylib stuff
######## and edit SL_LINKER_FUNCTION : just define as "-shared"
######## add "-Wl,--unresolved-symbols=ignore-all" to fix undefined ref to 'main'
if __name__ == '__main__': if __name__ == '__main__':
import sys import sys
import os import os
...@@ -16,14 +26,10 @@ if __name__ == '__main__': ...@@ -16,14 +26,10 @@ if __name__ == '__main__':
'--CPP=' + ndkbin + 'arm-linux-androideabi-cpp', '--CPP=' + ndkbin + 'arm-linux-androideabi-cpp',
'--CPPFLAGS=--sysroot=' + ndkroot + 'platforms/android-8/arch-arm', '--CPPFLAGS=--sysroot=' + ndkroot + 'platforms/android-8/arch-arm',
'--CXX=' + ndkbin + 'arm-linux-androideabi-g++', '--CXX=' + ndkbin + 'arm-linux-androideabi-g++',
'--CXXFLAGS=--sysroot=' + ndkroot + 'platforms/android-8/arch-arm -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fdata-sections -ffunction-sections -fPIC -Wno-psabi -frtti -fexceptions -mthumb -O3 -fomit-frame-pointer -DNDEBUG -fPIC -isystem ' + ndkroot + 'platforms/android-8/arch-arm/usr/include -isystem ' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include -isystem ' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include -lstdc++', '--CXXFLAGS=--sysroot=' + ndkroot + 'platforms/android-8/arch-arm -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fdata-sections -ffunction-sections -fPIC -Wno-psabi -frtti -fexceptions -mthumb -O3 -fomit-frame-pointer -DNDEBUG -fPIC -isystem ' + ndkroot + 'platforms/android-8/arch-arm/usr/include -isystem ' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include -isystem ' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include -lstdc++ -I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/ -I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/backward -I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include',
'--LDFLAGS= -L' + ndklibs + 'armeabi-v7a -L' + ndklibs2 + ' -lm', '--LDFLAGS= -L' + ndklibs + 'armeabi-v7a -L' + ndklibs2 + ' -lm',
'--LD_SHARED=' + ndkbin + 'arm-linux-androideabi-ld', '--LD_SHARED=' + ndkbin + 'arm-linux-androideabi-ld',
'--download-blacs=0', '--CLINKER=' + ndkbin + 'arm-linux-androideabi-gcc',
'--download-mumps=0',
'--download-parmetis=0',
'--download-scalapack=0',
'--download-umfpack=0',
'--known-bits-per-byte=8', '--known-bits-per-byte=8',
'--known-endian=little', '--known-endian=little',
'--known-level1-dcache-assoc=1', '--known-level1-dcache-assoc=1',
...@@ -48,11 +54,11 @@ if __name__ == '__main__': ...@@ -48,11 +54,11 @@ if __name__ == '__main__':
'--with-mpi=0', '--with-mpi=0',
'--with-shared-libraries=1', '--with-shared-libraries=1',
'--with-x=0', '--with-x=0',
'-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/include/', '-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/',
'-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/include/backward', '-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/backward',
'-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/libs/armeabi/include', '-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include',
'-lstdc++', '-lstdc++',
'-with-batch=1', '-with-batch=1',
'PETSC_ARCH=armv7-android-linux', 'PETSC_ARCH=android_real',
] ]
configure.petsc_configure(configure_options) configure.petsc_configure(configure_options)
#!/opt/local/bin/python #!/Users/geuzaine/anaconda/bin/python
if __name__ == '__main__': if __name__ == '__main__':
import sys import sys
import os import os
...@@ -6,9 +6,9 @@ if __name__ == '__main__': ...@@ -6,9 +6,9 @@ if __name__ == '__main__':
import configure import configure
configure_options = [ configure_options = [
'--CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', '--CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang',
'--CFLAGS=-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.0', '--CFLAGS=-DPETSC_BLASLAPACK_UNDERSCORE -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -miphoneos-version-min=7.0',
'--CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++', '--CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++',
'--CXXFLAGS=-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.0', '--CXXFLAGS=-DPETSC_BLASLAPACK_UNDERSCORE -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -miphoneos-version-min=7.0',
'--known-bits-per-byte=8', '--known-bits-per-byte=8',
'--known-endian=little', '--known-endian=little',
'--known-level1-dcache-assoc=1', '--known-level1-dcache-assoc=1',
...@@ -25,17 +25,17 @@ if __name__ == '__main__': ...@@ -25,17 +25,17 @@ if __name__ == '__main__':
'--known-sizeof-size_t=8', '--known-sizeof-size_t=8',
'--known-sizeof-void-p=8', '--known-sizeof-void-p=8',
'--with-batch=1', '--with-batch=1',
'--with-blas-lib=/path/to/libf2cblas.a', '--with-blas-lib=/Users/geuzaine/src/gmsh/contrib/mobile/frameworks_ios/petsc.framework/libf2cblas.a',
'--with-clanguage=cxx', '--with-clanguage=cxx',
'--with-cmake=1', '--with-cmake=1',
'--with-debugging=0', '--with-debugging=0',
'--with-fc=0', '--with-fc=0',
'--with-lapack-lib=/path/to/libf2clapack.a', '--with-ios=1',
'--with-lapack-lib=/Users/geuzaine/src/gmsh/contrib/mobile/frameworks_ios/petsc.framework/libf2clapack.a',
'--with-mpi=0', '--with-mpi=0',
'--with-parmetis=0',
'--with-scalapack=0',
'--with-shared-libraries=0', '--with-shared-libraries=0',
'--with-ssl=0',
'--with-x=0', '--with-x=0',
'PETSC_ARCH=arm64-unknown-darwin', 'PETSC_ARCH=ios_real',
] ]
configure.petsc_configure(configure_options) configure.petsc_configure(configure_options)
...@@ -36,7 +36,7 @@ if [ ! -d "$gmsh_svn/build_android" ] || [ ! -f "$gmsh_svn/build_android/CMakeCa ...@@ -36,7 +36,7 @@ if [ ! -d "$gmsh_svn/build_android" ] || [ ! -f "$gmsh_svn/build_android/CMakeCa
mkdir $gmsh_svn/build_android mkdir $gmsh_svn/build_android
fi fi
cd $gmsh_svn/build_android cd $gmsh_svn/build_android
cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_SHARED=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DBLAS_LIB="$petsc_lib/libf2cblas.so" -DLAPACK_LIB="$petsc_lib/libf2clapack.so" .. cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_SHARED=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 -DBLAS_LIB="$petsc_lib/libf2cblas.so" -DLAPACK_LIB="$petsc_lib/libf2clapack.so" ..
check check
make androidGmsh -j$cmake_thread make androidGmsh -j$cmake_thread
check check
......
...@@ -29,7 +29,7 @@ function build_gmsh { ...@@ -29,7 +29,7 @@ function build_gmsh {
mkdir $gmsh_svn/build_ios_$1 mkdir $gmsh_svn/build_ios_$1
fi fi
cd $gmsh_svn/build_ios_$1 cd $gmsh_svn/build_ios_$1
cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DCMAKE_OSX_ARCHITECTURES="$1" .. cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 -DCMAKE_OSX_ARCHITECTURES="$1" ..
check check
$build_cmd $build_cmd
check check
......
...@@ -17,7 +17,7 @@ function build_gmsh { ...@@ -17,7 +17,7 @@ function build_gmsh {
mkdir $gmsh_svn/build_iossimulator mkdir $gmsh_svn/build_iossimulator
fi fi
cd $gmsh_svn/build_iossimulator cd $gmsh_svn/build_iossimulator
cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 .. cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 ..
$build_cmd $build_cmd
$headers_cmd $headers_cmd
cd - cd -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment