LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2005, 07:15 AM   #1
csst0136
LQ Newbie
 
Registered: Oct 2005
Location: greece
Posts: 20

Rep: Reputation: 0
install srgp.tar.z package


i have the package srgp.tar.z but i dont know how to install it on suse 9.3.
where exactly i have to put libraries, header files and everything are in the package.
 
Old 10-15-2005, 08:23 AM   #2
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
I guess you are having the sources.
first untar the archive
mkdir /tmp/srgp
cd /tmp/srgp
tar -Ztvf /tmp/srgp.tar.z
make -f Makefile
 
Old 10-15-2005, 12:24 PM   #3
csst0136
LQ Newbie
 
Registered: Oct 2005
Location: greece
Posts: 20

Original Poster
Rep: Reputation: 0
first of all thanks for the reply

when i run the command tar it seems doesnt do anything just print the files which include in srgp.tar.Z.
Then i change (t) or ( f) in -Ztvf i dont remember to (x) and it puts the files of the package to /tmp/srgp/ into a directory SRGP_DISTRIB.
Into this directory i run the command make -f Makefile and it prints a lot of errors.i try to make gcc the examples which are in package and it doesnt recognize library srgp.h

what i have to do now??
 
Old 10-16-2005, 09:44 AM   #4
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
oops typo it should be Zxvf
what are the errors that you get? .
 
Old 10-16-2005, 01:42 PM   #5
csst0136
LQ Newbie
 
Registered: Oct 2005
Location: greece
Posts: 20

Original Poster
Rep: Reputation: 0
thanx for helpingme.Below are the errors until the end.

MAKING... SRGP optimized (-O) library
(cd src/srgp; make clean CFLAGS=-O)
make[1]: Entering directory `/tmp/srgp/SRGP_DISTRIB/src/srgp'
/bin/rm -f objects/srgp_attrib.o objects/srgp_canvas.o objects/srgp_color_X.o objects/srgp_cursor.o objects/srgp_echo_X.o objects/srgp_error.o objects/srgp_font.o objects/srgp_input.o objects/srgp_input_X.o objects/srgp_inquire.o objects/srgp_marker.o objects/srgp_output.o objects/srgp_pattern.o objects/srgp_raster.o objects/srgp_state.o objects/srgp_state_X.o objects/geom.o
/bin/rm -f *~
gcc -fpcc-struct-return -O -DUNIX -DX11 -c -o objects/srgp_attrib.o srgp_attrib.c
In file included from srgp_attrib.c:2:
srgplocal.h:9:22: X11/Xlib.h: Δεν υϤάρχει Ï„Î_τοιο αρχείο ή κατάλογος
srgplocal.h:10:23: X11/Xutil.h: Δεν υϤάρχει Ï„Î_τοιο αρχείο ή κατάλογος
srgplocal.h:11:21: X11/Xos.h: Δεν υϤάρχει Ï„Î_τοιο αρχείο ή κατάλογος
srgplocal.h:12:28: X11/cursorfont.h: Δεν υϤάρχει Ï„Î_τοιο αρχείο ή κατάλογος
In file included from srgplocal.h:48,
from srgp_attrib.c:2:
srgppublic.h:3:22: X11/Xlib.h: Δεν υϤάρχει Ï„Î_τοιο αρχείο ή κατάλογος
In file included from srgplocal.h:48,
from srgp_attrib.c:2:
srgppublic.h:274: error: syntax error before "SRGP_inquireXDrawable"
srgppublic.h:274: warning: data definition has no type or storage class
In file included from srgp_attrib.c:2:
srgplocal.h:93: error: syntax error before "XID"
srgplocal.h:93: warning: no semicolon at end of struct or union
srgplocal.h:94: warning: data definition has no type or storage class
srgplocal.h:95: error: syntax error before "bitmap"
srgplocal.h:95: warning: data definition has no type or storage class
srgplocal.h:97: warning: data definition has no type or storage class
srgplocal.h:116: error: syntax error before "drawable_type"
srgplocal.h:116: warning: no semicolon at end of struct or union
srgplocal.h:118: warning: data definition has no type or storage class
srgplocal.h:125: error: syntax error before '}' token
srgplocal.h:126: warning: data definition has no type or storage class
srgplocal.h:129: error: syntax error before "srgp__curActiveCanvasSpec"
srgplocal.h:129: warning: data definition has no type or storage class
srgplocal.h:130: error: syntax error before '*' token
srgplocal.h:130: warning: data definition has no type or storage class
srgplocal.h:146: error: syntax error before "pattern_table_entry"
srgplocal.h:146: warning: data definition has no type or storage class
srgplocal.h:154: error: syntax error before '*' token
srgplocal.h:154: warning: data definition has no type or storage class
srgplocal.h:155: error: syntax error before '*' token
srgplocal.h:155: warning: data definition has no type or storage class
srgplocal.h:167: error: syntax error before "cursorInfo"
srgplocal.h:167: warning: data definition has no type or storage class
srgplocal.h:174: error: syntax error before '*' token
srgplocal.h:174: warning: data definition has no type or storage class
srgplocal.h:188: error: syntax error before '*' token
srgplocal.h:188: warning: data definition has no type or storage class
srgplocal.h:199: error: syntax error before '*' token
srgplocal.h:199: warning: data definition has no type or storage class
srgplocal.h:322: error: syntax error before '*' token
srgplocal.h:322: warning: data definition has no type or storage class
srgplocal.h:336: error: syntax error before '*' token
srgplocal.h:336: warning: data definition has no type or storage class
srgplocal.h:338: error: syntax error before "srgpx__colormap"
srgplocal.h:338: warning: data definition has no type or storage class
srgplocal.h:359: error: syntax error before "srgpx__starttime"
srgplocal.h:359: warning: data definition has no type or storage class
srgp_attrib.c:14: error: syntax error before "gcvals"
srgp_attrib.c:14: warning: data definition has no type or storage class
srgp_attrib.c: In function `SRGP_setWriteMode':
srgp_attrib.c:135: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:145: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:154: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c:158: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c: In function `SRGP_setClipRectangle':
srgp_attrib.c:177: error: `XRectangle' undeclared (first use in this function)
srgp_attrib.c:177: error: (Each undeclared identifier is reported only once
srgp_attrib.c:177: error: for each function it appears in.)
srgp_attrib.c:177: error: syntax error before "xrect"
srgp_attrib.c:193: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:196: error: `xrect' undeclared (first use in this function)
srgp_attrib.c:197: error: request for member `max_ycoord' in something not a structure or union
srgp_attrib.c:202: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c:204: error: `YXSorted' undeclared (first use in this function)
srgp_attrib.c:207: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c: In function `SRGP_setFillStyle':
srgp_attrib.c:228: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:238: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:241: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c: In function `SRGP_setFillBitmapPattern':
srgp_attrib.c:258: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:268: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:273: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c: In function `SRGP_setFillPixmapPattern':
srgp_attrib.c:287: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:297: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:300: error: request for member `tile' in something not a structure or union
srgp_attrib.c:301: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c:302: error: `GCTile' undeclared (first use in this function)
srgp_attrib.c: In function `SRGP_setPenStyle':
srgp_attrib.c:322: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:331: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:334: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setPenBitmapPattern':
srgp_attrib.c:350: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:360: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:365: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setPenPixmapPattern':
srgp_attrib.c:382: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:392: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:395: error: request for member `tile' in something not a structure or union
srgp_attrib.c:396: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c:397: error: `GCTile' undeclared (first use in this function)
srgp_attrib.c: In function `SRGP_setMarkerSize':
srgp_attrib.c:412: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:421: error: request for member `attributes' in something not a structure or union
srgp_attrib.c: In function `SRGP_setMarkerStyle':
srgp_attrib.c:428: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:437: error: request for member `attributes' in something not a structure or union
srgp_attrib.c: In function `SetXLineAttributes':
srgp_attrib.c:466: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c:467: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:468: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:469: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:470: error: `LineSolid' undeclared (first use in this function)
srgp_attrib.c:470: error: `LineOnOffDash' undeclared (first use in this function)
srgp_attrib.c:471: error: `CapButt' undeclared (first use in this function)
srgp_attrib.c:472: error: `JoinBevel' undeclared (first use in this function)
srgp_attrib.c: In function `SRGP_setLineStyle':
srgp_attrib.c:482: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:491: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:495: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setLineWidth':
srgp_attrib.c:507: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:516: error: request for member `attributes' in something not a structure or union
srgp_attrib.c: In function `SRGP_setPlaneMask':
srgp_attrib.c:536: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:544: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:549: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c:552: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setColor':
srgp_attrib.c:560: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:571: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:574: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c:576: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setBackgroundColor':
srgp_attrib.c:597: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:608: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:611: error: request for member `gc_fill' in something not a structure or union
srgp_attrib.c:613: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c: In function `SRGP_setFont':
srgp_attrib.c:653: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:662: error: request for member `attributes' in something not a structure or union
srgp_attrib.c:667: error: request for member `gc_frame' in something not a structure or union
srgp_attrib.c:668: error: invalid type argument of `->'
make[1]: *** [objects/srgp_attrib.o] Error 1
make[1]: Leaving directory `/tmp/srgp/SRGP_DISTRIB/src/srgp'
make: *** [default] Error 2

strange characters are written in greek language it says that the library not include
 
Old 10-17-2005, 12:10 PM   #6
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
do you have the X11 development libraries installed?
i think you dont ahve the development libraries.
you can do a locate Xlib.h
in my fedora core 3 it is under /usr/X11R6/include/X11/Xlib.h
if its not thre install these packages first
xorg-x11-devel (on FC3)
i think some other distributions name it as x11-devel
 
Old 10-22-2005, 06:25 PM   #7
csst0136
LQ Newbie
 
Registered: Oct 2005
Location: greece
Posts: 20

Original Poster
Rep: Reputation: 0
ok after 2 days i finally installed the X11 development libraries so managed to run make -f Makefile.
But when i compile a program for example:

#include <stdio.h>
#include "srgp.h"

int main()
{
SRGP_begin("hw", 500, 300, 1, TRUE);
SRGP_end();
return 1;
}

i get errors

/tmp.cc4addcut.o(text+0x27):In function 'main'
:undefined reference to 'SRGP_begin'
/tmp.cc4addcut.o(text+0x27):In function 'main'
:undefined reference to 'SRGP_end'
collect 2:ld returned 1 exit status

if execute other programs i get similar erros /tmp.****.o:...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install srgp library 2D graphics csst0136 Solaris / OpenSolaris 2 10-17-2005 10:17 AM
compile software by tar package kernelvn *BSD 2 06-12-2005 12:17 PM
package installation from tar.gz fnoyan Linux - Software 3 03-04-2005 02:46 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM
Install HCF driver from TAR package snowbaby Linux - Newbie 4 05-02-2002 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration