Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[magicpoint]Błąd w źródłach i nie wiem jak poprawić.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
szolek
Guru
Guru


Joined: 30 Mar 2005
Posts: 570
Location: Brzóza Królewska

PostPosted: Mon Dec 12, 2005 8:42 pm    Post subject: [magicpoint]Błąd w źródłach i nie wiem jak poprawić. Reply with quote

Problem jest z generowaniem prezentacji w formie html z grafiką w png. Jpg idzie bez problemu.
poniżej wycinek z konsoli
Quote:
$ mgp -D tmp -E png moja.mgp
cannot find k14 font.
generating page 1... (full image)sh: line 1: 29264 Przerwany potok xwintoppm -silent -name MagicPoint
29265 Naruszenie ochrony pamięci | pnmtopng 2>&- >tmp/mgp00001.png
(thumbnail)pngtopnm: input file is empty or too short
pnmscale: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
sh: line 1: 29267 Done(1) pngtopnm tmp/mgp00001.png
29268 | pnmscale 0.25
29269 Naruszenie ochrony pamięci | pnmtopng 2>&- >tmp/mgp00001.idx.png
(html)(txt)
generating top page...


no i kawałek pliku mgp.c
Quote:
static void
genhtml(start_page)
int start_page;
{
struct render_state state;
char buf[BUFSIZ];
int fd;
FILE *html;
FILE *txt;
int page;
char *childdebug;
char *convdb[][3] = {{ "jpg", "cjpeg", "djpeg" },
{ "png", "pnmtopng", "pngtopnm" },
{ NULL, NULL, NULL }};

najprawdopodobniej to poierwsze pnmtopng powino być zastąpione ppmtopng.
Back to top
View user's profile Send private message
n3rd
Guru
Guru


Joined: 30 Apr 2005
Posts: 328

PostPosted: Mon Dec 12, 2005 9:34 pm    Post subject: Reply with quote

Wypakuj źródła, popraw, co uważasz za słuszne, zapakuj, emerge paczka digest, zainstaluj... a jak nie będzie już tego błędu, zgłoś poprawkę autorowi programu. Dobrze byłoby jakbyś przesłał mu też łatę ze zmiami.

Pozdrawiam
daniel

Też mam podobny problem... męczę się z jedną łatą na shadow... okazuje się, ze nie wszystkie funkcje zostały wcześniej zdefiniowane... koszmar.
_________________
"Jeśli coś jest niemożliwe do zrobienia, przychodzi ktoś kto o tym nie wie i robi to."
-- Albert Einstein

Zanim zadasz pytanie na forum, wykonaj: /etc/init.d/brain.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum