SliTaz SliTaz Forum

You are not logged in.

#1 2022-02-01 20:17:13

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Help for compiling kompozer-0.8b3-src.tar.bz2

Dear friends,

on https://mirror1.slitaz.org/sources/packages-undigest/k/ I see that someone has started in 2012-Mar-07 to prepare the source code for kompozer. I have to state that I am a regular user of Slitaz but have not a little bit of experience with compiling such a thing so that it runs on a recent kernel and Slitaz installation. In addition I have no idea how long it takes to prepare that.

Anybody here to help out with that?

Offline

#2 2022-02-02 09:03:48

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

You can work on komposer receipt:

https://hg.slitaz.org/wok-undigest/file/tip/kompozer

$ cd /home/slitaz/ ; hg checkout wok-undigest ; ls kompozer

Offline

#3 2022-02-03 08:43:26

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Thanks a lot, @Bellard. A big step forward for me -  I will try to solve this together with some Linux-friends here. And report here about it, of course.

[Off topic: where do  I find a suitable scheme for supporting Slitaz without using Paypal? Normal banking transfers using IBAN?]

Offline

#4 2022-02-04 10:46:50

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

@Bellard

I tried it. But I failed. I found the centent that you mentioned with ease. But:

- there is no /home/slitaz

- I installed hg. But there is no command "checkout" wit hg. "hg --help" dos not find it.

I never worked with wok. So it stops here. ;-(

Offline

#5 2022-02-04 20:11:57

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

In the past I had compiled it, now I tried again, but I get stuck at this error:

./../xul/base/src/nsStackFrame.h:55:19: error: friend declaration of ‘nsresult NS_NewStackFrame(nsIPresShell*, nsIFrame**, nsIBoxLayout*)’ specifies default arguments and isn’t a definition [-fpermissive]

   55 |   friend nsresult NS_NewStackFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame, nsIBoxLayout* aLayout = nsnull);

      |                   ^~~~~~~~~~~~~~~~

for sources just wget

wget https://mirror1.slitaz.org/sources/packages-undigest/k/kompozer-0.8b3-src.tar.bz2

tar -xvf kompozer-0.8b3-src.tar.bz2

cd mozilla

Offline

#6 2022-02-04 21:13:52

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Thanks a big lot, dear @Gibor! Yes, I remember well as I had used your result for years. Forgive me but I am not able to digest this error message in any productive way. All I can hope is that somebody „adventurous“ enough may find it interesting and will give it a try. Above my horizon! :-(

This was meant serious:

[Off topic: where do I find a suitable scheme for supporting Slitaz without using Paypal? Normal banking transfers using IBAN?]

Offline

#7 2022-02-06 08:36:58

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Hi, I'm just a frequent visitor of this site, I don't know anything especially about the administrative part of slitaz. I only know that it is currently hosted by Shann on his corporate server (I think) and if you want clarification it is better that you contact him or directly to Pankso.

For Kompozer, I can't guarantee anything, I'll see if I can still come up with something. I've always liked the challenges of updating the sources of old packages. If I get something useful I'll post it here.

Greetings from Italy to all.

-------------------------------------------------------------------------

Ciao, Sono solo un assiduo frequentatore di questo sito, non conosco niente sopratutto della parte amministrativa di slitaz. So solo che attualmente è ospitato da Shann sul suo server aziendale (credo) e se vuoi chiarimenti è meglio che ti rivolgiti a lui oppure direttamente a Pankso.

Per Kompozer non ti garantisco niente, vedrò se riesco a tirare fuori ancora qualcosa. Mi sono sempre piaciute le sfide di aggiornare i sorgenti di vecchi pacchetti. Se arrivo a qualcosa di utile te lo posterò qui.

Saluti dall'Italia a tutti.

Offline

#8 2022-02-06 15:10:16

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Hi there,

I tried to compile kompozer-0.8b3 in my wok.

The gnome-vfs-dev pakage needs to be added in the build depends in the receipt.

But it still remains a problem:

[c]../../../dist/include/system_wrappers/pango/pangox.h:3:31: fatal error: pango/pangox.h: No such file or directory

compilation terminated.[/c]

and yet the file does exist...

I don't find from what this error comes from. Any hints?

Offline

#9 2022-02-06 16:09:38

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Ceel, first at all get from source pangox-compact

https://github.com/behdad/pangox-compat

and make other multiple patch to build

xpcom/glue/nsBaseHashtable.h

xpcom/glue/nsClassHashtable.h

xpcom/glue/nsInterfaceHashtable.h

modules/libpr0n/decoders/png/nsPNGDecoder.cpp

modules/libpr0n/encoders/png/nsPNGEncoder.cpp

xpcom/glue/nsRefPtrHashtable.h

search on web for detail

Offline

#10 2022-02-06 20:56:31

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Gentlemen,

thanks a big lot for your efforts. I can only cross my fingers for a happy end! Sorry, this is above my IT-horizon.

But I should tell the reasons why I am so eager to use this age-old software: one can mark a paragraph on a website, copy it with ctrl-c and paste it directly into another html-site opened with Kompozer including all the embedded links! If one has to work a lot with excerpts from websites like I do it this is a valuable feature that saves a lot of time. - This has not changed since my first start with Slitaz, 2.0 as I remember.

Ceterum: This was meant serious!

[Off topic: where do I find a suitable scheme for supporting Slitaz without using Paypal? Normal banking transfers using IBAN?]

Offline

#11 2022-02-07 19:06:53

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Two pieces of news, one good and one bad.

The good I got to the end of the compilation on my 64bit build and it starts up....

[attachment=50521,3186]

The bad as soon as I move the mouse it crashes

run-mozilla.sh: line 131: 1738 Segmentation fault "$prog" ${1+"$@"}

well i tried ;-)

----------------------------------------------------------------------

Due notizie: una buona e una cattiva.

La buona sono arrivato alla fine della compilazione sulla mia build a 64bit e si avvia...

La cattiva appena muovo il mouse va in crash

run-mozilla.sh: riga 131:  1738 Errore di segmentazione "$prog" ${1+"$@"}

vabbè ci ho provato ;-)

Offline

#12 2022-02-07 21:34:59

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

@gibor:

First: great! Chapeau! And thanks for your patience!

And now the question to the real experienced readers: what can this mean?

In Germany we tend to say: this is far beyond where my command of Latin ends! :-(

Offline

#13 2022-02-08 09:59:24

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Here I have and use several versions of Slitaz 5.0. Only on one of them Kompozer runs:

SliTaz GNU/Linux - 5.0-RC4 20190308

The system, tazpanel - packages, tells me that 269 package are there which might be updated. I know from several such trials that in case I update it Kompozer will no longer run. So within this amount of packages there must be at least one „culprit“ that poisons the application.

I cannot see a way how to find that culprit. It has nothing to do with the kernel. If I boot this installation using the vmlinuz-3.16.55-slitaz64 kernel Kompozer still runs.

Regards and thanks for your engagement,

Michael

Offline

#14 2022-02-09 12:14:13

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

They are all 32bit versions... anyway starting from a basic installation of slitaz rolling, or from the live version, these are the commands for compiling kompozer

tazpkg -gi slitaz-toolchain

tazpkg -gi perl

tazpkg -gi zip

tazpkg -gi pkg-config

tazpkg -gi gtk+-dev gtk-girepository

tazpkg -gi libXaw3dXft-dev pango-dev xorg-libXft-dev

tazpkg -gi libIDL

ln -s /usr/include/pango-1.0/pango /usr/include/pango

from the sources of pangox-compact take pangox.h

cp -a pangox.h /usr/include/pango/

tar -xvf kompozer-0.8b3-src.tar.bz2

cd mozilla

> .mozconfig

echo ac_add_options --enable-application=composer > .mozconfig

cp -a security/coreconf/Linux2.6.mk security/coreconf/Linux3.16.mk

./configure --prefix=/usr --disable-glibtest --disable-libIDLtest --disable-updater --disable-tests  --enable-system-cairo --enable-installer

make

.....

su

make install

exit

kompozer

Now you can try it too.

And if no one adds the package to the repositories, I'll try to share my build for you.

Offline

#15 2022-02-11 11:36:26

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Thanks again a big lot, dear Gibor! I will try it, together with a Linux friend here, as I never did any compiling until now. Would it be possible to get the one you managed to do? - I have no idea how to add this to the repository. - As a kind of revenge I offer to you to apply my qualifications (I am a biologist) but in a peer-to-peer way only. If interested just write an e-mail to timokino@posteo.de.

Offline

#16 2022-02-11 14:16:59

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Non fraintendermi, scrivo in italiano poi traduco sperando di farti capire meglio il mio pensiero.

Ho messo le istruzioni per compilare kompozer, solo per la sua semplicità nel farle. Basta un terminale con copia incolla i comandi e una mezzora di tempo per ottenere il tutto.

Un capitolo a parte per i repository slitaz.

Non conosco gli strumenti ufficiali come i cook taz... e compagnia,  e nemmeno mi interessano. Tant'è che basandomi su semplici comandi di compilazione ricavo ugualmente tutto quello che voglio.

So che su slitaz per principio sezionano in sottopacchetti più o meno tutto. Questo per limarne fino all'osso la dimensione. Questa cosa può trovare logica in una live, ma in installazioni ordinarie la trovo un accanimento superfluo.

Qui il link di kompozer.tazpkg già pronto. Non so se sarà operativo al 100% per i tuoi scopi, ma dalle poche prove che ho fatto, si apre e non rilevo crash nell'immediato.

https://disk.yandex.com/d/QqAIpp0xMwDh0w

Buona giornata michaelbischof ;-)

Don't get me wrong, I write in Italian then translate hoping to make you understand my thoughts better.

I put the instructions to compile kompozer, just for the simplicity of doing it. Just a terminal with copy paste commands and half an hour of time to get it all.

A separate chapter for the slitaz repositories.

I don't know the official tools like cook taz.... and company, nor do I care about them. So much so that relying on simple build commands I get everything I want anyway.

I know that on slitaz on principle they dissect in subpackages more or less everything. This is to limit the size to the bone. This can be logical in a live installation, but in ordinary installations I find it a superfluous overkill.

Here is the link of kompozer.tazpkg ready. I don't know if it will be 100% operational for your purposes, but from the few tests I've done, it opens and I don't detect any immediate crash.

https://disk.yandex.com/d/QqAIpp0xMwDh0w

Good day michaelbischof ;-)

Offline

#17 2022-02-12 13:29:46

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Great, Gibor! It works like a charm. And it even survived an update to the latest packages. In such a case I make a comlete installation backup before I do it. But it works!

The compiling I will try with a Linux friend but later and  I will report here, fore sure!

Offline

#18 2022-02-18 09:13:24

HGT
Administrator
From: Germany
Registered: 2016-03-25
Posts: 170

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

There is a recipe in the cooking wok, but compiling fails.

Maybe it must be compiled on a 32-bit SliTaz?

Offline

#19 2022-02-18 11:10:14

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

compiled in the fresh installed rolling (web) with the above commands and with the pangox-compact source trick

ps: tazinst in the iso wants updated

Offline

#20 2022-03-02 11:37:33

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

Hello, back to my wok.

@gibor,

Thank you for your answer. pangox-compat was missing in the build depends of the undigest receipt...

But as for HGT, compiling failed (I use a 32bit system). I tried to compile following exactly your way (that is not really different of the SliTaz receipt) and got the same error. I think a package is still missing in BUILD_DEPENDS.

For the moment, I give up. I'll come back to it later.

Offline

#21 2022-03-06 10:09:44

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Help for compiling kompozer-0.8b3-src.tar.bz2

I don't know the tools you use for cooking, however I think you can still patch the sources. For pangox-compat the compilation seems to be successful only by editing pangox.c

--- pangox.c    2022-03-06 10:59:18.917429726 +0100

+++ pangox.c 2022-03-06 11:01:41.459647703 +0100

@@ -279,7 +279,6 @@

   font_class->describe = pango_x_font_describe;

   font_class->get_coverage = pango_x_font_get_coverage;

-  font_class->find_shaper = pango_x_font_find_shaper;

   font_class->get_glyph_extents = pango_x_font_get_glyph_extents;

   font_class->get_metrics = pango_x_font_get_metrics;

   font_class->get_font_map = pango_x_font_get_font_map;

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]