Donnerstag, 29. September 2016

Abi makes it frustating :)



So to get abiword running i need libgsf
so i tried serveral things to geht it building

PulkoMandy suggested adding some flags to haikuporter to find out the problems with the recepie:

haikuporter -qvS libgsf_x86-1.14.18
still no succsess, and still the same error.
So i ended up deleting haikuporter and haikuports and checking out everything again 
I found this suggestion in some chatlogs but also : no success :(
So i decided to try it outside of haikuporter to see whats really happening and mabye make a lib without the haikuporter hell... and just jusing this lib.
So i copied the source url out of the recepie to check if its even downloadble

unpacked it and ran
./configure

this tolde me intlool is to odl
hmm nice the first time that i was greeted with a well understanable feedback from a configure script.. nice.
so finding this i did a
pkgman search intltool
pkgman install intltool
./configure
This told me its missing gettext
pkgman search gettext

still some errors so i decided maybe a mor up to date version would help
i downloaded the 1.14.40 version
http://ftp.acc.umu.se/pub/GNOME/sources/libgsf/1.14/

and rememenberd that i need the x86 version since abiword needs boots wich is only available in x86 so i did a
setarch x86 
checked if intlool and gettext for x86 are installed.. then
./configure
Year sucess configure at last went through.. that was incredible..so i had a lot of hope and typed in
make ENTER
It felt really good to see the on surcefile sucessfully compiled after a nother
until i again was greetet with an error
error
/bin/grep: /packages/gettext_x86-0.18.1.1-6/.self/develop/lib/x86/libintl.la: No such file or directory
/bin/sed: can't read /packages/gettext_x86-0.18.1.1-6/.self/develop/lib/x86/libintl.la: No such file or directory
libtool:   error: '/packages/gettext_x86-0.18.1.1-6/.self/develop/lib/x86/libintl.la' is not a valid libtool archive
Makefile:637: recipe for target 'libgsf-1.la' failed
make[2]: *** [libgsf-1.la] Error 1
make[2]: Leaving directory '/boot/home/downloads/libgsf-1.14.40/gsf'
Makefile:543: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/boot/home/downloads/libgsf-1.14.40'
Makefile:446: recipe for target 'all' failed
make: *** [all] Error 2

At this point i asked some people on irc miqlas-H tried to help but still no sucess.. gettext is  install but it looks like some iportant libs are missing ;(

Dienstag, 27. September 2016

The abi trouble :)

So how to start porting?

Day one:
Of corse the first thing was checking out the source. I used the github mirror of the svn repository because i starting to get used to git ;-)

I tried to follow the documentation how to build abiword it didnt worked out Since they dont use anymore.
./configure 
But this was not documented. Since i am Not a buildsytem pro
It lasted a while until i discovered the
autoconf
Running the autogen.sh gave some errors:

m4:configure.ac:226: cannot open `m4/plugin-list.m4': No such file or directory
m4:configure.ac:990: cannot open `m4/plugin-builtin.m4': No such file or directory
m4:configure.ac:992: cannot open `m4/plugin-configure.m4': No such file or directory
m4:configure.ac:1192: cannot open `m4/plugin-makefiles.m4': No such file or directory
autom4te: m4 failed with exit status: 1
While asking irc & google how to solve this Problem i cheked the listed dependencies. I really hoped that they the documentation at least had up to date dependencies.

So i did a:

pkgman install zlib_devel libpng_devel libiconv_devel fribidi_devel popt_devel


Day two:
Scanning through the help output of configure i Fond finally the switch to enable QT
So i did a:
autogen.sh  --enable-qt

To Fond me greeted with this warnings / errors:
libtoolize: Remember to add `LT_INIT' to configure.ac.
plugins/collab/backends/telepathy/unix/Makefile.am:21: warning: '%'-style pattern rules are a GNU make extension
./configure: line 17820: syntax error near unexpected token `-Werror=unknown-warning-option,'
./configure: line 17820: `AX_CHECK_COMPILE_FLAG(-Werror=unknown-warning-option,'
Thanks to the help from korli and PulkoMandy i understood that there where mitsingen autoconf archive files
I did a git clone of the autoconf archive repo ..after some trys to "install" it, i realized that i just need to copy the m4 Files from this repo into the m4 folder of the cloned abiword sourcetree.
Btw the abiword irc didnt responded once to my questions...

After running autogen again i saw that i was missing the boost libs .. since they are only available in _x86
I did a:

setarch x86

pkgman install glib2_x86 fribidi_x86
pango_x86 cairo_x86 boost_x86

Configure at least run way longer
But it told me what libs are missing:

  • Libgsf (there is a brocken recepie in haikuporter)
  • Wv (abiword lib for reading doc files but it also need libgsf)
  • Goffice (maybe only for one of the plugins?... i need to research this further)
  • Some more i didnt checked yet
I think i will only find time to continue work on this next week

Abiword reloaded

A little more than a week ago took a look at the Abiword repository. There was a discussion on discuss.haiku-os.org about a wordprocessor for haiku. Since i didnt want to say something wrong about the activity state. I was suprised when i saw a commit regarding QT:

http://www.abisource.com/viewvc/abiword/trunk/configure.ac?r1=35331&r2=35332&pathrev=35332

Since QT is running on haiku this made me think again.

The last Information i had about the qt port of Abiword was:

1. It was not complete
2. Since the gsoc project from 2013 it was not maintained

Seeing this commit made me hope again.
I decided to take a look into abiword again also my decicion i took last year.

Bulding abiword with qt on haiku looks like the fastest way to get a working word processor.

The other way would be  implementing everything from ground up.

There are already some thought about this too. going on in the background.. there are already some informations gathered, just take a look at:
https://github.com/PoetryOffice