Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move toward conda-forge #21

Merged
merged 24 commits into from
Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ matrix:
dist: bionic
compiler: gcc
env:
- COMPILER=g++-5
- COMPILER=gcc
- os: osx
osx_image: xcode7.2
compiler: gcc
env:
- COMPILER=g++-7
- COMPILER=xcode7.2
- os: windows
env:
- VS


before_install:
Expand All @@ -36,13 +38,14 @@ before_install:
- conda config --set auto_update_conda no
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then conda update -q conda; fi
- source activate
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
sudo apt update;
sudo apt install gcc-6 g++-6 -y;
fi

install:
# Install test packages for Python3
- conda install python pytest numpy swig
- conda install boost eigen
- conda install lapack -c conda-forge
- conda install dlib rbdl -cpyomeca
- conda install boost eigen rbdl dlib-cpp lapack numpy pytest swig -c conda-forge
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
conda install lcov -c conda-forge;
fi
Expand Down
7 changes: 5 additions & 2 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ add_dependencies(${PROJECT_NAME} ${MASTER_PROJECT_NAME})

# Headers
target_include_directories(${PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../include
${Matlab_INCLUDE_DIRS}
${RBDL_INCLUDE_DIR}
${RBDL_INCLUDE_DIR}/..
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${RBDL_INCLUDE_DIR}
${DLIB_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../include
)

# Libraries linker
Expand Down
2 changes: 2 additions & 0 deletions example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ int main()
s2mMusculoSkeletalModel m3("pyomecaman.bioMod");
s2mGenCoord Q(m3);
s2mGenCoord QDDot(m3);
Q.setZero();
s2mTau T(m3);
T.setZero();

RigidBodyDynamics::ForwardDynamicsConstraintsDirect(m3, Q, Q, T, m3.getConstraints(m3),QDDot);// Forward dynamics
int i = 0;
Expand Down
2 changes: 1 addition & 1 deletion modules/FindDlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ find_path (DLIB_INCLUDE_DIR "dlib/algs.h"

if(WIN32)
# For some reason find_library won't find dlib with only "dlib" name, it must have the full previously unknown name
FILE(GLOB LibPath ${CMAKE_INSTALL_PREFIX}/lib/dlib*)
FILE(GLOB LibPath ${CMAKE_INSTALL_PREFIX}/Library/lib/dlib*)
get_filename_component(LibNames ${LibPath} NAME)
find_library (DLIB_LIBRARY
NAMES ${LibNames}
Expand Down
12 changes: 8 additions & 4 deletions modules/FindRBDL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ FIND_PATH (RBDL_INCLUDE_DIR rbdl.h
$ENV{RBDL_INCLUDE_PATH}
)
FIND_LIBRARY (RBDL_LIBRARY NAMES rbdl PATHS
/usr/lib
/usr/local/lib
${CMAKE_INSTALL_PREFIX}
$ENV{HOME}/local/lib
/usr/lib
/usr/local/lib
/usr/local/lib64
${CMAKE_INSTALL_PREFIX}
${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64
$ENV{HOME}/local/lib
$ENV{HOME}/local/lib64
$ENV{RBDL_PATH}
$ENV{RBDL_LIBRARY_PATH}
)
Expand Down