On 6/16/04 2:47 PM, "Jeremy Erwin" <[EMAIL PROTECTED]> wrote:
>
> On Jun 16, 2004, at 2:54 AM, Lauri Lehtovaara wrote:
>
>> I tried to compile OpenDX 4.3.2 on Mac OS X 10.3.4 and encountered
>> some problems. So, I thought that someone else might be interested
>> what I've done.
>>
>> Compiling OpenDX 4.3.2 on Mac OS X 10.3.4 (dual G5):
>>
>> Prerequisites (for me):
>> 1) X11SDK from Xcode 1.2 CD
>> 2) OpenMotif from Fink
>> 3) ImageMagick
>>
>> Compiling with gcc (in Terminal):
>> 1) ./configure with-x with-motif-includes=/sw/include
>> with-includes=/usr/X11R6/include > config.output
>>
>
> That should be
> CFLAGS=-I/sw/include LDFLAGS=-L/sw/lib ./configure
> --with-motif-libs=/sw/lib --with-motif-includes=/sw/include
>
> --with-x just confuses things (it's enabled by default). opendx will
> then compile cleanly with a simple make. By default, configure scripts
> write a log file to config.log, so the redirection to config.output is
> not necessary. the CFLAGS and LDFLAGS directives inform the configure
> script of the existence of useful fink libraries.
> (You can install dx via fink, but it changes some things...)
>
> Jeremy
>
>
Why are you building a hybrid version of dx?
Either use Fink all the way or build a clean stand alone version of dx.
Having /sw or for that matter /opt/local (DarwinPorts) just adds more
complexity to your paths and can result in utter confusion (when building
modules, etc.).
BTW: I used lesstif instead of OpenMotif to build both dx 4.2.0 and 4.3.2
without Fink. 4.2.0 required a bit of tweaking, but 4.3.2 built right out of
the box (Xcode 1.1 version of gcc 3.3, with g77 3.4, under 10.3.3 at the
time, Dual G5).
Marius
--
Marius Schamschula, Ph.D.
Alabama A & M University, Department of Physics
The Center for Hydrology, Soil Climatology and Remote Sensing
http://wx.aamu.edu/ - http://www.aamu.edu/hscars/
http://optics.physics.aamu.edu/ - http://www.physics.aamu.edu/