Author Topic: Beeswax - Install Issue  (Read 4924 times)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Beeswax - Install Issue
« 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

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.
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Beeswax - Install Issue
« Reply #1 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!
« Last Edit: November 10, 2015, 12:18:46 pm by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Beeswax - Install Issue
« Reply #2 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....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Beeswax - Install Issue
« Reply #3 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.......
« Last Edit: November 11, 2015, 11:02:11 am by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Beeswax - Install Issue
« Reply #4 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.
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Beeswax - Install Issue
« Reply #5 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
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/