Commit d65da2b37f7fb5c8acffadbd42377bc08ad25de4
1 parent
96e26914
Exists in
centos7
Compatibility with centos7 (wip)
Showing
10 changed files
with
32 additions
and
30 deletions
Show diff stats
.gitignore
cmake/modules/FindArchive.cmake
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # libarchive_INCLUDE_DIR - the libarchive include directory |
6 | 6 | # libarchive_LIBRARIES - the libarchive library directory |
7 | 7 | |
8 | -FIND_PATH(libarchive_INCLUDE_DIR archive.h PATHS ${USERLOCAL_ROOT}/include NO_DEFAULT_PATH) | |
9 | -FIND_LIBRARY(libarchive_LIBRARIES NAMES archive PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
8 | +FIND_PATH(libarchive_INCLUDE_DIR archive.h PATHS ${USERLOCAL_ROOT}/include /usr/include/ NO_DEFAULT_PATH) | |
9 | +FIND_LIBRARY(libarchive_LIBRARIES NAMES archive PATHS ${USERLOCAL_ROOT}/lib /usr/lib64/ NO_DEFAULT_PATH) | |
10 | 10 | |
11 | 11 | # set FOUND flag |
12 | 12 | IF(libarchive_INCLUDE_DIR AND libarchive_LIBRARIES) | ... | ... |
cmake/modules/FindCSPICE.cmake
... | ... | @@ -16,7 +16,7 @@ IF(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES) |
16 | 16 | endif(NOT libcspice_FIND_QUIETLY) |
17 | 17 | ELSE(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES) |
18 | 18 | SET(libcspice_FOUND 0 CACHE BOOL "Not found libcspice library") |
19 | - message(STATUS "NOT Found libcspice, disabling it") | |
19 | + message(STATUS "NOT Found libcspice, disabling it - ${libcspice_INCLUDE_DIR}, ${libcspice_LIBRARIES}") | |
20 | 20 | ENDIF(libcspice_INCLUDE_DIR AND libcspice_LIBRARIES) |
21 | 21 | |
22 | 22 | MARK_AS_ADVANCED(libcspice_INCLUDE_DIR libcspice_LIBRARIES) | ... | ... |
cmake/modules/FindLibXML2.cmake
1 | 1 | # - Try to find LibXml2 |
2 | 2 | # Once done this will define |
3 | 3 | # LIBXML2_FOUND - System has LibXml2 |
4 | -# LIBXML2_INCLUDE_DIRS - The LibXml2 include directories | |
4 | +# LIBXML2_INCLUDE_DIR - The LibXml2 include directories | |
5 | 5 | # LIBXML2_LIBRARIES - The libraries needed to use LibXml2 |
6 | 6 | # LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2 |
7 | 7 | |
8 | -FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xinclude.h PATHS ${USERLOCAL_ROOT}/include/libxml2 NO_DEFAULT_PATH) | |
8 | +FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xinclude.h PATHS ${USERLOCAL_ROOT}/include/libxml2 /usr/include/libxml2 NO_DEFAULT_PATH) | |
9 | 9 | |
10 | -FIND_LIBRARY(LIBXML2_LIBRARIES NAMES xml2 libxml2 PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
10 | +FIND_LIBRARY(LIBXML2_LIBRARIES NAMES xml2 libxml2 PATHS ${USERLOCAL_ROOT}/lib /usr/lib64/ NO_DEFAULT_PATH) | |
11 | 11 | |
12 | 12 | IF(LIBXML2_INCLUDE_DIR AND LIBXML2_LIBRARIES) |
13 | 13 | SET(LibXML2_FOUND 1) | ... | ... |
cmake/modules/FindLog4Cxx.cmake
... | ... | @@ -25,8 +25,8 @@ |
25 | 25 | # LOG4CXX_INCLUDE_DIR - the liblog4cxx include directory |
26 | 26 | # LOG4CXX_LIBRARIES - liblog4cxx library |
27 | 27 | |
28 | -FIND_PATH(LOG4CXX_INCLUDE_DIR logger.h PATHS ${USERLOCAL_ROOT}/include/log4cxx NO_DEFAULT_PATH) | |
29 | -FIND_LIBRARY(LOG4CXX_LIBRARIES NAMES log4cxx log4cxxd PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
28 | +FIND_PATH(LOG4CXX_INCLUDE_DIR logger.h PATHS ${USERLOCAL_ROOT}/include/log4cxx /usr/include/log4cxx NO_DEFAULT_PATH) | |
29 | +FIND_LIBRARY(LOG4CXX_LIBRARIES NAMES log4cxx log4cxxd PATHS ${USERLOCAL_ROOT}/lib /usr/lib64/ NO_DEFAULT_PATH) | |
30 | 30 | |
31 | 31 | IF(LOG4CXX_INCLUDE_DIR AND LOG4CXX_LIBRARIES) |
32 | 32 | SET(Log4cxx_FOUND 1) | ... | ... |
cmake/modules/FindNetCDF.cmake
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # libnetcdf_INCLUDE_DIR - the libnetcdf include directory |
6 | 6 | # libnetcdf_LIBRARIES - the libnetcdf library directory |
7 | 7 | |
8 | -FIND_PATH(libnetcdf_INCLUDE_DIR netcdf.h PATHS ${USERLOCAL_ROOT}/include NO_DEFAULT_PATH) | |
9 | -FIND_LIBRARY(libnetcdf_LIBRARIES NAMES netcdf PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
8 | +FIND_PATH(libnetcdf_INCLUDE_DIR netcdf.h PATHS ${USERLOCAL_ROOT}/include /usr/include NO_DEFAULT_PATH) | |
9 | +FIND_LIBRARY(libnetcdf_LIBRARIES NAMES netcdf libnetcdf PATHS ${USERLOCAL_ROOT}/lib /usr/lib64 NO_DEFAULT_PATH) | |
10 | 10 | |
11 | 11 | # set FOUND flag |
12 | 12 | IF(libnetcdf_INCLUDE_DIR AND libnetcdf_LIBRARIES) | ... | ... |
cmake/modules/FindPLplot.cmake
... | ... | @@ -6,9 +6,9 @@ |
6 | 6 | # PLplot_LIBRARIES - the libplplotcxxd library directory |
7 | 7 | # QSAS_LIBRARIES - the libqsastime library directory |
8 | 8 | |
9 | -FIND_PATH(PLplot_INCLUDE_DIR plplot.h PATHS ${USERLOCAL_ROOT}/include/plplot NO_DEFAULT_PATH) | |
10 | -FIND_LIBRARY(PLplot_LIBRARIES NAMES plplotcxxd PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
11 | -FIND_LIBRARY(QSAS_LIBRARIES NAMES qsastime PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
9 | +FIND_PATH(PLplot_INCLUDE_DIR plplot.h PATHS ${USERLOCAL_ROOT}/include/plplot /usr/include/plplot NO_DEFAULT_PATH) | |
10 | +FIND_LIBRARY(PLplot_LIBRARIES NAMES plplotcxxd libplplotd PATHS ${USERLOCAL_ROOT}/lib /usr/lib64/ NO_DEFAULT_PATH) | |
11 | +FIND_LIBRARY(QSAS_LIBRARIES NAMES qsastime libqsastime PATHS ${USERLOCAL_ROOT}/lib /usr/lib64/ NO_DEFAULT_PATH) | |
12 | 12 | |
13 | 13 | # set FOUND flag |
14 | 14 | IF(PLplot_INCLUDE_DIR AND PLplot_LIBRARIES AND QSAS_LIBRARIES) | ... | ... |
cmake/modules/FindcURL.cmake
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 | # cURL_INCLUDE_DIR - the libcurl include directory |
6 | 6 | # cURL_LIBRARIES - the libcurl library directory |
7 | 7 | |
8 | -FIND_PATH(cURL_INCLUDE_DIR curl.h PATHS ${USERLOCAL_ROOT}/include/curl NO_DEFAULT_PATH) | |
9 | -FIND_LIBRARY(cURL_LIBRARIES NAMES curl PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH) | |
8 | +FIND_PATH(cURL_INCLUDE_DIR curl.h PATHS ${USERLOCAL_ROOT}/include/curl /usr/include/curl NO_DEFAULT_PATH) | |
9 | +FIND_LIBRARY(cURL_LIBRARIES NAMES curl PATHS ${USERLOCAL_ROOT}/lib /usr/lib64 NO_DEFAULT_PATH) | |
10 | 10 | |
11 | 11 | # set FOUND flag |
12 | 12 | IF(cURL_INCLUDE_DIR AND cURL_LIBRARIES) | ... | ... |
script/deploy.sh
... | ... | @@ -34,17 +34,17 @@ then |
34 | 34 | exit 1 |
35 | 35 | fi |
36 | 36 | |
37 | -if [ ! -d "$COTS_DIR/tools/gcc" ]; then | |
38 | - echo -e $usage | |
39 | - echo "[ERROR] Cannot find GCC tool directory $COTS_DIR/tools/gcc" | |
40 | - exit 1 | |
41 | -fi | |
42 | - | |
43 | -if [ ! -d "$COTS_DIR/local/lib" ]; then | |
44 | - echo -e $usage | |
45 | - echo "[ERROR] Cannot find lib directory $COTS_DIR/local/lib" | |
46 | - exit 1 | |
47 | -fi | |
37 | +#if [ ! -d "$COTS_DIR/tools/gcc" ]; then | |
38 | +# echo -e $usage | |
39 | +# echo "[ERROR] Cannot find GCC tool directory $COTS_DIR/tools/gcc" | |
40 | +# exit 1 | |
41 | +#fi | |
42 | +# | |
43 | +#if [ ! -d "$COTS_DIR/local/lib" ]; then | |
44 | +# echo -e $usage | |
45 | +# echo "[ERROR] Cannot find lib directory $COTS_DIR/local/lib" | |
46 | +# exit 1 | |
47 | +#fi | |
48 | 48 | |
49 | 49 | if [ "$DDSERVER_HOST_NAME" = "" ] |
50 | 50 | then |
... | ... | @@ -72,11 +72,12 @@ fi |
72 | 72 | export AMDA_COTS_DIR="$COTS_DIR" |
73 | 73 | export DDSERVER_HOST_NAME="$DDSERVER_HOST_NAME" |
74 | 74 | export DDSERVER_PORT="$DDSERVER_PORT" |
75 | -export LD_LIBRARY_PATH="$COTS_DIR/tools/gcc/4.7.2/rtf/lib64:$COTS_DIR/tools/gcc/4.7.2/rtf/lib:$COTS_DIR/local/lib:$LD_LIBRARY_PATH" | |
76 | -export PATH="$COTS_DIR/tools/gcc/4.7.2/rtf/bin:$COTS_DIR/local/bin:$PATH" | |
75 | +#export LD_LIBRARY_PATH="$COTS_DIR/tools/gcc/4.7.2/rtf/lib64:$COTS_DIR/tools/gcc/4.7.2/rtf/lib:$COTS_DIR/local/lib:$LD_LIBRARY_PATH" | |
76 | +#export PATH="$COTS_DIR/tools/gcc/4.7.2/rtf/bin:$COTS_DIR/local/bin:$PATH" | |
77 | 77 | |
78 | 78 | cmake -E make_directory "$SCRIPTDIR/../build" |
79 | 79 | cmake -E make_directory "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" |
80 | -cmake -E chdir "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" cmake -DCMAKE_C_COMPILER="$COTS_DIR/tools/gcc/4.7.2/rtf/bin/gcc" -DCMAKE_CXX_COMPILER="$COTS_DIR/tools/gcc/4.7.2/rtf/bin/g++" -DCMAKE_BUILD_TYPE=$KERNEL_BUILD_TYPE ../.. | |
80 | +#cmake -E chdir "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" cmake -DCMAKE_C_COMPILER="$COTS_DIR/tools/gcc/4.7.2/rtf/bin/gcc" -DCMAKE_CXX_COMPILER="$COTS_DIR/tools/gcc/4.7.2/rtf/bin/g++" -DCMAKE_BUILD_TYPE=$KERNEL_BUILD_TYPE ../.. | |
81 | +cmake -E chdir "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++" -DCMAKE_BUILD_TYPE=$KERNEL_BUILD_TYPE ../.. | |
81 | 82 | cmake --build "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" |
82 | 83 | make -C "$SCRIPTDIR/../build/$KERNEL_BUILD_TYPE" install VERBOSE=1 | ... | ... |