Neil,

Sorry I can't help with Netbeans although I have recently installed it. Have 
you tried using an external console rather than the internal Netbeans one?

> If i wanted to run the example programs outside of Netbeans, just so 
> see if i could get this program working under Windows, what would be 
> the best route (not using VS though)?

This is straightforward. I attach an example makefile that should point you in 
the right direction. Although it refers to my Cygwin installation, it works 
equally well under my msys/mingw one. I think you could avoid needing to have 
the plplot libs and drivers in your PATH if you compiled with an appropriate 
rpath flag, but I've not explored that.

HTH

Steve

--------------------------------------------------------------------
Steven J Schwartz                  Phone:  +44 (0)207 594 7660
Professor of Space Physics         Fax:    +44 (0)207 594 7772
Director, Imperial Space Lab       www.imperial.ac.uk/spacelab
The Blackett Laboratory            Email:  s.schwa...@imperial.ac.uk
Imperial College London            Office: Huxley 6M67A
London SW7 2AZ, UK                 Web:    www.sp.ph.ic.ac.uk/~sjs
--------------------------------------------------------------------


# sjs makefile for plplot examples
# NB to run executable, need to have plplot lib directory in PATH, e.g.:
# export PATH=/home/sjs/plplot-5.9.9/buildcygwin/install/bin:${PATH}
# export 
PATH=/home/sjs/plplot-5.9.9/buildcygwin/install/lib/plplot-5.9.9/driversd:${PATH}
#
# Note dll's are in bin directory, not lib, and windows uses the PATH
# to find them.

PLPLOT_DIR = /home/sjs/plplot/build_devel/install_devel

C_FLAGS = -I$(PLPLOT_DIR)/include/plplot 
LDFLAGS = -L$(PLPLOT_DIR)/lib -lplplotd.dll -lm
CC = gcc

sjs_exp.exe:
        $(CC) sjs_exp.c -o sjs_exp.exe  ${PLOBS} $(C_FLAGS) 
-I$(PLPLOT_DIR)/include $(LDFLAGS) 

.c.o:
        $(CC) -c $< -o $@ $(C_FLAGS)
        
# NOTE: it would probably be better to pick up 
install-dir/lib/pkgconfig/plplotd.pc
# and copy the flags there. The above might not be complete if other libs
# are needed, e.g., qsastime (actually libqsastime is in the plplot lib 
directory. 
# I can't see where the driver .so's are referenced, 
# but they are in /install-dir/lib/plplot5.9.5/driversd.
#
# Since the plplot examples run without specifying a LD_LIBRRY_PATH, there
# must be something in the way they are built that includes the necessary paths 
in
# the executable. Note that there aren't any static libraries (at least that
# I can see).
------------------------------------------------------------------------------
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to