Board.KolibriOS.org

Official KolibriOS board
It is currently Fri Sep 20, 2019 7:35 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 100 posts ]  Go to page Previous 13 4 5 6 7
Author Message
PostPosted: Thu Sep 03, 2015 12:34 am 
Offline

Joined: Tue Apr 12, 2011 11:19 pm
Posts: 1150
Вернулся к попыткам собрать программу. Из за чего проблема?


Attachments:
logs.txt.7z [1.82 KiB]
Downloaded 98 times

_________________
я лишь учусь
Top
   
PostPosted: Thu Sep 03, 2015 1:10 am 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
This line from the logs (among other lines):

/tmp/ccXBt4m2.o: In function `fz_flush_warnings':
cmapdump.c:(.text+0x108): undefined reference to `fprintf'

means that the linker (ld) is not able to find a function(symbol) called "fprintf" which was used in the file cmapdump.c . Even all the other errors of undefined symbols (such as malloc, str* functions, free, etc) suggest that you are missing a linker object for libc .

I looked at the Makefile, Can you try changing the makefile at kolibrios/contrib/media/updf/Makefile by this ?

LDFLAGS = -Tinclude/scripts/menuetos_app_v01.ld -nostdlib -Linclude/lib

(remove the space between -L and include/lib) and try running make again.

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
PostPosted: Thu Sep 03, 2015 2:07 am 
Offline

Joined: Tue Apr 12, 2011 11:19 pm
Posts: 1150
Попробовал сначала

Spoiler: Show
root@debian:/home/punk-joker/Work/kolibrios_svn/contrib/media/updf# make
LINK build/pdfdraw
ld: skipping incompatible include/lib/libfreetype2.a when searching for -lfreetype2
ld: cannot find -lfreetype2
ld: skipping incompatible include/lib/libpng.a when searching for -lpng
ld: cannot find -lpng
ld: skipping incompatible include/lib/libjbig2dec.a when searching for -ljbig2dec
ld: cannot find -ljbig2dec
ld: skipping incompatible include/lib/libjpeg.a when searching for -ljpeg
ld: cannot find -ljpeg
ld: skipping incompatible include/lib/libopenjpeg.a when searching for -lopenjpeg
ld: cannot find -lopenjpeg
ld: skipping incompatible include/lib/libz.a when searching for -lz
ld: cannot find -lz
ld: skipping incompatible include/lib/libm.a when searching for -lm
ld: cannot find -lm
ld: skipping incompatible include/lib/libc.a when searching for -lc
ld: cannot find -lc
Makefile:45: ошибка выполнения рецепта для цели «build/pdfdraw»
make: *** [build/pdfdraw] Ошибка 1


Sourcer ранее писал по этому поводу, но я не могу понять причин. Ведь насколько я понял, Leency ранее собрал программу с этим же makefile'ом

_________________
я лишь учусь


Top
   
PostPosted: Thu Sep 03, 2015 2:39 am 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
Hmm, Looks like there's some kind of a mixed library linkage madness going on here. If the compiler is skipping "incompatible" library files that we want to get into the executable, then we are shit outta luck :D

FWIW, I think it's better to compile this using newlib instead of multiple toolchains floating together. Someone needs to take this over!

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
PostPosted: Sun Sep 06, 2015 12:00 am 
Offline

Joined: Sun Aug 09, 2015 3:41 pm
Posts: 112
Почисти от объектных файлов и пересобери всё заново.


Top
   
PostPosted: Tue Sep 08, 2015 3:51 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5061
VitrualBox image with uPDF
Download

How to use it to build uPDF:
1. download archive and unpack it
2. open Xubuntu.vbox by double click (or use VBox menu "Add" http://prntscr.com/8dz9u8 )
3. run VM
4. go to /home/leency/updf
5. run BuildUPDF.sh http://prntscr.com/8dzemm
-> you'll get compiled binary file /home/leency/build/mupdf

I use Dropbox to send file from vitrual machine to my host system, so after compilation binary copies to /home/leency/Dropbox folder.
If you need root password for current vm then please ask me by private message.

_________________
Через тернии к звездам


Top
   
PostPosted: Sun Nov 15, 2015 6:13 pm 
Offline

Joined: Wed May 18, 2005 7:27 pm
Posts: 1001
http://www.opennet.ru/opennews/art.shtml?num=43322


Top
   
PostPosted: Fri Nov 11, 2016 11:42 am 
Offline

Joined: Sun Oct 30, 2011 6:43 pm
Posts: 1499
Quote:
Leency « Ср ноя 09, 2016 9:26 pm » Siemargl: FB2reader надо добавить, а вот uPDF нет смысла добавлять, т.к. он запускается только с параметром - поддержки OpenDial нету

Просто как вариант(по крайней мере я так делаю), с помощью viewtopic.php?f=9&t=2486&p=53443#p53443
Запускается скриптом для SHELL, в котором
Code:
LOD *pdf,xps*/hd0/1/mupdf


Top
   
PostPosted: Fri Nov 11, 2016 1:57 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5061
Ничего себе! Спасибо, схоронил, надо будет прикрутить.

_________________
Через тернии к звездам


Top
   
PostPosted: Wed Oct 17, 2018 1:04 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5061
VitrualBox image with uPDF
Updated, now in Puppy Linux, 385 Mb.
https://drive.google.com/file/d/1vxfdOO ... sp=sharing

_________________
Через тернии к звездам


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 100 posts ]  Go to page Previous 13 4 5 6 7

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited