Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d53c9508 authored by Adrien Leman's avatar Adrien Leman Committed by hhakim
Browse files

externals lib update

parent f4da991f
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ else ( (MATIO_LIB_FILE) AND (MATIO_INC_DIR) )
exec_program("7z x ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs/${MATIO_LIB_NAME} -o${CMAKE_SOURCE_DIR}/externals/unix")
exec_program("rm -r ${CMAKE_SOURCE_DIR}/externals/unix/matio")
exec_program("mv ${CMAKE_SOURCE_DIR}/externals/unix/matio-* ${CMAKE_SOURCE_DIR}/externals/unix/matio")
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/matio && chmod -R 777 ./ && ./configure && make") # && make check
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/matio && chmod -R 777 ./ && ./configure && make --quiet") # && make check
#exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/sdk_matio && make install PREFIX='${CMAKE_SOURCE_DIR}/externals/unix/matio' ") # && make check
# NOTE WARNING : WE DON'T run make install because it is not a root user install. We used directly the lib and include in sdk_matio package.
# NOTE IF you have not 7z -->mac : brew install p7zip
......
......@@ -21,7 +21,7 @@ else ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) )
exec_program("rm -r ${CMAKE_SOURCE_DIR}/externals/unix/sdk_OpenBLAS")
exec_program("rm -r ${CMAKE_SOURCE_DIR}/externals/unix/OpenBLAS")
exec_program("mv ${CMAKE_SOURCE_DIR}/externals/unix/OpenBLAS* ${CMAKE_SOURCE_DIR}/externals/unix/sdk_OpenBLAS")
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/sdk_OpenBLAS && make TARGET=NEHALEM && make install PREFIX='${CMAKE_SOURCE_DIR}/externals/unix/OpenBLAS'")
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/sdk_OpenBLAS && make --quiet TARGET=NEHALEM && make install PREFIX='${CMAKE_SOURCE_DIR}/externals/unix/OpenBLAS'")
#exec_program(" ${CMAKE_SOURCE_DIR}/externals/unix/sdk_OpenBLAS")
elseif(WIN32)
......
......@@ -52,7 +52,6 @@ endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# Allows building executable:
#option(BUILD_EXECUTABLE "Build executable." ON)
# --> matio
# Allows building of shared libraries:
#option(BUILD_EXTERNALS_LIBS "Build externals libraries if they are not installed." ON)
# Enable testing:
......@@ -71,21 +70,20 @@ option(BUILD_USE_GPU "Using both CPU and GPU process" OFF)
option(BUILD_MATLAB_MEX_FILES "Enable building Matlab MEX files." ON)
# Using openBLAS for matrix and vector computations
option(BUILD_OPENBLAS "Using openBLAS for matrix and vector computations" OFF)
# different type of files
option(BUILD_READ_XML_FILE "Using xml configuration to read xml files" OFF)
option(BUILD_READ_MAT_FILE "Using matio library to read mat files" OFF)
#CMAKE_DEPENDENT_OPTION
###### Different option of configuration ######
#option(BUILD_TESTING "Build Tests" ON)
set(FAUST_USE_SINGLEPRECISION OFF CACHE BOOL "Using single precision instead of double precision for matrix and vector computations")
set(FAUST_USE_PROFILING OFF CACHE BOOL "Profiling the code")
#set(BUILD_MULTITHREAD OFF CACHE BOOL "OpenMP Multithreading")
#set(BUILD_VERBOSE OFF CACHE BOOL "Display useful message for debugging")
#set(BUILD_USE_GPU OFF CACHE BOOL "Using both CPU and GPU process")
#set(BUILD_DOCUMENTATION OFF CACHE BOOL "Generate html documentation with doxygen")
#set(BUILD_READ_XML_FILE OFF CACHE BOOL "Using xml configuration to read xml files")
#set(BUILD_MATLAB_MEX_FILES ON CACHE BOOL "Generate Mexfiles")
#set(BUILD_OPENBLAS OFF CACHE BOOL "Using openBLAS for matrix and vector computations")
......@@ -124,15 +122,12 @@ endif()
##################################################################
###### Enable testing: ######
include(CTest)
enable_testing()
##################################################################
###### SOURCES DIRECTORIES ######
set(FAUST_SRC_DIR ${PROJECT_SOURCE_DIR}/src CACHE INTERNAL "")
set(FAUST_SRC_LINEAR_OPERATOR_DIR ${FAUST_SRC_DIR}/faust_linear_operator CACHE INTERNAL "")
......
......@@ -48,10 +48,10 @@ Install:
2- mkdir ./build
3- cd ./build
4- cmake ..
cmake .. -DBUILD_OPENBLAS=ON
cmake .. -DCMAKE_INSTALL_PREFIX="/home/username/Faust_install"
ccmake ..
OPTION : -DBUILD_OPENBLAS=ON
-DCMAKE_INSTALL_PREFIX="/home/username/Faust_install"
ccmake ..
5- make
6- make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment