|
Post by bigbass on Jul 1, 2018 21:14:44 GMT 1
This is debian based for the raspberry pi3 and now 64 bit mint 21 all the latest updates will be in this first post --------------------------------------------------------------- I did a port for Manjaro here uses a different package manager! sourceforge.net/projects/bassix-gtk3-webkit-browser/files/Manjaro/bacon-setup-manjaro-1.0.0.tar.bz2/download--------------------------------------------------------------- The Idea is to have what is needed to get started correctly and avoid some of the common pit-falls along the way when we set up a new box if you are running any debian based system with apt-get installed ./auto-install-bacon bash script will get the correct arch version and install it for you and build from source for rpi3 later you can upgrade to fossil with the fossil-get script After bacon was fully Installed you could use the Gui to Do advanced things But not needed for most people the fltk GUI offers more advanced options to set up your bacon development box there is a readme with more details 32 bit and 64 bit support now non root version Aug 15 2022 total rewrite of auto-install-bacon script very fast now and less code separated the syntax highlighting for bacon so that it can be run on non debian systems too Using syntax-fix for kate, Qt5,Geany,nano,gtk3 sourceview added a log file cleaned up syntax-fix added arm64 added a build for fltk 1.3.8 (tested on manjaro rpi 64 bit) fixed code to install 64 bit deb and added ksh to the check sourceforge.net/projects/bassix-gtk3-webkit-browser/files/EXTRA-SUPPORT/bacon-setup-36.4.tar.gz/download
|
|
|
Post by vovchik on Jul 2, 2018 11:21:12 GMT 1
Dear Joe,
Thanks for the prog and script. I think it might be useful to include rsvg dev and oss stuff in the atp-get list. What do you think?
With kind regards, vovchik
|
|
|
Post by rikky on Jul 2, 2018 15:08:24 GMT 1
I need to have Bacon and fltk just to be able to compile a program into a GUI, with which I can install bacon and fltk.  Rik.
|
|
|
Post by rikky on Jul 2, 2018 16:38:22 GMT 1
Ok, I apologise. Criticism, without being constructive is not very nice. So lets make it a 'Bacon update' newest_version$ = INBETWEEN$(EXEC$("curl -s http://www.basic-converter.org/stable/"),"bacon_","_")
And then something like: EXEC$("sudo wget -N \"$URL_LOCATION_BACON\"bacon_" & newest_version$ & "_${result_MY_OS}.deb") EXEC$("sudo dpkg -i bacon_" & newest_version$ & "_${result_MY_OS}.deb")
Rik.
|
|
|
Post by bigbass on Jul 2, 2018 16:39:15 GMT 1
Hello Rik Yes, you see the little problem with the circle dependencies That is The idea here you get the fltk source and bacon deb downloaded into the folder you can even compile the app so you wont need the g++ compiler also instead of fishing around through several forum threads looking for stuff we need I hope when its finished it will ease the pain a little and be all in one place P.S I edited the bacon installer to use gdebi-gtk I dont know if the RPI has that or not but we could fall back to dpkg -i if there is a problem reason is gdebi-gtk is standard on mint and helps with the deps Any feed back or suggestion I will add into the setup we do a lot of experimenting and some deps get lost in the shuffle or we forget something we need and only discover setting up a new box Thanks Rik I just saw your suggestion I like it I UPDATED the gui version3 I will add your suggestion and snippet in version 4 Joe
|
|
|
Post by vovchik on Jul 2, 2018 17:02:48 GMT 1
Dear Joe,
Thanks for the update. I have also been thinking out loud and remember that some distributions have dash, not bash or zsh, and therefore can't compile the bacon source. It might be a good idea to include those two shell interpreters in the list. And perhaps a button that will download and compile the latest BaCon beta from the fossil repository. Again, I am just thinking out loud...
With kind regards, vovchik
|
|
|
Post by rikky on Jul 2, 2018 17:46:46 GMT 1
Nope, there is no gdebi-gtk op the RPi preinstalled. And the $PATH variable is set to 'xterm', which is not installed. There is an lxterminal, but that behaves differently on the -bg and -fg options. but worst of all, there is no bacon_3.7.3-1_armhf.deb So MY_OS$ = CHOP$(EXEC$("dpkg --print-architecture")) result$ = EXEC$("curl -s http://www.basic-converter.org/stable/") newest_version$ = INBETWEEN$(result$,"bacon_","_") IF NOT(INSTR(result$,"bacon_" & newest_version$ & "_" & MY_OS$)) THEN ' do something FOR this_line$ IN result$ STEP NL$ IF INSTR(this_line$,".tar.gz") THEN bacon_package = "http://www.basic-converter.org/stable/" & \ INBETWEEN$(this_line$,"href=" & CHR$(34),CHR$(34)) END IF NEXT this_line$ 'etc END IF
|
|
|
Post by rikky on Jul 2, 2018 18:05:47 GMT 1
MY_OS$ = CHOP$(EXEC$("dpkg --print-architecture")) result$ = EXEC$("curl -s http://www.basic-converter.org/stable/") newest_version$ = INBETWEEN$(result$,"bacon_","_") IF NOT(INSTR(result$,"bacon_" & newest_version$ & "_" & MY_OS$)) THEN ' do something FOR this_line$ IN result$ STEP NL$ IF INSTR(this_line$,".tar.gz") THEN bacon_package_name$ = INBETWEEN$(this_line$,"href=" & CHR$(34),CHR$(34)) bacon_package$ = "http://www.basic-converter.org/stable/" & bacon_package_name$ END IF NEXT this_line$ this_dir$ = "/tmp/" & STR$(MYPID) MAKEDIR this_dir$ CHANGEDIR this_dir$ SYSTEM "wget -c " & bacon_package$ IF RETVAL THEN END 1 PRINT "package loaded into " & this_dir$ SYSTEM "tar -zxvf " & bacon_package_name$ IF RETVAL THEN END 1 bacon_folder_name$ = LEFT$(bacon_package_name$,LEN(bacon_package_name$) - 7) PRINT "bacon_folder_name$ : " & bacon_folder_name$ CHANGEDIR bacon_folder_name$ SYSTEM "./configure" IF RETVAL THEN END 1 SYSTEM "make" IF RETVAL THEN END 1 SYSTEM "sudo make install" IF RETVAL THEN END 1 END IF
Upgrading now to the next version, which I forgot. Rik.
|
|
|
Post by bigbass on Jul 2, 2018 18:43:11 GMT 1
Hello vovchik already added your code for fossil( I really like the idea) however it wont build fltk bacon correctly this leaves you with a new install of bacon needed could you confirm with your code here that's what I used basic-converter.proboards.com/post/11014bacon beta 3.8 did build but not the fltk GUI bacon -v
BaCon version 3.8 beta on Linux x86_64 - (c) Peter van Eerten - MIT License will upload the new setup4 when that gets sorted update bacongui-gtk builds so the problem is only with fltk Thanks Joe
|
|
|
Post by vovchik on Jul 2, 2018 18:57:30 GMT 1
Der Joe,
I built everything yesterday (1 July version), including the fltk and gtk GUIs, using that very code as a script. Weird that it failed for you. I just run the code in a terminal and give my root password during the make install part. Perhaps something is going on in the "configure" part, so it fails, with some bad default setting, to make the GUI progs. Check config.log in /bacon_trunk for that. Weird.
With kind regards, vovchik
|
|
|
Post by bigbass on Jul 2, 2018 20:02:25 GMT 1
Hey vovchik
I get an error compiling bacongui-fltk auto it failed so I tried doing it manually to see why
I know this is beta so It's not a big deal
./bacon -a bacongui-fltk.bac Converting 'bacongui-fltk.bac'... done, 2570 lines were processed in 0.564 seconds. New BaCon archive requested! Creating... Compiling 'bacongui-fltk.bac'... cc -fPIC -Wno-write-strings -Wno-pointer-arith -c bacongui-fltk.bac.c Makefile.bacon:6: recipe for target 'bacongui-fltk.bac.o' failed Compiler error:
Description: file './bacongui-fltk.bac' line 590: Icon_Pix = new Fl_Pixmap(BaCon48) Cause: unknown type name 'Fl_Boxtype'
here is the latest with the fossil build maybe you could try I'll try to see what happened tonight when I get home
|
|
|
Post by vovchik on Jul 2, 2018 21:07:43 GMT 1
Dear Joe,
Thanks for the update. Everything built on my computer (Mint 17.3), but I removed the sudo you had used for the general make. That will only create problems later -- if the user starts the program as user -- since it will generate some files belonging to root in the user directory, and these will not get removed by a normal rm. It is better, I think, to not to use sudo for anything except "make install". Both GUIs got built normally...with my replacement of "sudo make" by a plain "make" first. I think sudo should also be removed from the fltk build script - except for "make install" for the same reason. Looking at that fltk build error, I am at a loss, since we are using the same BaCon and the same fltk.
With kind regards, vovchik
|
|
|
Post by bigbass on Jul 4, 2018 6:54:51 GMT 1
Took some good advice and will add some more suggestions uploaded new version first post
Joe
|
|
|
Post by vovchik on Jul 4, 2018 18:16:53 GMT 1
Dear Joe, Thanks. It's getting better with every iteration. I just got an idea which is not hard to implement. What about also writing out a log tracking all the activities, with a date stamp? Just thinking out loud again... With kind regards, vovchik
|
|
|
Post by bigbass on Jul 4, 2018 19:47:50 GMT 1
Hello vovchik Sounds like a much needed addition to troubleshoot sticky problems which I have right now with bacon beta from fossil on this very simple snippet idea we can do many things already cat /var/log/dpkg.log| grep -i " installed " | grep geany
even better searchable input and yes log all that we do with the app /scripts oh almost forgot to say fltk is official 1.3.4 from apt-get on mint 19 we avoid many steps with that official update Joe
|
|