Giter Club home page Giter Club logo

Comments (6)

fperignon avatar fperignon commented on June 8, 2024

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.

radarsat1 avatar radarsat1 commented on June 8, 2024

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.

fperignon avatar fperignon commented on June 8, 2024

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.

radarsat1 avatar radarsat1 commented on June 8, 2024

Seems you were right, a good cleaning solved the problem.. thanks ;)

from siconos.

vacary avatar vacary commented on June 8, 2024

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.

vacary avatar vacary commented on June 8, 2024

Fix in 09eb4dd5bf78e42e0da0578048b9b647e2a8b117.

thanks

from siconos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.