Skip to content
Snippets Groups Projects
Commit 4b9284d9 authored by Boman Romain's avatar Boman Romain
Browse files

remove unused files

parent e87876c4
No related branches found
No related tags found
No related merge requests found
Pipeline #7192 passed
@echo off
::echo cmake.exe -G "MinGW Makefiles" %*
cmake.exe -G "MinGW Makefiles" %*
\ No newline at end of file
# This file setup an environment which allows you to compile the code
# on Linux or macOS using the default compiler (gcc or clang)
#
# HOW TO USE THIS FILE?
# open a terminal
# source ./envs/linux-macos.sh
# mkdir build
# cd build
# cmake ..
# make
# [executables are built in the bin/ folder]
# ctest
# try to get the absolute path of root folder
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd && echo x)"; DIR="${DIR%x}"
abspath=$(dirname $DIR )
#echo "abspath=${abspath}"
# set the location of gmsh SDK ( **MODIFY THIS LINE FOR YOUR SYSTEM** )
GMSHSDK=${abspath}/lib/gmsh-sdk
EIGEN=${abspath}/lib/eigen
# where are gmsh and gmsh-**.so ?
export PATH=${GMSHSDK}/bin:${GMSHSDK}/lib:${PATH}
# where is gmsh.h ?
export INCLUDE=${EIGEN}:${GMSHSDK}/include:${INCLUDE}
# where is gmsh.lib ?
export LIB=${GMSHSDK}/lib:${LIB}
# where is gmsh.py ? (required only if you want to use the python API)
export PYTHONPATH=${GMSHSDK}/lib:${PYTHONPATH}
# the following command is only useful for macOS
export DYLD_LIBRARY_PATH=${GMSHSDK}/lib:${DYLD_LIBRARY_PATH}
@echo off
mingw32-make.exe %*
\ No newline at end of file
eigen/
gmsh-sdk/
\ No newline at end of file
# ./lib
This folder contains scripts for downloading the 2 external libraries that are required for this project.
\ No newline at end of file
::@echo off
:: download eigen & extract to current folder
set version=3.3.9
set file=eigen-%version%.zip
:: download file
del %file% >nul 2>&1
bitsadmin /transfer get_eigen /dynamic /download /priority foreground "https://gitlab.com/libeigen/eigen/-/archive/%version%/%file%" "%CD%\%file%"
:: unzip
rd /Q/S eigen-%version% >nul 2>&1
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('%CD%\%file%', '%CD%'); }"
del %file% >nul 2>&1
:: rename folder
rd /Q/S eigen >nul 2>&1
ren eigen-%version% eigen
#!/bin/bash
set -e
VERSION=3.3.9
wget -q https://gitlab.com/libeigen/eigen/-/archive/${VERSION}/eigen-${VERSION}.tar.gz
tar xzf eigen-${VERSION}.tar.gz
rm eigen-${VERSION}.tar.gz
rm -rf eigen
mv eigen-${VERSION} eigen
::@echo off
:: download gmsh-sdk & extract to current folder
set version=4.10.2
set gmsh=gmsh-%version%-Windows64-sdk
set file=%gmsh%.zip
:: download file
del %file% >nul 2>&1
bitsadmin /transfer get_gmsh /dynamic /download /priority foreground "https://gmsh.info/bin/Windows/%file%" "%CD%\%file%"
:: unzip
rd /Q/S %gmsh% >nul 2>&1
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('%CD%\%file%', '%CD%'); }"
del %file% >nul 2>&1
:: rename folder
rd /Q/S gmsh-sdk >nul 2>&1
ren %gmsh% gmsh-sdk
:: copy dll to bin folder so that double-clic on gmsh.exe works!
move /Y gmsh-sdk\lib\gmsh-*.dll gmsh-sdk\bin\
:: IMPORTANT NOTE: do not leave gmsh-*.dll next to *.py because gmsh.py
:: will try to load this one first.
:: However any C++ program will prefer gmsh-*.dll in the bin folder
:: => any combined python/C++ program will load both copies in memory
:: => C++ calls and python call will not operate on the same memory.
\ No newline at end of file
#!/bin/bash
set -e
# VERSION=4.9.3
VERSION=4.10.2
if [[ "$OSTYPE" == "linux-gnu" ]]; then
wget -q https://gmsh.info/bin/Linux/gmsh-${VERSION}-Linux64-sdk.tgz
tar xzf gmsh-${VERSION}-Linux64-sdk.tgz
rm gmsh-${VERSION}-Linux64-sdk.tgz
rm -rf gmsh-sdk
mv gmsh-${VERSION}-Linux64-sdk gmsh-sdk
elif [[ "$OSTYPE" == "darwin"* ]]; then
wget -q https://gmsh.info/bin/MacOSX/gmsh-${VERSION}-MacOSX-sdk.tgz
tar xzf gmsh-${VERSION}-MacOSX-sdk.tgz
rm gmsh-${VERSION}-MacOSX-sdk.tgz
rm -rf gmsh-sdk
mv gmsh-${VERSION}-MacOSX-sdk gmsh-sdk
else
echo "unknown system"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment