Sunday, August 2, 2009

QtiPlot

QtiPlot is a great full featured open source alternative to Origin. It is free for the linux platform but for OS X and windows 32 a fee of 20-50 euros is required for access to the binaries. In the spirit of open source I decided to compile it myself. After failing a few times I investigated compiling it via macports. Again the process failed with an error relating to python scripts. The following workaround details how to disable python scripting and successfully install qtiplot on osx using macports.

1. Install macports from the macports website.
2. Open Terminal and issue the following command
sudo port install qtiplot (all the dependencies should install however the qtiplot build will fail)

3. Remove the qtiplot download with the following command
sudo port clean qtiplot
4. Fetch the qtiplot archive
sudo port fetch qtiplot
5. Configure the qtiplot install
sudo port configure qtilot
This will extract the qtiplot files

6. Navigate to the qtiplot folder in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qtiplot/work/qtiplot-XXX/qtiplot

7. Open qtiplot.pro with TextEdit and comment out the # SCRIPTING_LANGS += Python line with a #

8. Return to the Terminal and issue
sudo port build qtiplot

9. Install qtiplot with
sudo port destroot qtiplot

10. Finally issue the following command to install qtiplot in /Applications/Macports

sudo port install qtiplot

3 comments:

  1. Hi there,
    This post gave me some hope of being able to fix the problem with qtiplot via macports. I followed your suggestions until Step 5 however, the terminal comes up with the same old message of "---> Building qt4-mac" and hangs indefinitely. Furthermore, the end of Step 4 was rather abrupt:
    ---> Computing dependencies for qtiplot
    ---> Fetching qtiplot
    ---> Attempting to fetch qtiplot-0.9.7.6.tar.bz2 from http://download.berlios.de/qtiplot/
    Without any further update on the status, my bash prompt came up again.

    If you have any suggestions or thoughts, I would greatly appreciate it!

    Thanks a bunch.

    ReplyDelete
  2. Close all programs (except Terminal) and wait. It took me some time to build "qt4-mac". Be patient.
    Thanks Chris for a nice tutorial.

    ReplyDelete
  3. Hi Guys,

    Sorry for my slow response here. Great to see it has been some help to you. I think void is right the compile is long you just have to give it some time. If you want to send me the output of your terminal maybe I can offer some suggestions. You can also have a go at compiling sci davis. I think you can compile directly from their source without going through macports.

    Best wishes

    Chris

    ReplyDelete