WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: question for flpsed  (Read 2449 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
question for flpsed
« on: February 12, 2012, 04:08:18 AM »
I try to compile this software designed for .ps editing (and indirectly pdf) http://www.ecademix.com/JohannesHofmann/flpsed.html

I have these errors when compiling:

Code: [Select]
tc@box:~/flpsed-0.7.0/flpsed-0.7.0$ make
make  all-recursive
make[1]: Entering directory `/home/tc/flpsed-0.7.0/flpsed-0.7.0'
Making all in src
make[2]: Entering directory `/home/tc/flpsed-0.7.0/flpsed-0.7.0/src'
g++  -I/usr/local/include -march=i486 -mtune=i686 -Os -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -g -O2   -o flpsed GsWidget.o PSEditWidget.o PSEditor.o PSEditText.o PSEditModel.o Postscript.o PostscriptDSC.o flpsed.o util.o  -lX11 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lfltk -lXext -lpthread -ldl -lm -lX11
flpsed.o: In function `color_cb(Fl_Widget*, void*)':
/home/tc/flpsed-0.7.0/flpsed-0.7.0/src/flpsed.cxx:395: undefined reference to `fl_color_chooser(char const*, unsigned char&, unsigned char&, unsigned char&, int)'
flpsed.o: In function `scroll_to_begin':
/home/tc/flpsed-0.7.0/flpsed-0.7.0/src/flpsed.cxx:80: undefined reference to `Fl_Scroll::scroll_to(int, int)'
flpsed.o: In function `scroll_to_end':
/home/tc/flpsed-0.7.0/flpsed-0.7.0/src/flpsed.cxx:89: undefined reference to `Fl_Scroll::scroll_to(int, int)'
flpsed.o:(.rodata._ZTV15Fl_Hold_Browser[vtable for Fl_Hold_Browser]+0x3c): undefined reference to `Fl_Browser::item_last() const'
flpsed.o:(.rodata._ZTV15Fl_Hold_Browser[vtable for Fl_Hold_Browser]+0x50): undefined reference to `Fl_Browser::item_text(void*) const'
PSEditText.o: In function `PSEditText::rm_char()':
/home/tc/flpsed-0.7.0/flpsed-0.7.0/src/PSEditText.cxx:57: undefined reference to `fl_utf8back'
Postscript.o: In function `utf8len':
/home/tc/flpsed-0.7.0/flpsed-0.7.0/src/Postscript.cxx:351: undefined reference to `fl_utf8decode'
collect2: ld returned 1 exit status
make[2]: *** [flpsed] Error 1
make[2]: Leaving directory `/home/tc/flpsed-0.7.0/flpsed-0.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tc/flpsed-0.7.0/flpsed-0.7.0'
make: *** [all] Error 2
tc@box:~/flpsed-0.7.0/flpsed-0.7.0$

Anyone have any idea?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: question for flpsed
« Reply #1 on: February 12, 2012, 04:34:05 AM »
It needs fltk 1.3, are you building with 1.1?
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: question for flpsed
« Reply #2 on: February 12, 2012, 04:55:02 AM »
in the repo is also fltk 1.3, after install this dev I need to specify a different path to use it?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: question for flpsed
« Reply #3 on: February 12, 2012, 09:25:31 AM »
Not sure, maybe remove the fltk 1.1 libs and includes in /usr/{lib,include} for that session?
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: question for flpsed
« Reply #4 on: February 12, 2012, 11:52:49 PM »
Curaga, you were right, it took me a lot because I made a script to delete the contents of a package (I'm not good at these things)

Code: [Select]
#!/bin/sh
tce-load -i squashfs-tools-4.x &>/dev/null &&
rm -rf ./squaz &&
unsquashfs -f -d squaz $1 &>/dev/null &&
REMOVE=$(find ./squaz -not -type d | sed -e 's/.\/squaz\///g' | sed -e 's/^/sudo rm -rf \//' )
$REMOVE
echo $REMOVE | sed -e 's/sudo/\nsudo/g' | sed -e '$s/$/\n/' &&
echo $1 ARE BLASTED! | sed -e '$s/$/\n/' &&
rm -rf ./squaz &>/dev/null

it compiles and runs, but it's just an annotator! fool that I am!
If nothing else, I think that when I get time I'll do the same the package.

Currently the only way to edit a pdf is LibreOffice but does not do a good job, i will ask opinions on a new topic.

thanks curaga

P.s.  fltk-1.10.tcz don't have .list file, i report it in another new post
« Last Edit: February 13, 2012, 12:03:13 AM by vinnie »