Comments (6)
Hi,
I've had the "ONLY mechanics" part because I get also build errors during kernel compilation due to OCE. The "ONLY" in compile_with just tells that OCE must be linked with mechanics component, not with the others, which was enough to fix my build ... that will be broken with your fix.
My guess is that testMultibody must not be built when OCE is not used? We need to check this.
from siconos.
Yes, I figured it was useful for something like that, but I post this as issue since I don't fully understand what to do ;) I am not certain that only testMultibody is a problem, since it doesn't directly use OCE. Rather it should be everything under "occ" and "mechanisms" that should not be compiled, no?
from siconos.
yes you're right, and I've just tried the build with the conf below and it works fine for me.
Try a clean install, maybe your libsiconoymechanics.so was previously build with occ or something like this ? Maybe you can try ldd on your libsiconos-mechanics.so to see if some unexpected linking appears.
my conf:
option(WITH_SERIALIZATION "Compilation of serialization functions. Default = OFF" OFF)
option(WITH_BULLET "compilation with Bullet Bindings. Default = OFF" OFF)
option(WITH_OCC "compilation with OpenCascade Bindings. Default = OFF" OFF)
option(WITH_MUMPS "Compilation with MUMPS solver. Default = OFF" OFF)
option(WITH_FCLIB "link with fclib when this mode is enable. Default = off." OFF)
option(WITH_FREECAD "Use FreeCAD" OFF)
option(WITH_MECHANISMS "Generation of bindings for Saladyn Mechanisms toolbox" OFF)
option(WITH_XML "Enable xml files i/o. Default = ON" ON)
Set python install mode:
- user --> behave as 'python setup.py install --user'
- standard --> install in python site-package (ie behave as python setup.py install)
- prefix --> install in python CMAKE_INSTALL_PREFIX (ie behave as python setup.py install --prefix=CMAKE_INSTALL_PREFIX)
set(siconos_python_install "user" CACHE STRING "Install mode for siconos python package")
List of components to build and installed
List of siconos component to be installed
set(COMPONENTS externals numerics kernel control mechanics CACHE INTERNAL "List of siconos components to build and install")
from siconos.
Seems you were right, a good cleaning solved the problem.. thanks ;)
from siconos.
Below you will find my conf file. With ONLY mechanics, it does not link at all with OCE. If I removed it, to works !
What you should we do ?
# ================================================================
# All the default values for siconos cmake parameters
#
# Usage:
# cmake path-to-sources
# --> to keep default value
#
# cmake path-to-sources -DWITH_PYTHON_WRAPPER=ON
# --> to enable (ON), or disable (OFF) the concerned option.
#
# For details about all these options check siconos install guide.
# ================================================================
# --------- User-defined options ---------
# Use cmake -DOPTION_NAME=some-value ... to modify default value.
option(WITH_DOCUMENTATION "Build Documentation. Default = OFF" OFF)
option(WITH_PYTHON_WRAPPER "Build python bindings using swig. Default = ON" ON)
option(WITH_DOXYGEN_WARNINGS "Explore doxygen warnings. Default = OFF" OFF)
option(WITH_DOXY2SWIG "Build swig docstrings from doxygen xml output. Default = OFF." OFF)
option(WITH_SYSTEM_INFO "Verbose mode to get some system/arch details. Default = OFF." OFF)
option(WITH_TESTING "Enable 'make test' target" OFF)
option(WITH_GIT "Consider sources are under GIT" OFF)
option(WITH_SERIALIZATION "Compilation of serialization functions. Default = OFF" OFF)
option(WITH_GENERATION "Generation of serialization functions with gccxml. Default = OFF" OFF)
option(WITH_CXX "Enable CXX compiler for numerics. Default = ON" ON)
option(WITH_UNSTABLE "Enable this to include all 'unstable' sources. Default=OFF" OFF)
option(BUILD_SHARED_LIBS "Building of shared libraries. Default = ON" ON)
option(DEV_MODE "Compilation flags setup for developpers. Default = OFF" OFF)
option(WITH_BULLET "compilation with Bullet Bindings. Default = OFF" ON)
option(WITH_OCC "compilation with OpenCascade Bindings. Default = OFF" OFF)
option(WITH_MUMPS "Compilation with MUMPS solver. Default = OFF" OFF)
option(WITH_FCLIB "link with fclib when this mode is enable. Default = OFF" ON)
option(WITH_FREECAD "Use FreeCAD. Default = OFF" OFF)
option(WITH_MECHANISMS "Generation of bindings for Saladyn Mechanisms toolbox. Default = OFF" ON)
option(WITH_XML "Enable xml files i/o. Default = ON" ON)
option(WITH_DOCKER "Build inside a docker container. Default = OFF" OFF)
# Set python install mode:
# - user --> behave as 'python setup.py install --user'
# - standard --> install in python site-package (ie behave as python setup.py install)
# - prefix --> install in python CMAKE_INSTALL_PREFIX (ie behave as python setup.py install --prefix=CMAKE_INSTALL_PREFIX)
set(siconos_python_install "user" CACHE STRING "Install mode for siconos python package")
# List of components to build and installed
# List of siconos component to be installed
# complete list = externals numerics kernel control mechanics io
set(COMPONENTS externals numerics kernel control mechanics io CACHE INTERNAL "List of siconos components to build and install")
from siconos.
Fix in 09eb4dd5bf78e42e0da0578048b9b647e2a8b117.
thanks
from siconos.
Related Issues (20)
- Problems installing siconos on Ubuntu 22.04 LTS (jammy) HOT 2
- Possible problem with contact surface / block position generation HOT 11
- Bug concerning the ds IDs saved in cf and cf_info (.hdf5 datasets) HOT 2
- Bug in contact detection related to relative orientation
- Siconos installation error when network is down HOT 1
- Bug in ADMM solver HOT 6
- error "No module named siconos.fclib" in WSL-Ubuntu terminal HOT 31
- Possible problem either in `NM_csc` or `NM_dense_to_sparse` HOT 2
- Issue color in siconos_vexport HOT 3
- cmake fails with mechanisms component HOT 1
- error "Segmentation fault" while using siconos_vview command in ubuntu 22.04 LTS Linux WSL 2 in Windows 11 HOT 5
- Merge branch 'matrix-sync-version'. gmp_TEST_NSGS_COLLECTION_1 failed
- Rock falling through simulated terrain HOT 11
- Failure to compile on macOS (Error: Unknown directive '%make_picklable'.) HOT 9
- Interface SiconosAlgebra and python numpy/scipy
- cmake failure with BULLET_INSTALL option on ubuntu 20.04 / ubuntu 22.04 HOT 1
- How to turn off _warnOnNonConvergence flag ? HOT 3
- Siconos script do not longer accept arguments of C++ file
- How to cite the Siconos documentation HOT 3
- Can I create a Julia wrapper for siconos? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siconos.