Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


ColinDuquesnoy

Member Since 11 Mar 2011
Offline Last Active Feb 26 2015 07:21 AM

Posts I've Made

In Topic: Installer for Linux?

02 July 2014 - 05:58 AM

As mentioned above, there are a few different package manager in use. You should at least support .deb, .rpm to target the most widely used distros (i.e. Ubuntu and Fedora). You can also provides packages for archlinux based distributions through the AUR.

 

For debian packages, I recommend using a PPA. There might be an equivalent service for building and distributing rpm but I personally don't know any (I am an arch linux user)

 

 

What about adding entries to their application launcher of choice (ie kickstart menu on KDE or whatever)?

 

You do that with desktop entries: http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html. This will work regardless of the desktop environment.


In Topic: Python 3 + Linux terminal

17 April 2014 - 07:13 AM

To open a new terminal from a python application you must start it in a new subprocess:

 

subprocess.Popen(['gnome-terminal', '-e'])
 
To communicate with the opened terminal you may want to use the pexpect library, it will help you write to the terminal stdin and get the terminal stdout.

 

That being said, I have no idea how you can retrieve an existing tty handle and write to its stdout.


In Topic: Documenting scripting language in application

04 April 2014 - 03:05 AM

Maybe you could have a look at sphinx?

 

This is one of the documentation tool used for python but can be used for any other languages as long as you don't require automatic extraction. 

 

You can create cross references in your documentation, you can even add custom domains to add support for DSL and the likes. You write your docs using restructuredText which is quite nice and easy to use (no to very little manual formatting).


In Topic: How to communicate between c++ and c#?

03 April 2014 - 07:34 AM

 

Use something like SWIG as Colin mentioned, it basically is automatically creating bindings for you. Personally I don't like added dependencies.

 

What dependency are you talking about? AFAIK swig does not add any runtime dependency to your bindings, it's just a tool that you can drop in your project folder, you can even invoke it automatically whenever you rebuild your c++ project and have always up to date bindings. (note that I only used swig for python bindings, not C#).


In Topic: How to communicate between c++ and c#?

03 April 2014 - 06:26 AM

Another option is to use swig to easily write some C# bindings for your C++ core engine that you can use in your WPF editor (IMHO it's way easier than writing a C++/CLI layer).


PARTNERS