Windows Support Australia

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 20 April 2013

Mixing C++ and python code in your omegalib application

Posted on 15:39 by Unknown

Capture

In omegalib, Applications can be developed as standalone executables in C++ or as scripts in Python. Omegalib also supports mixed native/script applications with user-defined C++ modules that can be exposed to Python through a simple declarative interface. When needed you can build part of your program using C++ and turn that into a python module integrating the omegalib API. You can then import this module into python using import moduleName and use some of its exposed interfaces.

Assuming you have an omegalib installation on our machine, you can find it using the CMake command find_package(Omegalib). The command will add a new variable to your cmake configuration asking for the path to the omegalib build dir. After setting that, you will have a set of standard variables defined (OMEGA_INCLUDE_DIRS, OMEGA_LIB, OMEGA_TOOLKIT_LIB, CYCLOPS_LIB) that you can use to set header files and libraries for your project).

After building, the project will output a .so or .pyd file (depending on the platform). You will be able to import this module into a python omegalib script launcher through orun. C++ classes and methods are exposed using a module declaration section in your source file. The module declaration lists all the classes and methods you want to expose, together with some minimal information about how they work.

Red more about mixed-code programming for omegalib here

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in omegalib | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Omegalib 4.2 released!
    This version greatly improves the speed of user-centered stereo tracking in cluster installations. The Equalizer/omegalib interface and re...
  • Distributed Sum on a 2D mesh using MPI
    For a recent class project, we had to implement an algorithm to sum an array of integers on a computer cluster. This problem is one of the e...
  • Google Chrome vulnerable to carpet-bombing flaw
    Google Chrome vulnerable to carpet-bombing flaw Google’s shiny new Web browser is vulnerable to a carpet-bombing vulnerability that could ex...
  • A New CAVE2 Trailer
    This video shows some of the applications we are running on our brand new CAVE2 hybrid reality system.
  • ENDURANCE Final Update
    Work on the ENDURANCE project has ended. The final data products consisted in an updated bathymetry model for the entire west lake bonney, u...
  • Using Kinect for 3D video capture
    (Thanks for the link, Jakub)
  • CAVE2 on TIME online: Using 3D Worlds to Visualize Data
    "Take a walk through a human  brain ? Fly over the surface of Mars? Computer scientists at the University of Illinois at Chicago are pu...
  • Website Update: Atomz
    A new section has been added to the website: 24Hour Games The 24H Games project is an experiment in gameplay design and developement. Its ma...
  • Tech Meeting Updates
    omegalib / CAVE2 improved few things with cylindrical config support now changing a couple of parameters (start angle, number of tiles) it i...
  • How to Prototype a Game in Under 7 Days: Tips and Tricks from 4 Grad Students Who Made Over 50 Games in 1 Semester
    Some days ago I stumbled upon an interesting article on rapid game prototyping. Read the original article here . Some of the guidelines th...

Categories

  • 3D
  • CAVE2
  • Edanarion
  • ENDURANCE
  • Flash
  • Game Heuristics
  • Games
  • HCI
  • Hydroviz
  • MotoGP08
  • MPI
  • News
  • Nintendo DS
  • OmegaDesk
  • omegali
  • omegalib
  • Papervision
  • QbViz
  • Tech Meeting
  • Visualization
  • VR

Blog Archive

  • ▼  2013 (31)
    • ►  November (2)
    • ►  October (2)
    • ►  September (2)
    • ►  August (1)
    • ►  June (4)
    • ►  May (3)
    • ▼  April (4)
      • broadcastCommand, a.k.a visualizing Kittens on a C...
      • Mixing C++ and python code in your omegalib applic...
      • omegalib 3.6 released
      • Parallel Gaussian Elimination Using MPI
    • ►  March (6)
    • ►  February (4)
    • ►  January (3)
  • ►  2012 (8)
    • ►  December (3)
    • ►  November (2)
    • ►  August (3)
  • ►  2011 (2)
    • ►  November (1)
    • ►  January (1)
  • ►  2010 (4)
    • ►  November (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2009 (5)
    • ►  September (1)
    • ►  June (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2008 (22)
    • ►  December (1)
    • ►  October (4)
    • ►  September (6)
    • ►  June (2)
    • ►  May (3)
    • ►  April (1)
    • ►  March (2)
    • ►  January (3)
  • ►  2007 (16)
    • ►  December (2)
    • ►  November (3)
    • ►  October (4)
    • ►  September (7)
Powered by Blogger.

About Me

Unknown
View my complete profile