Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 20:50
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
SOLVED:How to use Abiword-2.8.2 external browser component?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Mon 15 Feb 2010, 01:35    Post subject:  SOLVED:How to use Abiword-2.8.2 external browser component?  

EDIT: SOLVED - compiled in 4.2.1 - due to gtk version <2.14 prior to 4.3 series Puppy it will lock up on the "plugins" menu and maybe others (due to missing gtkbuilder component?) - works great in 4.3 series though
Here is the new thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=52591

Abiword builds have been broken in Puppy since the 2.8.X series, specifically the presentation plugin and external browser usage.
My research on the external browser function (required for google, online dictionary, wikipedia, translation and other plugins) has brought me to a dead end. Here are my findings:

1. Abiword supposedly looks for a BROWSER environment variable
I added BROWSER="mozilla" and export BROWSER to /etc/profile and restarted - no effect (puppy uses mozstart, but it is not one of the accepted variables)
2. I ran "strace abiword 2>abistrace" and tried using the browser functions. Abiword was looking for "foo" in path... so I made a link from /usr/bin/mozilla to /usr/bin/foo. That did not work either.
3. I traced these calls in the source to getApp and openURL
all of this still yield "Warning operation not supported"
4. I recompiled with debugging enabled - did not yield any further info
5. I am now stuck unless I learn the abi-api to figure out why opening an external browser is no longer supported in Puppy since either 2.7.9 or 2.7.10

alternative - make a global hot-keyable plugin (/root/.jwm/jwmpersonal)
GOOGLE (suggest ctrl+alt+g)
Code:
#!/bin/sh
if [ ! $1 ];then
MYWORD=`xclip -o`
else
MYWORD=$@
fi
#only works if it is already open - need a check
seamonkey -remote "openurl(http://www.google.com/search?num=100&q=$MYWORD,NEW-TAB)"


AIKSAURUS (suggest ctrl+alt+t)
Code:
#!/bin/sh
if [ ! $1 ];then
MYWORD=`xclip -o`
else
MYWORD=$@
fi
gaiksaurus $MYWORD
abiword_NLS-2.8.2-i486.pet
Description 
pet

 Download 
Filename  abiword_NLS-2.8.2-i486.pet 
Filesize  1.42 MB 
Downloaded  448 Time(s) 
abiword-2.8.2-i486.pet
Description 
pet

 Download 
Filename  abiword-2.8.2-i486.pet 
Filesize  1.93 MB 
Downloaded  448 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Wed 17 Feb 2010, 11:00; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 16 Feb 2010, 11:50    Post subject:  

Ok, just out of curiosity I tracked the timeline of the failures back to about the time when I switched to woof built Puppy's for compiling. Although the smp support makes compiling much faster in 4.3.X, something somehow affects the compilation of abiword as it compiled fine with browser support in 4.2.1. Perhaps this is an abiword bug though ... it does check for gtk 2.14 and thus uses different code in 4.2.X, so maybe it is checking for 2.14+ when it really needs to be checking for 2.16+ (however installing 2.16 or 2.18 did not help - maybe I forgot to build with enable deprecated or something?)... Anyhow the end result is that I will go back to compiling abiword in 4.2 - I just wish it weren't so sloooow. Also upgrading libwv to a new release breaks support for images so that will remain unless someone can produce a new working build.

btw I also may have noted librsvg was missing its .pc file in the devx in 4.3.x (need to verify with a clean sfs) - good to know if you are compiling against it. (I have updated packages if anyone needs them)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1034
Location: Smithers, BC, Canada

PostPosted: Tue 16 Feb 2010, 12:27    Post subject:  

Technosaurus,
Thanks for this. I have been using your abiword-2.8.1-i486.pet in Puppy431 as it does the best job of dealing with .docx files of any non-MS word processor I have tried. (Starting to get more of these from my coworkers who don't appreciate the joy of using Puppy on the job) Very Happy This latest version works equally well.

I found that when I installed it in Puppy431 I had to create this symlink to get it running:
Code:
ln -s /usr/lib/libgoffice-0.6.so.6.0.3 /usr/lib/libgoffice-0.8.so.8


Would you mind posting your ./configure options? I'm trying to puzzle out compiling Confused and would like to try duplicating your work here.

Thanks, J
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 16 Feb 2010, 12:41    Post subject:  

You may prefer to wait for my 4.2.x compile - all of the builtin plugins (including browser-based) work and there is no goffice dependency... I was in the process of rebuilding it with the other "non-build-in-able" plugins when I left the house this morning. The updated libwv that was statically compiled in may be the cause of the better docx in the 2.8.1, but .... there is always a but - it seems that newer libwv causes problems with images & I can't seem to figure out exactly why.

My first attempt at 2.8.2 with all possible builtin plugins using 4.2.X worked great but because of my overzealous optimizations it fails if you try to add any plugins later on (I view that as an unacceptable bug)... so it is recompiling now and will sacrifice about 100kb to be more functional

the compile options will come up on my development series builds if you google "technosaurus abiword site:murga-linux.com"
btw... there is a new builtin plugin called garble since then

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 16 Feb 2010, 21:56    Post subject:  

I now have a working build from building in the 4.2 series - strangely though >tools>plugins caused a crash in 4.2.1 - works great in 4.3 though and now the browser plugins work too .... solution - PFM?

pass 1
CFLAGS=" -pipe -combine -Os -momit-leaf-frame-pointer -fomit-frame-pointer \
-fmerge-all-constants -march=i486 -mtune=i686 " \
LDFLAGS=" -Wl,-O4,-Os,-relax,--sort-common,-s " \
CXXFLAGS=" -pipe -combine -Os -momit-leaf-frame-pointer -fomit-frame-pointer \
-fmerge-all-constants -march=i486 -mtune=i686 " \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu --disable-default-plugins --enable-builtin-plugins="applix babelfish bmp clarisworks docbook eml freetranslation gdict gimp google hancom hrtext iscii kword latex loadbindings mif opendocument openwriter openxml opml paint passepartout pdb pdf presentation s5 sdw t602 urldict wikipedia wml xslfo" --enable-plugins="aiksaurus garble mht ots psion collab wmf wordperfect wpg mswrite" (note that grammar is not included, but a previous compile from 4.3.1 seems to work)

pass 2 (after running make and new2dir make install)
add --disable-shared and run make again
copy the abiword binary in /src to the /usr/bin and delete libabiword from /usr/lib

(beware of -fmerge-all-constants though I think it or combining it with -ffunction-sections, -fdata-sections and the ldflag --gc-sections may have broken loadable plugins)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Sat 24 Mar 2012, 13:32    Post subject:  

tecnosaurus, I think we have finally solved this, with help from several Abiword developers. It seems that the problem was gnomevfs, but simply compiling without it didn't help. Anyway, here is the patch that I used as the basis of mods that have resulted in the Help working.

http://www.murga-linux.com/puppy/viewtopic.php?p=614279#614279
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0676s ][ Queries: 13 (0.0071s) ][ GZIP on ]