PB installation sous Ubuntu
Fermé
romaingeol
-
25 févr. 2008 à 21:07
mamiemando Messages postés 33346 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 8 novembre 2024 - 26 févr. 2008 à 17:39
mamiemando Messages postés 33346 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 8 novembre 2024 - 26 févr. 2008 à 17:39
A voir également:
- PB installation sous Ubuntu
- Ubuntu iso - Télécharger - Systèmes d'exploitation
- Installation chromecast - Guide
- Ubuntu 24.04 - Accueil - Ubuntu
- Ubuntu 32 bits - Télécharger - Systèmes d'exploitation
- Installation windows 10 sans compte microsoft - Guide
4 réponses
mamiemando
Messages postés
33346
Date d'inscription
jeudi 12 mai 2005
Statut
Modérateur
Dernière intervention
8 novembre 2024
7 803
25 févr. 2008 à 21:29
25 févr. 2008 à 21:29
Ah non il faut juste décommenter les deux lignes linux dans le makefile :
Ensuite tu installes g77 :
Et enfin tu compiles en tapant juste :
Ce qui va donner :
Ensuite libre à toi de construire l'exécutable qui t'intéresse.
etc...
Bonne chance
# solaris #FC = f77 #CC = cc #CPPFLAGS = -I/usr/openwin/share/include #XPLOT = plotkit.a -lX11 -lm # GNU FC = g77 CC = gcc FFLAGS = -O XPLOT = plotkit.a -lX11 -lm ...
Ensuite tu installes g77 :
sudo aptitude install g77
Et enfin tu compiles en tapant juste :
make
Ce qui va donner :
(mando@aldur) (~/plop) $ make g77 -O -c -o absmov.o absmov.f g77 -O -c -o afmbd.o afmbd.f g77 -O -c -o afmfon.o afmfon.f g77 -O -c -o afmlod.o afmlod.f g77 -O -c -o allocu.o allocu.f g77 -O -c -o applst.o applst.f ... xdevice.c: In function ‘rasxw_’: xdevice.c:1110: warning: conflicting types for built-in function ‘calloc’ ar r plotkit.a absmov.o afmbd.o afmfon.o afmlod.o allocu.o applst.o axis.o centxt.o chargen.o clipper.o closeplot.o cursor.o downshift.o flush_it.o fndcde.o get_gin_pt.o getans.o getxgin.o iaquest.o ictype.o ideblank.o igettok.o igetvals.o iiquest.o inextval.o irquest.o itlen.o lentrue.o line.o lstyle.o mpaxis.o mpline2.o newpen.o newplot.o npnewpen.o npplot.o npplots.o npsymbol.o number.o nxnewpen.o nxplot.o nxplots.o nxsymbol.o plclip.o plot.o plotclip.o plotline.o plotngon.o plots.o plssymb.o plsymb.o psenv.o psiobd.o pspage.o pstrlr.o putint.o rsintemplate.o rstemplate.o scale.o setscale.o startplot.o symbl.o symbol.o text.o tstamp.o tstend.o upshift.o vecstr.o where.o xlengstr.o xdevice.o ranlib plotkit.a
Ensuite libre à toi de construire l'exécutable qui t'intéresse.
make plotkit
etc...
Bonne chance
J'ai toujours un paquet d'erreurs
xdevice.c:935: erreur: «curwin" undeclared (first use in this function)
xdevice.c:936: erreur: «gc" undeclared (first use in this function)
xdevice.c:936: erreur: «GXxor" undeclared (first use in this function)
xdevice.c:940: erreur: «event" undeclared (first use in this function)
xdevice.c:943: erreur: «MotionNotify" undeclared (first use in this function)
xdevice.c:954: erreur: «ButtonPress" undeclared (first use in this function)
xdevice.c:959: erreur: «GXcopy" undeclared (first use in this function)
xdevice.c: In function «EraseRubberBox":
xdevice.c:1006: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1006: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1006: erreur: «gc" undeclared (first use in this function)
xdevice.c: In function «get_boxxw_":
xdevice.c:1022: erreur: «XEvent" undeclared (first use in this function)
xdevice.c:1022: erreur: expected «;" before «event"
xdevice.c:1032: erreur: «ButtonPressMask" undeclared (first use in this functio n)
xdevice.c:1032: erreur: «PointerMotionMask" undeclared (first use in this funct ion)
xdevice.c:1033: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1033: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1037: erreur: «gc" undeclared (first use in this function)
xdevice.c:1037: erreur: «GXxor" undeclared (first use in this function)
xdevice.c:1040: erreur: «curxh" undeclared (first use in this function)
xdevice.c:1044: erreur: «event" undeclared (first use in this function)
xdevice.c:1048: erreur: «ButtonPress" undeclared (first use in this function)
xdevice.c:1053: erreur: «GXcopy" undeclared (first use in this function)
xdevice.c:1054: erreur: «curcurse" undeclared (first use in this function)
xdevice.c:1059: erreur: «MotionNotify" undeclared (first use in this function)
xdevice.c: In function «rasxw_":
xdevice.c:1110: attention : conflicting types for built-in function «calloc"
xdevice.c:1112: erreur: «XWindowAttributes" undeclared (first use in this funct ion)
xdevice.c:1112: erreur: expected «;" before «xwa"
xdevice.c:1126: erreur: «curimage" undeclared (first use in this function)
xdevice.c:1140: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1140: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1140: erreur: «xwa" undeclared (first use in this function)
xdevice.c:1143: erreur: «ZPixmap" undeclared (first use in this function)
xdevice.c:1156: erreur: «gc" undeclared (first use in this function)
xdevice.c: In function «Service_Xevent":
xdevice.c:1173: erreur: «XEvent" undeclared (first use in this function)
xdevice.c:1173: erreur: expected «;" before «event"
xdevice.c:1174: erreur: «XWindowAttributes" undeclared (first use in this funct ion)
xdevice.c:1174: erreur: expected «;" before «xwa"
xdevice.c:1182: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1183: erreur: «False" undeclared (first use in this function)
xdevice.c:1186: erreur: «event" undeclared (first use in this function)
xdevice.c:1194: erreur: «Expose" undeclared (first use in this function)
xdevice.c:1195: erreur: «ConfigureNotify" undeclared (first use in this functio n)
xdevice.c:1203: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1203: erreur: «xwa" undeclared (first use in this function)
xdevice.c:1207: erreur: «fontstruct" undeclared (first use in this function)
xdevice.c:1207: attention : incompatible implicit declaration of built-in functi on «strlen"
xdevice.c:1215: erreur: «gc" undeclared (first use in this function)
xdevice.c:1239: erreur: «EnterNotify" undeclared (first use in this function)
xdevice.c:1240: erreur: «curcmap" undeclared (first use in this function)
xdevice.c:1241: erreur: «LeaveNotify" undeclared (first use in this function)
xdevice.c: In function «setline2xw_":
xdevice.c:1260: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1260: erreur: «gc" undeclared (first use in this function)
xdevice.c:1260: erreur: «CapNotLast" undeclared (first use in this function)
xdevice.c:1260: erreur: «JoinRound" undeclared (first use in this function)
xdevice.c: In function «pixelarrayxw_":
xdevice.c:1288: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1288: erreur: «gc" undeclared (first use in this function)
xdevice.c:1289: erreur: «curwin" undeclared (first use in this function)
make: *** [xdevice.o] Erreur 1
question comment enregistrer les erreurs dans un fichier?
xdevice.c:935: erreur: «curwin" undeclared (first use in this function)
xdevice.c:936: erreur: «gc" undeclared (first use in this function)
xdevice.c:936: erreur: «GXxor" undeclared (first use in this function)
xdevice.c:940: erreur: «event" undeclared (first use in this function)
xdevice.c:943: erreur: «MotionNotify" undeclared (first use in this function)
xdevice.c:954: erreur: «ButtonPress" undeclared (first use in this function)
xdevice.c:959: erreur: «GXcopy" undeclared (first use in this function)
xdevice.c: In function «EraseRubberBox":
xdevice.c:1006: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1006: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1006: erreur: «gc" undeclared (first use in this function)
xdevice.c: In function «get_boxxw_":
xdevice.c:1022: erreur: «XEvent" undeclared (first use in this function)
xdevice.c:1022: erreur: expected «;" before «event"
xdevice.c:1032: erreur: «ButtonPressMask" undeclared (first use in this functio n)
xdevice.c:1032: erreur: «PointerMotionMask" undeclared (first use in this funct ion)
xdevice.c:1033: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1033: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1037: erreur: «gc" undeclared (first use in this function)
xdevice.c:1037: erreur: «GXxor" undeclared (first use in this function)
xdevice.c:1040: erreur: «curxh" undeclared (first use in this function)
xdevice.c:1044: erreur: «event" undeclared (first use in this function)
xdevice.c:1048: erreur: «ButtonPress" undeclared (first use in this function)
xdevice.c:1053: erreur: «GXcopy" undeclared (first use in this function)
xdevice.c:1054: erreur: «curcurse" undeclared (first use in this function)
xdevice.c:1059: erreur: «MotionNotify" undeclared (first use in this function)
xdevice.c: In function «rasxw_":
xdevice.c:1110: attention : conflicting types for built-in function «calloc"
xdevice.c:1112: erreur: «XWindowAttributes" undeclared (first use in this funct ion)
xdevice.c:1112: erreur: expected «;" before «xwa"
xdevice.c:1126: erreur: «curimage" undeclared (first use in this function)
xdevice.c:1140: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1140: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1140: erreur: «xwa" undeclared (first use in this function)
xdevice.c:1143: erreur: «ZPixmap" undeclared (first use in this function)
xdevice.c:1156: erreur: «gc" undeclared (first use in this function)
xdevice.c: In function «Service_Xevent":
xdevice.c:1173: erreur: «XEvent" undeclared (first use in this function)
xdevice.c:1173: erreur: expected «;" before «event"
xdevice.c:1174: erreur: «XWindowAttributes" undeclared (first use in this funct ion)
xdevice.c:1174: erreur: expected «;" before «xwa"
xdevice.c:1182: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1183: erreur: «False" undeclared (first use in this function)
xdevice.c:1186: erreur: «event" undeclared (first use in this function)
xdevice.c:1194: erreur: «Expose" undeclared (first use in this function)
xdevice.c:1195: erreur: «ConfigureNotify" undeclared (first use in this functio n)
xdevice.c:1203: erreur: «curwin" undeclared (first use in this function)
xdevice.c:1203: erreur: «xwa" undeclared (first use in this function)
xdevice.c:1207: erreur: «fontstruct" undeclared (first use in this function)
xdevice.c:1207: attention : incompatible implicit declaration of built-in functi on «strlen"
xdevice.c:1215: erreur: «gc" undeclared (first use in this function)
xdevice.c:1239: erreur: «EnterNotify" undeclared (first use in this function)
xdevice.c:1240: erreur: «curcmap" undeclared (first use in this function)
xdevice.c:1241: erreur: «LeaveNotify" undeclared (first use in this function)
xdevice.c: In function «setline2xw_":
xdevice.c:1260: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1260: erreur: «gc" undeclared (first use in this function)
xdevice.c:1260: erreur: «CapNotLast" undeclared (first use in this function)
xdevice.c:1260: erreur: «JoinRound" undeclared (first use in this function)
xdevice.c: In function «pixelarrayxw_":
xdevice.c:1288: erreur: «dpy" undeclared (first use in this function)
xdevice.c:1288: erreur: «gc" undeclared (first use in this function)
xdevice.c:1289: erreur: «curwin" undeclared (first use in this function)
make: *** [xdevice.o] Erreur 1
question comment enregistrer les erreurs dans un fichier?
mamiemando
Messages postés
33346
Date d'inscription
jeudi 12 mai 2005
Statut
Modérateur
Dernière intervention
8 novembre 2024
7 803
26 févr. 2008 à 14:33
26 févr. 2008 à 14:33
Fais-moi voir le début de ton makefile, il doit vraiment être identique au mien.
Donne-moi aussi le résultat de
Bonne chance
Donne-moi aussi le résultat de
dpkg -l g77
Bonne chance
Le début du makefile est:
# solaris
#FC = f77
#CC = cc
#CPPFLAGS = -I/usr/openwin/share/include
#XPLOT = plotkit.a -lX11 -lm
# GNU
FC = g77
CC = gcc
FFLAGS = -O
XPLOT = plotkit.a -lX11 -lm
et dpkg -l g77
donne:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Nom Version Description
+++-==============-==============-============================================
ii g77 4:3.4.6-28ubun The GNU Fortran 77 compiler
# solaris
#FC = f77
#CC = cc
#CPPFLAGS = -I/usr/openwin/share/include
#XPLOT = plotkit.a -lX11 -lm
# GNU
FC = g77
CC = gcc
FFLAGS = -O
XPLOT = plotkit.a -lX11 -lm
et dpkg -l g77
donne:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Nom Version Description
+++-==============-==============-============================================
ii g77 4:3.4.6-28ubun The GNU Fortran 77 compiler
mamiemando
Messages postés
33346
Date d'inscription
jeudi 12 mai 2005
Statut
Modérateur
Dernière intervention
8 novembre 2024
7 803
26 févr. 2008 à 17:39
26 févr. 2008 à 17:39
Ca m'a l'air bon. Essaye de virer les .o de ton répertoire, il ne les a peut être pas recompilé. A priori :
Sinon dégomme les à la main ;-)
make clean distclean
Sinon dégomme les à la main ;-)