I generally create a shell file 'config.me' that wraps up environment
variable settings and configure.  I'd suggest:

CFLAGS=-I/usr/local/include \
CXXFLAGS=-I/usr/local/include \
CPPFLAGS=-I/usr/local/include \
CXXCPPFLAGS=-I/usr/local/include \
LDFLAGS=-L/usr/local/lib \
./configure

- if you are building in the source directory; actually, I usually create a
object tree by mkdir'ing /usr/local/src/dx/obj, then cd'ing there and using
../configure in the config.me script.

If you look at the log file from the configuration step, it should tell you
exactly what was being tried when it looked for each package.  Look in
there and find, for example, the string 'cdf' to see what it tried and what
went wrong.

Greg



                                                                                
                                                 
                      Fred Ramsing                                              
                                                 
                      <[EMAIL PROTECTED]>                   To:       
[email protected]                          
                      Sent by:                             cc:                  
                                                 
                      [EMAIL PROTECTED]        Subject:  [opendx-users] 
compiling for cygwin                         
                      son.ibm.com                   -I/usr/local                
                                                 
                                                                                
                                                 
                                                                                
                                                 
                      07/08/2003 01:57 AM                                       
                                                 
                      Please respond to                                         
                                                 
                      opendx-users                                              
                                                 
                                                                                
                                                 
                                                                                
                                                 




After seeing all the failures with opendx-cygwin binaries on this list, I
decided to try and compile my own.  I am using the following platform:

             cygwin 1.3.22 on WindowsNT 4.0 with XFree86 4.2.0

and the following have been compiled and installed under /usr/local:

             ImageMagick-5.5.7
             Mesa-5.0.1
             CDF 2.7
             netCDF 3.5.0

so that static libraries, include files, and executables for the above are
all stored in their respective location under /usr/local/lib,
/usr/local/include, and usr/local/bin.

What I cannot figure out is how to make opendx compile with these
libraries.  When I run configure, it does not see these libraries.  So,
what file and what parameters do I edit to specify compilation with the
libraries under /usr/local/ ?

The Makefile has the following parameters, but I don't understand the
enough about make, especially the usage of the option -l versus -L or
where to specify to use ImageMagick:

             DX_GL_LINK_LIBS = -lGL
             DX_XLIBS_LIST = @DX_XLIBS_LIST@
             DX_X_LINK_LIBS = -lXm -lXp -lGLU -lGL -lm -lXext -lXt -lX11
etc...
             LIBS = -lXpm -ltiff -lXm -lXp -lGLU -lGL -lm -lXext etc...

Could someone please through me a bone here?

TIA,


Fred



Reply via email to