Skip to content

Commit 79e3096

Browse files
authored
Merge pull request #21 from pariterre/master
move toward conda-forge
2 parents 0b956e9 + ff8db22 commit 79e3096

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

.travis.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ matrix:
55
dist: bionic
66
compiler: gcc
77
env:
8-
- COMPILER=g++-5
8+
- COMPILER=gcc
99
- os: osx
1010
osx_image: xcode7.2
1111
compiler: gcc
1212
env:
13-
- COMPILER=g++-7
13+
- COMPILER=xcode7.2
1414
- os: windows
15+
env:
16+
- VS
1517

1618

1719
before_install:
@@ -36,13 +38,14 @@ before_install:
3638
- conda config --set auto_update_conda no
3739
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then conda update -q conda; fi
3840
- source activate
41+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
42+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
43+
sudo apt update;
44+
sudo apt install gcc-6 g++-6 -y;
45+
fi
3946

4047
install:
41-
# Install test packages for Python3
42-
- conda install python pytest numpy swig
43-
- conda install boost eigen
44-
- conda install lapack -c conda-forge
45-
- conda install dlib rbdl -cpyomeca
48+
- conda install boost eigen rbdl dlib-cpp lapack numpy pytest swig -c conda-forge
4649
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
4750
conda install lcov -c conda-forge;
4851
fi

example/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ add_dependencies(${PROJECT_NAME} ${MASTER_PROJECT_NAME})
55

66
# Headers
77
target_include_directories(${PROJECT_NAME} PUBLIC
8-
${CMAKE_CURRENT_SOURCE_DIR}/../include
8+
${Matlab_INCLUDE_DIRS}
9+
${RBDL_INCLUDE_DIR}
10+
${RBDL_INCLUDE_DIR}/..
911
${Boost_INCLUDE_DIRS}
1012
${EIGEN3_INCLUDE_DIR}
11-
${RBDL_INCLUDE_DIR}
13+
${DLIB_INCLUDE_DIR}
14+
${CMAKE_CURRENT_SOURCE_DIR}/../include
1215
)
1316

1417
# Libraries linker

example/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ int main()
1919
s2mMusculoSkeletalModel m3("pyomecaman.bioMod");
2020
s2mGenCoord Q(m3);
2121
s2mGenCoord QDDot(m3);
22+
Q.setZero();
2223
s2mTau T(m3);
24+
T.setZero();
2325

2426
RigidBodyDynamics::ForwardDynamicsConstraintsDirect(m3, Q, Q, T, m3.getConstraints(m3),QDDot);// Forward dynamics
2527
int i = 0;

modules/FindDlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ find_path (DLIB_INCLUDE_DIR "dlib/algs.h"
1515

1616
if(WIN32)
1717
# For some reason find_library won't find dlib with only "dlib" name, it must have the full previously unknown name
18-
FILE(GLOB LibPath ${CMAKE_INSTALL_PREFIX}/lib/dlib*)
18+
FILE(GLOB LibPath ${CMAKE_INSTALL_PREFIX}/Library/lib/dlib*)
1919
get_filename_component(LibNames ${LibPath} NAME)
2020
find_library (DLIB_LIBRARY
2121
NAMES ${LibNames}

modules/FindRBDL.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ FIND_PATH (RBDL_INCLUDE_DIR rbdl.h
2222
$ENV{RBDL_INCLUDE_PATH}
2323
)
2424
FIND_LIBRARY (RBDL_LIBRARY NAMES rbdl PATHS
25-
/usr/lib
26-
/usr/local/lib
27-
${CMAKE_INSTALL_PREFIX}
28-
$ENV{HOME}/local/lib
25+
/usr/lib
26+
/usr/local/lib
27+
/usr/local/lib64
28+
${CMAKE_INSTALL_PREFIX}
29+
${CMAKE_INSTALL_PREFIX}/lib
30+
${CMAKE_INSTALL_PREFIX}/lib64
31+
$ENV{HOME}/local/lib
32+
$ENV{HOME}/local/lib64
2933
$ENV{RBDL_PATH}
3034
$ENV{RBDL_LIBRARY_PATH}
3135
)

0 commit comments

Comments
 (0)