sphigs not installing on fedora

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

 



FC4

not quite sure where to turn for this support but I am having difficulties
getting SPHIGS (Simple Programmer's Hierarchical Graphics Standard) installed
on my FC4 machine.

here is what is happening:

--- snip ---

# make
gcc -fpcc-struct-return  -ansi -O2 -DUNIX -DX11 -I/usr/include/srgp  -c -o
objects/MAT3factor.o MAT3factor.c
MAT3factor.c: In function ?MAT3_jacobi?:
MAT3factor.c:67: error: ?MALLOCARGTYPE? undeclared (first use in this function)
MAT3factor.c:67: error: (Each undeclared identifier is reported only once
MAT3factor.c:67: error: for each function it appears in.)
make: *** [objects/MAT3factor.o] Error 1

--- snip ---


--- Makefile ----

# Path where SRGP headers live - change this according to your setup
#SRGPDIR = /usr/X11R6/include/X11/srgp
SRGPDIR = /usr/include/srgp

# An ANSI C compiler: gnu's "gcc"
CC = gcc

# The UNIX flag must be defined for UNIX implementations
CPPFLAGS = -DUNIX -DX11 -I$(SRGPDIR)

# Very important!  The first flag (struct-return) makes it safe to link
#  gcc objects with cc objects.
GCCFLAGS = -fpcc-struct-return

# Object files wiil go in this subdirectory
OBJ_DIR      =  objects

# User-defined; to pass options in to the compilation, say things
#   like 'make CFLAGS=-g'.  Put flags here to make them permanent.

CFLAGS  = -ansi -O2

#####################################################################

TARGET = libsphigs.a

HFILES =                        \
sph_draw.h                      \
elementType.h                   \
sph_errtypes.h                  \
sph_face.h                      \
falloc.h                        \
fallocdefs.h                    \
mat3.h                          \
mat3defs.h                      \
sphigs.h                        \
sphigslocal.h                   \
$(SRGPDIR)/srgp_sphigs.h        \
$(SRGPDIR)/macros.h             \
$(SRGPDIR)/srgppublic.h

OBJECTS =       \
MAT3factor.o    \
MAT3geom.o      \
MAT3inv.o       \
MAT3mat.o       \

MAT3vec.o       \
sph_attrib.o    \
sph_bitstr.o    \
sph_canon.o     \
sph_clip.o      \
sph_cull.o      \
sph_draw.o      \
sph_edit.o      \
sph_element.o   \
sph_elemdebug.o \
sph_error.o     \
sph_falloc.o    \
sph_filter.o    \
sph_input.o     \
sph_intense.o   \
sph_modxform.o  \
sph_objdebug.o  \
sph_object.o    \
sph_optimize.o  \
sph_post.o      \
sph_refresh.o   \
sph_state.o     \
sph_traverse.o  \
sph_utility.o   \
sph_view.o      \
sph_zsort.o     \
sph_bsp.o

#####################################################################


PATH_OBJECTS =  $(OBJECTS:%=$(OBJ_DIR)/%)

$(OBJ_DIR)/%.o: %.c
        $(CC) $(GCCFLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $(OBJ_DIR)/$*.o $*.c

$(TARGET):  $(PATH_OBJECTS)
        echo $(PATH_OBJECTS)
        ar rv $(TARGET) $(PATH_OBJECTS)
        ranlib $(TARGET)

remove:
        /bin/rm -f $(PATH_OBJECTS)
        /bin/rm -f *~

clean:  remove

$(PATH_OBJECTS): $(HFILES)

---s nip ----

# ls -l /usr/include/srgp/
total 40
-r--r--r--  1 root root  601 Feb  4 18:45 macros.h
-rw-r--r--  1 root root  551 Oct 10  2000 srgp.h
-rw-r--r--  1 root root 9428 Oct 10  2000 srgppublic.h
-rw-r--r--  1 root root 1814 Oct 10  2000 srgp_sphigs.h

--- snip ----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux