BaCon Bits

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#161 Post by seaside »

Ok, it looks like it has to compile from bacon.bash using bash 4 or bash above 3.

Attached is the Bacon-2.1.2 binary below, in case anyone would like it.

Bacongui still starts slowly first time.

Cheers,
s
Attachments
bacon-2.1.2.tar.gz
bacon-2.1.2 binary compiled in bash 4
(117.7 KiB) Downloaded 399 times

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#162 Post by sunburnt »

You found the problem before I had a chance to help.!!! Damn it.! :lol:

Yep, Bash-4 is required to compile any newer BaCon files.
I had to patch Puppy-5.4.X.5 and it`s new enough that it should have had 4.!

# Q: What kinds of things are you working/planning on for BaCon?

I`m working on a enhancement that will load/copy SUB/FUNCs to any level.
So SUB/FUNC dependencies can be chained allowing truly reusable code.
SUB/FUNCs currently are only 1 level deep and 1 raw code file beyond that.
So SUB/FUNC libraries will be able to use anyone`s libraries, on and on, etc.

It then writes the HUG INCLUDE and INIT lines, so this is automated,
This is needed as SUBs and FUNCs. can contain HUG widgets.
Then runs bacon on the file to convert and compile it in the normal manner.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#163 Post by seaside »

sunburnt wrote:You found the problem before I had a chance to help.!!! Damn it.! :lol:

Yep, Bash-4 is required to compile any newer BaCon files.
I had to patch Puppy-5.4.X.5 and it`s new enough that it should have had 4.!

# Q: What kinds of things are you working/planning on for BaCon?

I`m working on a enhancement that will load/copy SUB/FUNCs to any level.
So SUB/FUNC dependencies can be chained allowing truly reusable code.
SUB/FUNCs currently are only 1 level deep and 1 raw code file beyond that.
So SUB/FUNC libraries will be able to use anyone`s libraries, on and on, etc.

It then writes the HUG INCLUDE and INIT lines, so this is automated,
This is needed as SUBs and FUNCs. can contain HUG widgets.
Then runs bacon on the file to convert and compile it in the normal manner.
sunburnt,

It is a very rare occasion that I would find out something before you had a chance to..... I'll try to make sure it won't happen again :) (that will not be difficult) :)

I didn't bother to install bash4, I just have the bash4 binary and run "#bash4 bacon.bash bacon.bac" which produces the bacon binary which works just fine in bash 3.

I don't really have anything particular in mind for bacon (perhaps because almost everything that crosses my mind is more in the "tool" category which seems just about as quick in bash as being compiled)

Your work in Bacon sounds interesting and I'll have to check out what you're doing over at the Bacon forum.

Best Regards,
s

NinerSevenTango
Posts: 186
Joined: Sun 17 Jun 2007, 18:25

#164 Post by NinerSevenTango »

seaside wrote:Ok, it looks like it has to compile from bacon.bash using bash 4 or bash above 3.

Attached is the Bacon-2.1.2 binary below, in case anyone would like it.

Bacongui still starts slowly first time.

Cheers,
s
Thank you for that. I downloaded and extracted it, then renamed the file that was in /usr/bin and copied the new one there. When I try to compile bacongui.bac

I get the same error.

Dunno what I'm doing wrong. Also on searching, I see there is a file for (older?) bacongui already there. The reason I was trying to compile it in the first place was because I didn't know it was there, hehe. If there is a launcher for it somewhere in Racy's menu system I didn't find it. LOL.

--97T--

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#165 Post by seaside »

NinerSevenTango wrote:
seaside wrote:Ok, it looks like it has to compile from bacon.bash using bash 4 or bash above 3.

Attached is the Bacon-2.1.2 binary below, in case anyone would like it.

Bacongui still starts slowly first time.

Cheers,
s
Thank you for that. I downloaded and extracted it, then renamed the file that was in /usr/bin and copied the new one there. When I try to compile bacongui.bac

I get the same error.

Dunno what I'm doing wrong. Also on searching, I see there is a file for (older?) bacongui already there. The reason I was trying to compile it in the first place was because I didn't know it was there, hehe. If there is a launcher for it somewhere in Racy's menu system I didn't find it. LOL.

--97T--
NinerSevenTango,

Well, I'm not sure why that happened, but here's a copy of the 2.1.2-bacongui.

Cheers,
s
Attachments
bacongui-2.1.2.tar.gz
bacongui-2.1.2
(146.3 KiB) Downloaded 399 times

NinerSevenTango
Posts: 186
Joined: Sun 17 Jun 2007, 18:25

#166 Post by NinerSevenTango »

Disregard, got it sorted. What I ended up doing was installing bash4, compiling with that, and copying the resulting executable to /usr/bin.
seaside wrote:
Well, I'm not sure why that happened, but here's a copy of the 2.1.2-bacongui.

Cheers,
Thanks, I can use it, I'll work on it and see what's up with it. From Geany, it should be using the executable in /usr/bin, right?

Edit: Using the terminal in /usr/share/bacon, which has the executable you supplied, with the command line bacon bacongui.bac, it still gives the same message, that it choked on the extract command. Hmmm.

Edit 2: Well now I'm confused. With a terminal open in usr/share/bacon, invoking bacon -v returns version 1 build 29. The executable shows today's date and a file size of 401K. Man I hate being such a noob.

Volhout
Posts: 547
Joined: Sun 28 Dec 2008, 08:41

PL2303

#167 Post by Volhout »

Hi,

2 years ago I used BaCon with a FTDI USB device, and got help making this work. Since the FTDI USB device was not part of the kernel, I need an extra library, but in the end, all seemed to work.

Now I am facing something more simple, but that made it even more confusing....

I want to do serial communication using a USB-RS232 converter with a PL2303 chip. On both Slacko 5.3.3 (BaCon 1.0) as well as Precise 5.7.1 (BaCon 2.x) this registers nicely, and I see kernel modules usbserial.ko and PL2303.ko loaded.

The device is connected at /dev/ttyUSB0. This is all perfect. Aint-it ?

But how do I access it from BaCon ??? What header file do I need to include ? On none at all ? Any suggestion is welcome.

I included both BaCon versions, since the new BaCon 2.x may have better (different) support for (usb) serial devices. In the documentation however I still could not find an "OPEN COMx" basic statement.

Since the serial port is far from dead in embedded systems (*), I can imagine support in BaCon is added.

Volhout

(*)= Microsoft removed hyperterminal from W7 (COM=dead?), but that contradicts with languages like python that have support (very simple to use .. compliments).

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#168 Post by sunburnt »

Hi Volhout; I`m almost certain I saw some code for serial ports at the BaCon forum.
The problem is finding it. Like some Puppy forum threads it`s impossible to find anything.
So unfortunately this valuable info. gets lost virtually for ever.
I`ve been commenting elsewhere about the loss of code and folks efforts...

I`ll keep an eye open and let you know if I find it.
Ask at the BaCon forum: http://basic-converter.proboards.com/
.

Post Reply