|
Post by alexfish on Oct 4, 2022 17:33:48 GMT 1
Hi Peter
here using pthread
code & compiler warning
PRAGMA INCLUDE <pthread.h>
PRAGMA LDFLAGS -lpthread OPTION PARSE FALSE DECLARE id TYPE pthread_t
SUB DOTHREAD(void* ptr) LOCAL count WHILE count < 10 DO PRINT "mapping" , count SLEEP 2000 INCR count WEND pthread_exit(&id) END SUB
LOCAL t = 1 pthread_create( &id, NULL,DOTHREAD, &t)
WHILE 1 DO
PRINT "doing==========================\n" SLEEP 1000 WEND
threaded.bac:18:27: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
it does compile and execs so puzzled by the warning BR Alex
|
|
|
Post by Pjot on Oct 4, 2022 17:38:48 GMT 1
Hi Alex, It is a bit out of scope for BaCon, but the function ' pthread_create' expects a function pointer as 3rd argument. Please note BaCon is not designed to work with multi threading. Some programs may work, and some not - your mileage may vary Instead, you can use the FORK function. BR Peter
|
|
|
Post by alexfish on Oct 4, 2022 19:31:44 GMT 1
Hi Peter Thanks for the reply Looks like plan C SYSTEM(./foo &) to All the why in the nav app I wish to convert openstreetmaps aka osm to openseamaps if this be done internal to the app then the ui freezes until the updates are done that was plan A: this post plan B Fork acts like Plan A plan B: = no go after taking on-board what Peter says Thanks again Peter BR Alex
|
|
|
Post by alexfish on Oct 10, 2022 14:43:00 GMT 1
MM ! AGH.
Then started thinking HUG ? SYNC() GTK
Solution for this instance
stop the ui freezing while update : SYNC()
SUB SYNC() WHILE gtk_events_pending() DO gtk_main_iteration_do(FALSE) WEND END SUB
BR Alex
|
|
|
Post by Pjot on Oct 10, 2022 18:53:39 GMT 1
Hi Alex, If you want to use async updates of a GUI which is defined in HUG, you can do this with TIMEOUT. There is an example in this documentation which should help you on your way. BR Peter
|
|
|
Post by alexfish on Oct 10, 2022 19:38:41 GMT 1
|
|
|
Post by alexfish on Oct 11, 2022 1:09:54 GMT 1
Sure it will:: but do not know when
rpi4 update notifier wanted update and gtk was in the Que
results = disaster . the devs got clobbered and wayland bits not ready . looks like someone jumped the q
not looking good ,
Package gtk+-3.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-3.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-3.0' found Package osmgpsmap-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `osmgpsmap-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'osmgpsmap-1.0' found Package webkit2gtk-4.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit2gtk-4.0.pc' to the PKG_CONFIG_PATH environment variable No package 'webkit2gtk-4.0' found In file included from SeaNav-Home.bac.h:2, from SeaNav-Home.bac.c:2: SeaNav-Home.bac.generic.h:11:10: fatal error: gtk-3.0/gtk/gtk.h: No such file or directory 11 | #include <gtk-3.0/gtk/gtk.h>
terminal bits::
The following information may help to resolve the situation:
The following packages have unmet dependencies: libgtk-3-0 : Depends: libwayland-client0 (>= 1.20.0) but 1.18.0-2~exp1.1 is to be installed Recommends: libgtk-3-bin but it is not going to be installed E: Unable to correct problems, you have held broken packages. pi@raspberrypi:~ $ sudo apt list --upgradable -a Listing... Done libgtk-3-0/stable 3.24.24-4+rpt7+deb11u2 armhf [upgradable from: 3.24.24-4+rpt6+deb11u2] libgtk-3-0/now 3.24.24-4+rpt6+deb11u2 armhf [installed,upgradable to: 3.24.24-4+rpt7+deb11u2] libgtk-3-0/stable 3.24.24-4+deb11u2 armhf
OH POOP
|
|
|
Post by alexfish on Oct 11, 2022 14:18:47 GMT 1
Hi All
I did a install pi os on new card then pi os advised update and this was done auto
so here I sit
the gtk3 shows same problem + can not install gtk3 dev packages what a disaster : will post further
gtk2 devs will install
OK: reinstall 32bit no updates = same going to test 64bit = Same ::
BR Alex
|
|
|
Post by alexfish on Oct 11, 2022 18:35:34 GMT 1
Hi All Testing pi4 ubuntu desktop 64bit what a pain anyway partial update re bacon side xterm install xterm and the neccessary fonts sudo apt install xfonts-cyrillic according to gtk3 + gtk2 + devs show installed this was not easy, but gtk4 updates held back and possible other bits of gtk3 and gtk2 the gui shows ? launch from the term shows GtkSourceView library for 'gtk2' not found! Trying GTK3... Webkit library for 'gtk3' not found! Trying 'webkit2gtk'... osm lib is also installed , Will be doing an update as regards this on another Thread test code a message from a pi user PRINT "Ubuntu DeskTop Sucks" + youtube playback is CRAP even with Chromium BR Alex a pick of bacon help Attachments:
|
|
|
Post by alexfish on Oct 11, 2022 19:45:27 GMT 1
Yes it really sucks Why , the Ubuntu Desktop Guide is the same as BaCon above , No HELP and yes definite last post here Cheers Alex Yes I need a drink Picky & summary GTK-Webkit3 is a Washout Attachments:
|
|
|
Post by bigbass on Oct 14, 2022 14:49:44 GMT 1
Hello Alex we have equal opposite problems you want to use gtk on the raspberry with webkit and it is not working for you I want to use Manjaro and it stopped working for the RPI3 it used to work and work well I like Manjaro for many reasons 1.) it is a rolling release we always can try the latest versions to keep one step ahead of the development cycle 2.) it is multi arch with an excellent package manager and excellent documentation allows you to fine tune anything and build packages for starters I feel very comfortable using Manjaro but less people use it on the RPI overall 3. Qt6 is the default but you can install Qt5 also in time Manjaro will work again and I will install it as my testing dev box now for gtk and webkit I am on a clean install RPI3 and all is fine there I need webkit for a browser that have been working on and am curious if the C code gps part will work on a static server using node (since the static server is already working with the browser) here is a pic of the static server working with Monaco a browser based editor used by visual studio code running inside the browser on http://localhost:8888 the same could be done in with the c code gps but I havent tried to do that yet here are the results on the rpi3 and the full report sudo apt-get install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev *I think it is good you are using Manjaro and when I get another chance to install it I will joe@raspberrypi:~ $ uname -a Linux raspberrypi 5.15.61-v7+ #1579 SMP Fri Aug 26 11:10:59 BST 2022 armv7l GNU/Linux
|
|
|
Post by bigbass on Oct 14, 2022 19:51:40 GMT 1
Manjaro boots now! After countless Atempts to boot It just flashed for a second then the led light stayed red And nothing I thought take a long shot and remove the hdmi cable and wait a minute to see if the cpu was detecting still and the green light started to flash and then I plugged in the hdmi cable and it worked! Sounds like a miracle Or something had to eventually modify the /boot/config.txt sourceforge.net/p/bacon-qt5/wiki/config.txt/to get it stable Joe Hey Alex if you need any code to test I am on board with Manjaro this is all bacon related installing bacon on archlinux Xfce Manjaro again [joe@joe-pc ~]$ uname -a Linux joe-pc 5.15.56-1-MANJARO-ARM-RPI #1 SMP PREEMPT Fri Jul 22 13:22:49 UTC 2022 aarch64 GNU/Linux basic setup a simple smart package manager ! (dependencies for a bacon build plus a few extra things for comfort) sudo pacman -Syu clang curl enscript xterm indent flex geany gtksourceview3 fltk ksh make pkg-config
install bacon from fossil (for Manjaro Archlinux) sourceforge.net/p/bassix-gtk3-webkit-browser/wiki/bacon-fossil-manjaro/
|
|