go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ REQ 5661]: Geomview source modifications



Okay, here's a list of what I had to do to the source code tree (besides what 
was listed in the INSTALL file and adding site-specific include and library 
paths) to get thing to compile with cc on a hp 715/100 running HP/UX 9.0.5:

       - In makefiles/mk.hp, set:
		COPTS = -O -Aa -D_HPUX_SOURCE -Wp,-H15000

	 	The -Wp,-H15000 is required because 
		src/bin/geomview/x11/interface/Tool.mib is too big for the
		cpp's default value of its internal macro expansion buffer

       - Comment out the lines in src/lib/gprim/sphere/Makefile &
             src/lib/gprim/sphere/O.x11/Makefile that include Makefile.obj
	     (since all it does is redefine COPTS, which we don't want...)

       - In src/lib/gprim/tlist/tlstream.c, in function TlistImport initialize
             t to NULL (only to stop compiler warning about using a variable 
	     before it was initialized)

       - Comment out the line in src/lib/mg/x11/O.x11/Makefile that sets COPTS

       - Comment out the line in src/lib/mib/O.x11/Makefile that sets COPTS

       - In src/lib/mg/x11/mgx11render24.c, in function Xmgr_24Gline, the
             variables z1 and z2 are declared and then passed in the function
             call without ever being initialized.  Either initialize the
             variables to 0.0 or eliminate the variables and pass 0.0 to the
             function

       - In src/lib/oogl/util/futil.c, change all ifdef's for hpux
             to __hpux (or add -Dhpux in mk.hp)   Can you say fnctl()? :-)

       - In src/lib/oogl/util/porting.c, put comments around the text following
             #endif on lines 223 and 224

       - In src/lib/oogl/util/porting.c, I assume you had a good reason for
             defining acosh() and finite() so I changed the "#ifdef hpux" to:

                     #if defined(__hpux) && !defined(__hppa)

	     to keep from picking up definitions that are already in libmath.a

       - In src/lib/oogl/util/porting.c, I added the following line at the end
             of the file because some compilers don't like empty source code
             files:

                     static int dummy(void) {return 1;}

       - In src/lib/oogl/wa/Makefile.obj, comment out the line that sets the
             CFLAGS

       - In src/bin/geomview/x11/O.x11/drawer.c, line 1174 casted the return
             value of alloca to a (char *), since you're not declaring alloca  
              and C stupidly assumes that alloca() returns an int 

       - In src/bin/geomview/x11/O.x11/drawer.c, removed the second function
             prototype for lightedit()

Hope this helps,
Robert

PS. By the way, this tree was the resulting tree from unpacking 
geomview-1.5.0-src.tar.gz and geomview-1.5.0-patch1.tar.gz


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo