×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Make GNUPLOT work on machine which dont have it

Make GNUPLOT work on machine which dont have it

Make GNUPLOT work on machine which dont have it

(OP)
Hello,
I use Fortran 95 (code blocks as IDE) with gnuplot to do some plots and all this works well on my PC which has fortran and GNUPlot installed.
I wish to distribute my program(EXE) on other windows machine which don’t have fortran or gnuplot. How do I make the plot work on a machine which doesn’t have gnuplot. I don’t mind increasing the size of my ‘EXE’ to make this happen. thanks,

RE: Make GNUPLOT work on machine which dont have it

I don't use either Fortran or GNUPlot, but according to the GNUPlot website, it is a standalone program and can be distributed freely. You should be able to just include the GNUPlot bin folder and license file (in the 7z file here: https://sourceforge.net/projects/gnuplot/files/gnu...) along with your program exe.
Alternatively you could create a Windows installer using something like Inno Setup to install everything needed: http://www.jrsoftware.org/isinfo.php

RE: Make GNUPLOT work on machine which dont have it

(OP)
thanks @JG2828, asking to install gnuplot is an option. i wish to know if i can get away with linking some libraries, and make gnuplot work from my exe, without asking people to install the gnuplot.

RE: Make GNUPLOT work on machine which dont have it

I'm not understanding what you are asking. Your code is written specifically to communicate with a GNUPLOT DLL that is your interface to the target machine's display. How is it possibly going to talk to anything else? The whole point of using GNUPLOT is that it is a containerization of the graphing routines, so the only way you can do without GNUPLOT is to directly incorporate those functions within your program, or write interfaces to other possibly non-existent graphing routines like matplotlib.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Make GNUPLOT work on machine which dont have it

RSKM,

How is your Fortran program communicating with Gnuplot? Excel, Libre Office and other spreadsheets read CSV files.

--
JHG

RE: Make GNUPLOT work on machine which dont have it

According to the gnuplot FAQs the source code is copyrighted, so the choices are limited to none. As far as I can tell there's no DLL version of gnuplot so you will have difficulty merging it into a giant executable, even if it was a library and not restricted by the copyright.

RE: Make GNUPLOT work on machine which dont have it

Stupid me trusting the gnuplot organization FAQ.

Had you looked at that FAQ you would have noted the same limitation: "The interface of this module to gnuplot versions 3.7/3.8 is going via a translation layer in Gnuplot.h."

Yup. An antique version of gnuplot that was an experiment to create a DLL.

The lastest version is from May 26, 2006

RE: Make GNUPLOT work on machine which dont have it

(OP)
@drawoh, My fortran program prepares the coordinates after some calculations and writes the .plt file which has instructions for gnuplot to do the plot. the .plt file is then called in fortran and the plot is generated.. this work seamless on my pc which has fortran/gnuplot allready installed. now, i wish to distribute the exe to other windows users who dont have any of these, i am looking for the simplest way they can use the program instead of installing gnuplot on their pc.

RE: Make GNUPLOT work on machine which dont have it

(OP)
3DDave,
i dont mind increasing the size of EXE due to merging additiaonl files. is there a way out

RE: Make GNUPLOT work on machine which dont have it

(OP)
Hello IRstuff, my program is not yet 'an installation'.. it only has a folder called "root" with 2 files > an excel file(input) and an EXE. The user doesnt have to "install" anything to run this, they just have to copy the "root" into their PC and click the macro in excel to inititate the program. Is there an option like - distributing a particular file/folder from gnuplot along with "root"

RE: Make GNUPLOT work on machine which dont have it

(OP)
yes, i am on windows, which 'version' of gnuplot r u referring.

RE: Make GNUPLOT work on machine which dont have it

(OP)
hi, that .7z folder unzips to a 86MB folder. which file from this should i keep in my folder.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources

eBook - Mastering Tolerances for Machined Parts
When making CNC machined parts, mastering tolerances can be challenging. Are general tolerances good enough? When does it make sense to call out for tighter tolerances? Do you need a better understanding of fits, datums, or GD&T? Learn about these topics and more in Xometry's new e-book. Download Now
eBook – How to Choose the Correct Corrosion Testing Method
When designing a metal component, engineers have to consider how susceptible certain alloys are to corrosion in the final product’s operating environment. In a recent study by NACE (National Association of Corrosion Engineers), it was estimated that the direct and indirect costs of corrosion in the United States is approximately 6.2% of the GDP. In 2016, that cost exceeded $1 trillion dollars for the first time. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close