OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - Arch Linux ARM support => Topic started by: ArchiMark on November 10, 2015, 09:52:08 am

Title: Beeswax - Install Issue
Post by: ArchiMark on November 10, 2015, 09:52:08 am
Found what appears to be a nice little outliner app but having an issue getting it installed....

Maybe someone can advise....

App installation instructions can be found here:

http://waxandwane.org/beeswax/installation.html (http://waxandwane.org/beeswax/installation.html)

When I do 'make' (from inside beeswax directory) I get:

Code: [Select]
# make
beeswax build options:
CFLAGS   = -Os -I, -I/usr/include -I/usr/include/libxml2 -DIVERSION="0.2.0"
LDFLAGS = -s -L/usr/lib -lxml2 -lz -ldl -lncurses -lreadline -luuid
CC          =  cc
CC main.c
In file included from main.c:22:0:
beeswax.h:20:28: fatal error:  ncurses/curses.h: No such file or directory
compilation terminated.
Makefile:21: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Per comment in instructions for installing on Mac OSX, I changed the line in 'beeswax.h' file to say 'ncurses' instead of 'ncursesw' as there is no 'ncursesw' available for ALARM that I can find either via pacman or packer.

Also, I set the development flags to be like this (taken from planetofidiots.com):

Code: [Select]
export CPPFLAGS=""
export CFLAGS="-mcpu=xscale -mtune=xscale -O2"
export CXXFLAGS="-mcpu=xscale -mtune=xscale -O2"

The 'fatal error' refers to 'ncurses/curses.h' not being found. In the beeswax directory I do not see a 'curses.h' file, but I do see a 'curses.c' file.

Any suggestions?

Thanks.
Title: Beeswax - Install Issue
Post by: danboid on November 10, 2015, 12:18:20 pm
Have you got ncurses installed? That contains curses.h, otherwise you may have to find where curses.h is and add the path to your INCLUDE statements.

pkgfile is your frend for stuff like this.

Well done on finding an app NOT in the AUR!
Title: Beeswax - Install Issue
Post by: ArchiMark on November 10, 2015, 03:20:33 pm
Quote from: danboid
Have you got ncurses installed?

Yes, ncurses is installed....

Quote
That contains curses.h, otherwise you may have to find where curses.h is and add the path to your INCLUDE statements.

OK, I get it......thanks.....


Quote
pkgfile is your frend for stuff like this.

Yes, you're right.....been a while since I did this....thanks for the reminder.....

Quote
Well done on finding an app NOT in the AUR!

Thank you....

Been checking out various websites regarding console CLI, ncurses, etc, apps....since X is not viable yet.....
And then one app somehow leads to another.....as I dig around online....

Fun....
Title: Beeswax - Install Issue
Post by: ArchiMark on November 11, 2015, 12:03:49 am
Located 'curses.h'

Added PATH to it in 'beeswax.h'

Ran make:

Code: [Select]
# make
beeswax build options:
CFLAGS   = -Os -I, -I/usr/include -I/usr/include/libxml2 -DIVERSION="0.2.0"
LDFLAGS = -s -L/usr/lib -lxml2 -lz -ldl -lncurses -lreadline -luuid
CC          =  cc
CC main.c
CC init.c
CC xml.c
CC curses.c
CC display.c

display.c: In function 'displayLine':  type name 'wint_t'
win_t bullet, note;
                                                                                 ^
Makefile:21: recipe for target 'display.o' failed

make: *** [display.o] Error 1

So, got a bit further......but......

[size=]UPDATE
[/size]
Figured it out....

Added these to beeswax.h:

#include <wchar.h>
#include <stdint.h>

So, good news is that I was able to build Beeswax.....

Bad news is that when I try to run in either console or twm, it doesn't run properly.....

The screen just flashes the Beeswax program headings for a split second on and off......after quitting program, I see:

Code: [Select]
Initial item
segmentation fault (core dumped)

So, looks like some debugging is needed.......
Title: Beeswax - Install Issue
Post by: greguu on December 08, 2015, 04:54:23 am
Quote from: ArchiMark
Located 'curses.h'

Added PATH to it in 'beeswax.h'

Ran make:

Code: [Select]
# make
beeswax build options:
CFLAGS   = -Os -I, -I/usr/include -I/usr/include/libxml2 -DIVERSION="0.2.0"
LDFLAGS = -s -L/usr/lib -lxml2 -lz -ldl -lncurses -lreadline -luuid
CC          =  cc
CC main.c
CC init.c
CC xml.c
CC curses.c
CC display.c

display.c: In function 'displayLine':  type name 'wint_t'
win_t bullet, note;
                                                                                 ^
Makefile:21: recipe for target 'display.o' failed

make: *** [display.o] Error 1

So, got a bit further......but......

[size=]UPDATE
[/size]
Figured it out....

Added these to beeswax.h:

#include <wchar.h>
#include <stdint.h>

So, good news is that I was able to build Beeswax.....

Bad news is that when I try to run in either console or twm, it doesn't run properly.....

The screen just flashes the Beeswax program headings for a split second on and off......after quitting program, I see:

Code: [Select]
Initial item
segmentation fault (core dumped)

So, looks like some debugging is needed.......

Hi ArchiMark,

again, I might not be much of help, but did you compile natively on the Z ?

The app you tried to compile is quite old, maybe even not maintained anymore and therefore incompatible.

Maybe another application, that is available in the arch repo does the same job ?

Cheers.
Title: Beeswax - Install Issue
Post by: ArchiMark on December 08, 2015, 09:31:55 am
Yes, I compiled on Z......

You're right that program is old.....sent email to developer, but never got reply....he probably stopped supporting it long time ago...

In meantime, I have found other programs....

Thanks for your input, daalnroti!

Mark