Code Monkey home page Code Monkey logo

Comments (11)

scpeters avatar scpeters commented on May 12, 2024

For reference, the installed examples folder has a bin/ with executable binaries and two folders that contain the C++ source code of the examples. My guess would be to put it somewhere under share/simbody, but I expect there is a policy for it that I don't know about.

from simbody.

sherm1 avatar sherm1 commented on May 12, 2024

Is that on Ubuntu? Where does the examples directory end up?

from simbody.

scpeters avatar scpeters commented on May 12, 2024

The examples directory ends up at ${CMAKE_INSTALL_PREFIX}/examples and it contains 3 folders:

$ ls examples/
bin  simmath  src

This is both for mac and ubuntu for me. Note that I used homebrew for the mac build:

brew tap osrf/simulation
brew install simbody --HEAD

from simbody.

sherm1 avatar sherm1 commented on May 12, 2024

Does that mean by default on Debian it would end up in /usr/examples? That seems bad! The default on Mac puts it in /usr/local/examples which still seems like the wrong place.

from simbody.

chrisdembia avatar chrisdembia commented on May 12, 2024

I'd think it'd go somewhere in /usr/share/simbody.

On Thu, Dec 12, 2013 at 5:19 PM, Michael Sherman
[email protected]:

Does that mean by default on Debian it would end up in /usr/examples? That
seems bad! The default on Mac puts it in /usr/local/examples which still
seems like the wrong place.


Reply to this email directly or view it on GitHubhttps://github.com//issues/82#issuecomment-30478877
.

from simbody.

j-rivero avatar j-rivero commented on May 12, 2024

I would say that the usual place is under /usr/share/doc/$package_name/examples. Easy to get using $CMAKE_INSTALL_DOCDIR.

from simbody.

scpeters avatar scpeters commented on May 12, 2024

Currently the examples aren't installed on Ubuntu due to Jose's configuration of the debian install files.

from simbody.

thomas-moulard avatar thomas-moulard commented on May 12, 2024

Here is the Debian policy regarding examples:
http://www.debian.org/doc/debian-policy/ch-docs.html#s12.6

12.6 Examples

Any examples (configurations, source files, whatever), should be installed in a directory /usr/share/doc/package/examples. These files should not be referenced by any program: they're there for the benefit of the system administrator and users as documentation only. Architecture-specific example files should be installed in a directory /usr/lib/package/examples with symbolic links to them from /usr/share/doc/package/examples, or the latter directory itself may be a symbolic link to the former.

If the purpose of a package is to provide examples, then the example files may be installed into /usr/share/doc/package.

Please note that sources must be in share whereas binaries should be in lib.

from simbody.

chrisdembia avatar chrisdembia commented on May 12, 2024

Can you clarify about your last comment? Compiled examples go in
/usr/lib?

On Thu, Dec 12, 2013 at 5:41 PM, Thomas Moulard [email protected]:

Here is the Debian policy regarding examples:
http://www.debian.org/doc/debian-policy/ch-docs.html#s12.6

12.6 Examples

Any examples (configurations, source files, whatever), should be installed in a directory /usr/share/doc/package/examples. These files should not be referenced by any program: they're there for the benefit of the system administrator and users as documentation only. Architecture-specific example files should be installed in a directory /usr/lib/package/examples with symbolic links to them from /usr/share/doc/package/examples, or the latter directory itself may be a symbolic link to the former.

If the purpose of a package is to provide examples, then the example files may be installed into /usr/share/doc/package.

Please note that sources must be in share whereas binaries should be in
lib.


Reply to this email directly or view it on GitHubhttps://github.com//issues/82#issuecomment-30479877
.

from simbody.

scpeters avatar scpeters commented on May 12, 2024

I think he meant that they go in /usr/lib/simbody/examples, and that that folder is also symlinked to /usr/share/doc/simbody/examples.

from simbody.

thomas-moulard avatar thomas-moulard commented on May 12, 2024

Yes, exactly. The most important point is: no architecture dependent files in share (i.e. no compiled files).

from simbody.

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.