:in literal issue! and refinement! values. red/red@833e133
input methodfor rich-text red/red@5c3e9e8
abouterror in the gui-console. red/red@ca4e905
readon urls doesn't apply CRLF->LF translation red/red@3eb847f
list-dircaused by integer division rule change. red/red@54a9781
macmini:Desktop apple$ red.dms -r -d -t RPi-GTK test1.red -=== Red Compiler 0.6.4 ===- Compiling test1.red ... ...compilation time : 1361 ms Target: RPi-GTK Compiling to native code... ...compilation time : 48854 ms ...linking time : 4805 ms ...output file size : 4873596 bytes ...output file : /Users/apple/Desktop/test1
pi@raspberrypi:~/Desktop $ ./test1 ./test1: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
lddand see which shared libraries are linked).
libcurl) are temporary. That doesn't mean that Red cannot be distributed.
I installed 'Raspberry Pi OS (32-bit)' that is based on Debian Buster
I followed the following instructions:
If you are using a Debian 7+ or Ubuntu 13.10+ version, you should use libcurl3 with multiarch: dpkg --add-architecture i386 apt-get update apt-get install libc6:i386 libcurl3:i386
then I tried to install libc6:i386 libcurl3:i386 and I get
pi@raspberrypi:~/Desktop $ sudo apt-get install libc6:i386 libcurl4:i386 Reading package lists... Done Building dependency tree Reading state information... Done Package libc6:i386 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libdb1-compat tzdata Package libcurl4:i386 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libc6:i386' has no installation candidate E: Package 'libcurl4:i386' has no installation candidate
>> request-file/title/file/filter "Select ABC Files " "%./dn-abc-tools/data/sources" ["ABC Files " "*.abc"] GLib-GIO-Message: 19:04:50.528: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
having an issue with resizing image containers, not sure if its GTK or red...
Red [ needs 'view ] view/flags [ ip: panel papaya [ p: image 300x300 [ g: load request-file/filter ["png" "*.png" "jpg" "*.jpg"] ; get image y of x rr: round (300.0 * (g/size/y / g/size/x)) ; attempt to scale image container, but gets cut-off p/size/y: to-integer rr p/image: g ;attempt to scale panel (should this be automatic?), but it gets cut-off ;ip/size/y = ip/size/y + (300 - rr) ] ] ] [ modal resize ]
#!/usr/local/bin/red Red [ ] mainWin: layout [ title "Resizing Image" f: field "256x256" button "Quit" [quit] return canvas: base 256x256 %lena.png ] view/flags/options mainWin [resize] [ actors: object [ on-resizing: function [face [object!] event [event!]][ win: face canvas/size: win/size - 20x60 f/text: form canvas/size ] ] ]
#!/usr/local/bin/red Red [ Title: "Resize test" Author: "Francois Jouen" File: %resize3.red Needs: 'View ] _offset: 0x0 loadImage: does [ tmp: request-file/filter ["png" "*.png" "jpg" "*.jpg"] if not none? tmp [ _offset: canvas/offset + 10 img: load tmp canvas/size: img/size mainWin/size: _offset + img/size f/text: form canvas/size canvas/image: img ] ] mainWin: layout [ title "Resizing Image" button "Load Image" [loadImage] f: field 70 "256x256" button "Quit" [quit] return canvas: base 256x256 black ] ;--resize event processing view/flags/options mainWin [resize] [ actors: object [ on-resizing: function [face [object!] event [event!]][ win: face canvas/size: win/size - _offset f/text: form canvas/size ] ] ]
tmp: request-file/filter ["Image Files" "*.png;*.jpg; *.bmp"]
Red [ needs 'view ] view [ d: drop-list 180x30 select 2 data["two" "four" "eight"] [f/text: pick face/data face/selected ] f: field 180x30 on-enter [ append d/data face/text d/selected: (length? d/data) probe d/data ] ]
Red [ needs 'view ] view [ panel 120x120 with [ extra: [name: "panel_1" id: 1 ] ] [ field 80x30 "edit" ] on-down [ print "panel selected: " probe face/extra/name ] ]
i am on linux ubuntu 18.04.03 LTS
root@ubuntu-2gb-nbg1-1:/usr/local/bin# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-2gb-nbg1-1:/usr/local/bin# ls red-064.dms red2019.dms red.dms root@ubuntu-2gb-nbg1-1:/usr/local/bin# red.dms Unable to init server: Could not connect: Connection refused (console-2021-3-16-29645:1717): Gtk-WARNING **: 17:43:54.824: cannot open display: root@ubuntu-2gb-nbg1-1:/usr/local/bin#
Red 0.6.4 works correctly. When I try to run
red-16mar21-0051dff08 (I renamed red.dms) it gives me error above
It's a remote server without a monitor connected to it