Skip to content

PetriNuts/snoopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

573 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snoopy

Needed Software / Libraries

Setting up the development environment

Expected duration: about one day

Windows

Microsoft Visual Studio 2015 Installer Projects

link

Compilation Guide

This is work in Progress!!!

  1. needed environment variables
    $SPSA_STEERINGAPI = path of SPSA_SteeringAPI
    $SP_SIMULATOR = path of SP_Simulator
    $DSSD_UTIL = path of dssd_util library $WXWIN = path of wxWidgets
    $OGL = path of ogl
    $FREECHART = path of freechart
    $BOOST_ROOT = path of boost
    $OGDF = path of OGDF
    $XERCESCROOT = path of xerces
    $LIBSBML = path of SBML
    $IRRKLANG = path of IrrKlang
    $CVODE = path of sundials library
    $GECODEDIR = path of gecode library
    $GMPDIR = path of gmp/mpir library

  2. wxWidgets

    1. download wxWidgets 1.* from wxWidgets Homepage and unpack it into "~/workspace"
    2. modify: ($WXWIN)\include\wx\msw\setup.h
      #define wxUSE_STL 1
      #define wxUSE_UNICODE 1
      #define wxUSE_POSTSCRIPT 1
      #define wxUSE_GRAPHICS_CONTEXT 1
    3. for compiling wxWidgets as 64-bit check link
    4. open ($WXWIN)\build\msw\wx_vc14.sln
    5. build solution for x64 as Debug DLL and Release DLL
  3. OGL

    1. get ogl
      git clone https://github.com/PetriNuts/ogl.git
    2. open ($OGL)\build\ogl_vc14.sln
    3. build ogl for x64 as Debug and Release
  4. freechart

    1. get freechart
      git clone https://github.com/PetriNuts/freechart.git
    2. open ($FREECHART)\build\wxfreechart_vc14.sln
    3. build freechart for x64 as Debug and Release
  5. LibSBML

    1. download Xerces-c and unpack it into "~/workspace"
    2. build xerceslib for x64 as Release und Debug
    3. download LibSBML and unpack it into "~/workspace"
    4. create a folder build
    5. use cmake to create visual studio project files
    6. open ($LIBSBML)\build\libsbml.sln
    7. build ALL_BUILD for x64 as Release und Debug
  6. OGDF

    1. download OGDF and unpack it into "~/workspace"
    2. create a folder build
    3. use cmake to create visual studio project files
    4. open ($OGDF)\build\ogdf.sln
    5. use cmake to create visual studio project files
    6. build ALL_BUILD for x64 as Release und Debug
  7. Irrklang

    1. download Irrklang and unpack it into "~/workspace"
  8. Boost

    1. download boost and unpack it into "~/workspace"
    2. open command line at $BOOST_ROOT
    3. call bjam
    4. call b2 threading=multi architecture=x86 address-model=64 link=static
  9. MPIR

    1. download MPIR and unpack it into "~/workspace"
    2. open ($GMPDIR)\build.vc14\mpir.sln
    3. build lib_mpir_core2 for x64 as Debug and Release
  10. Sundials

    1. download sundials and unpack it into "~/workspace"
    2. create a folder build
    3. use cmake to create visual studio project files
    4. open ($CVODE)\build\sundials.sln
    5. build ALL_BUILD for x64 as Release und Debug
  11. Gecode

    1. download Gecode and unpack it into "~/workspace"
    2. create a folder build
    3. use cmake to create visual studio project files
    4. open ($GECODEDIR)\build\gecode.sln
    5. build ALL_BUILD for x64 as Release und Debug
  12. dssd_util

    1. get dssd_util
      git clone https://github.com/PetriNuts/dssd_util.git
    2. create a folder build cd build
    3. use cmake to create visual studio project files cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
    4. open ($DSSD_UTIL)\build\dssd_util.sln
    5. build ALL_BUILD for x64 as Release und Debug
  13. SPSA_SteeringAPI

    1. get SPSA_SteeringAPI
      git clone https://github.com/PetriNuts/SPSA_SteeringAPI.git
    2. open ($SPSA_STEERINGAPI)\SPSA_STEERINGAPI.sln
    3. build solution for x64 as Debug and Release
  14. SP_Simulator

    1. get SP_Simulator
      git clone https://github.com/PetriNuts/SP_Simulator.git
    2. open ($SP_Simulator)\Snoopy Simulator.sln
    3. build *solution *for x64 as Debug and Release
  15. Snoopy

    1. get Snoopy
      git clone https://github.com/PetriNuts/snoopy.git
    2. open ($Snoopy)\SnoopyVC.sln
    3. build solution for x64 as Debug and Release
    4. To use dynamic link(DLL), you can either copy the DLLs to Snoopy folder or as a more general way add the path of the Dlls to your windows PATH in the environment variable e.g (PATH=D:\workspace\Steering\Snoopy Simulator\lib\lib_win\debug\DLL) so that you do not need to copy the DLLs each time they are changed. Do not forget to add both the debug and the release paths

Mac OSX

Compilation Guide

This is work in Progress!!!

Build-Guide for Snoopy to compile under Mac OS X

  1. download and install xcode, if you not already have

  2. download and install eclipse, and select as your workspace "/workspace", where "" means your home directory

    • If incremental build is not working anymore, check out this webpage.
  3. download and install clion, and select as your workspace "/workspace", where "" means your home directory

  4. wxWidgets

    1. download wxWidgets 1.* from wxWidgets Homepage and unpack it into "~/workspace"
    2. create a folder release
    3. go into release and run
      ../configure --disable-debug --enable-unicode --enable-shared --disable-static --enable-graphics_ctx --enable-std_iostreams --enable-std_string --enable-std_string_conv_in_wxstring --with-osx_cocoa --without-libjbig --without-liblzma --enable-macosx_arch=x86_64 --with-cxx=11 --disable-precomp-headers CC=cc CXX="c++ -std=c++11 -stdlib=libc++" LINK=cc LDFLAGS="-stdlib=libc++ -Wl,-install_name,@loader_path"
      make && sudo make install
    4. if you get an error during the build, check the following site
  5. OGL

    1. get ogl
      git clone https://github.com/PetriNuts/ogl.git
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11 -stdlib=libc++" LINK=cc LDFLAGS=-stdlib=libc++
      make && sudo make install
  6. freechart

    1. get freechart
      git clone https://github.com/PetriNuts/freechart.git
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11 -stdlib=libc++" LINK=cc LDFLAGS=-stdlib=libc++
      make && sudo make install
  7. LibSBML

    1. download LibSBML and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  8. OGDF

    1. download OGDF and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  9. Irrklang

    1. download Irrklang and unpack it into "~/workspace"
    2. copy the header files to /usr/local/include/ and the lib to /usr/local/lib/
  10. Boost

    1. download boost and unpack it into "~/workspace"
    2. open command line at $BOOST_ROOT and call
      ./bootstrap.sh
      ./b2 variant=release threading=multi architecture=x86 address-model=64 link=static cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" toolset=clang
      sudo ./b2 variant=release threading=multi architecture=x86 address-model=64 link=static cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" toolset=clang install
  11. Sundials

    1. clone SUNDIALS CVODE to "~/workspace" git clone https://github.com/LLNL/sundials.git
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  12. MPIR

    1. download MPIR and unpack it into "~/workspace"
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11" LINK=cc
      make && sudo make install
  13. Gecode

    1. download Gecode and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  14. dssd_util

    1. get dssd_util
      git clone https://github.com/PetriNuts/dssd_util.git
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  15. SPSA_SteeringAPI

    1. get SPSA_SteeringAPI
      git clone https://github.com/PetriNuts/SPSA_SteeringAPI.git
    2. open the project in eclipse
    3. build for Debug and Release
  16. SP_Simulator

    1. get SP_Simulator
      git clone https://github.com/PetriNuts/SP_Simulator.git
    2. open the project in eclipse
    3. build for Debug and Release
  17. Snoopy

    1. get Snoopy
      git clone https://github.com/PetriNuts/snoopy.git
    2. open the project in eclipse or clion
    3. build for Debug and Release

Debug Guide

You have got several options:

  1. Install GDB with MacPorts or Homebrew, as mentioned here or here.
  2. Use LLDB-MI from LLDB team; note that LLDB-MI does not come with the native LLDB on OS X, meaning you have to build LLDB your own with options to switch on the feature.
  3. Use third-party LLDB-MI2 (see the page for reasons why he needs another Machine Interface)

All of these three options require a lot of configuration and are error-prone.

Linux

Compilation Guide

This is work in Progress!!!

  1. check whether "/usr/local/lib" is searched by "ldconfig", if not run as root
    echo "/usr/local/lib" >> /etc/ld.so.conf.d/libc.conf
    ldconfig

  2. download and install eclipse, and select as your workspace "/workspace", where "" means your home directory

    • If incremental build is not working anymore, check out this webpage.
  3. wxWidgets

    1. download wxWidgets 1.* from wxWidgets Homepage and unpack it into "~/workspace"
    2. create a folder release
    3. go into release and run
      ../configure --disable-debug --enable-unicode --enable-shared --disable-static --enable-graphics_ctx --enable-std_iostreams --enable-std_string --enable-std_string_conv_in_wxstring --without-libjbig --without-liblzma --with-cxx=11 --disable-precomp-headers CC=cc CXX=c++ LINK=cc
      make && sudo make install
    4. if you get an error during the build, check the following site
  4. OGL

    1. get ogl
      git clone https://github.com/PetriNuts/ogl.git
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11" LINK=cc
      make && sudo make install
  5. freechart

    1. get freechart
      git clone https://github.com/PetriNuts/freechart.git
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11" LINK=cc
      make && sudo make install
  6. LibSBML

    1. download LibSBML and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  7. OGDF

    1. download OGDF and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  8. Irrklang

    1. download Irrklang and unpack it into "~/workspace"
    2. copy the header files to /usr/local/include/ and the lib to /usr/local/lib/
  9. Boost

    1. download boost and unpack it into "~/workspace"
    2. open command line at $BOOST_ROOT and call
      ./bootstrap.sh
      ./b2 variant=release threading=multi architecture=x86 address-model=64 link=static cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" toolset=clang
      sudo ./b2 variant=release threading=multi architecture=x86 address-model=64 link=static cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" toolset=clang install
  10. Sundials

    1. download sundials and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  11. MPIR

    1. download MPIR and unpack it into "~/workspace"
    2. create a folder release
    3. go into release and run
      ../configure CC=cc CXX="c++ -std=c++11" LINK=cc
      make && sudo make install
  12. Gecode

    1. download Gecode and unpack it into "~/workspace"
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  13. dssd_util

    1. get dssd_util
      git clone https://github.com/PetriNuts/dssd_util.git
    2. create a folder build
    3. go into build and run
      cmake ..
      make && sudo make install
  14. SPSA_SteeringAPI

    1. get SPSA_SteeringAPI
      git clone https://github.com/PetriNuts/SPSA_SteeringAPI.git
    2. open the project in eclipse
    3. build for Debug and Release
  15. SP_Simulator

    1. get SP_Simulator
      git clone https://github.com/PetriNuts/SP_Simulator.git
    2. open the project in eclipse
    3. build for Debug and Release
  16. Snoopy

    1. get Snoopy
      git clone https://github.com/PetriNuts/snoopy.git
    2. open the project in eclipse or clion
    3. build for Debug and Release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages