Samstag, 8. Oktober 2016

multiple projects :)

Trying somehow to get  the QT Port of Abiword running in haiku ... is not the nicest work... so i use my time when i am frustraded
So i look into my other projects
One of them is getting familiar with the TextView from HaikuDepot.
Stippi implemented it and its already far developed. It supports Paragraphs and so on

I wrote took the source and experimented with it a little.. thinking about to make a improoved StyleEdit out of it...
But there are a lot of stuff missing like

  • Setting Charaker Styles / Font of a an exisiting Paragraph 
  • Undo and Redo
  • and some more Stuff
During my "Test" i found that a good fonpanle would be necessary for a improoved StyleEdit, since i also need one for projectconceptor  and there is a need also for other projects for a good fontpanel i decided to take the step and start to develop one.
A Keypart of a Fontpanel and maybe later also of a FontComboBox would be a BView wich displays the FontName.
So My idea was / is now to show not only the name, but also a preview string wich shows how the Font looks
i started to implement it as a BList. The only thing is i need to calculate the size of the font name..
Thinking about what haiku offerst i took the decision to use BColumnListView
and started to implement a FontField for it and also a FontColumn and so on.
Only to understand that BColumnListView maybe does the calculation for you but also you will always have a Title above the List. This is something wich is not really good if i also want to use it e.g. for a FontComboxo.
So reverted everything went back to the BList Implementation and wrote the calculation buy myself.

Still its far away from perfekt its missing

  • disable and enabling the fontpreview Colum 
  • the position of the previewString is not correct calculated (need an rewrite)
  • Truncating the Strings if the Widht is not big enought isnt implemented at all
So still a lot of work there but its kind of working for now..

But for now i am happy and can start implementing the the FontPanel
TestProgramm for the haikudepottextview with added fontlist 

the libgsf again

Trying to build libgsf
i did a checkout of the lates source and tried to compiled it without haikuporter..
no succsess error
 /packages/gettext_x86-0.18.1.1-6/.self/develop/lib/x86/libintl.la:

so i again tried it over haikuporter
i needed to fix the recepie 1.14.18

ARCHITECTURES="!x86_gcc2" to ARCHITECTURES="!x86_gcc2 x86"
and added SECONDARY_ARCHITECTURES="x86"

at least it now recepie where take from haikuporter without warning
but i got
/sources/libgsf-1.14.18/gsf/gsf-output.h:41: argument format specified for non-function `Vprintf'

So maybe a newer version solved this problem:

Updated the recepie to 1.14.4

SOURCE_URI="http://ftp.acc.umu.se/pub/GNOME/sources/libgsf/1.14/libgsf-$portVersion.tar.bz2"
CHECKSUM_SHA256="e68ee826bda241ac847420043f0335c1c84cdf7ee772d672ae392ff21815e7f0"
REVISION="1"
ARCHITECTURES="!x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"

no sucsess

So i followed PulkoMandys hint and enabled chroot


haikuporter -E --get-dependencies libgsf_x86
tried to work directly on the source
because vprintf is in stdio.h i added this header to /libgsf-1.14.18/gsf/gsf-output.h
only to be greeted with a nother error: 

/sources/libgsf-1.14.18/gsf/gsf-output.h:42: argument format specified for non-function `Vprintf'

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

Donnerstag, 2. April 2015

Someone died - How real can it get for you?

Last week we put out a death notice in our showcase for our church. its a death notice about a jung person wich was killed within the age of 33.
We want to hold a commemoration on friday for this person and invited over a poster to this service.
A lot of people asked us because they wanted to know if this person was one of our members or someone they maybe kow from sunday meeting.

Sonntag, 29. März 2015

Where do i stand?

Today our service was lead buy our jouth group.
It was a blessing experience.
The challanged us. Jesus was greetet in Jerusalm with a great prais and so on. There where tree (or even more) different groups of people.
One where the deciples who where really close follwed him and even put the cloth on the the donkey. There where the people standing on the road prasing him... but 3 Days later this people where screaming cruzify him. And there where the others... wo really didnt know so much about Jesus they where asking. Who is this.
So who do you will be? One of the deciples, one of the people who like it if they are close to jesus but forget about everything and some days later will turn there back on him or are you one who not yet know something about him?