World: r4wp
[#Red] Red language group
older newer | first last |
Kaj 28-May-2013 [7989] | Not sure if the name is exactly gtk+. Was that the name of the formula? |
Geomol 28-May-2013 [7990x2] | So I'm asking, if I know should write brew install gtk+ or what? I suggest that, because I see something similar on the brew page: http://mxcl.github.io/homebrew/ , where they do a brew install wget |
gtk+.br | |
Kaj 28-May-2013 [7992] | Yes, you need to fill in the name of the formula |
Geomol 28-May-2013 [7993] | I try. :) |
Kaj 28-May-2013 [7994] | Then the command should be correct. But you should upgrade Xcode first |
Geomol 28-May-2013 [7995x2] | It's doing something. |
nah, I try. :) | |
Kaj 28-May-2013 [7997] | You get to keep the pieces if you break it |
Geomol 28-May-2013 [7998] | Downloading http://tukaani.org/xz/xz-5.0.4.tar.bz2 make install Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.1 Downloading http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.1 make install Installing gtk+ dependency: glib Downloading http://ftp.gnome.org/pub/gnome/sources/glib/2.36/glib-2.36.2.tar Downloading patches ./configure --disable-maintainer-mode --disable-dtrace --disable-modular-tes make make install Installing gtk+ dependency: jpeg Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.lio Installing gtk+ dependency: libtiff Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz make install ... and a lot in between. continuing... |
Kaj 28-May-2013 [7999x2] | Looks good |
Now you have an impression what I've been doing on Syllable in the past decade :-) | |
Geomol 28-May-2013 [8001x3] | Installing gtk+ dependency: gdk-pixbuf Downloading http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.28/gdk-pixbu make make install Installing gtk+ dependency: icu4c Downloading https://downloads.sf.net/project/machomebrew/Bottles/icu4c-51.1. Installing gtk+ dependency: fontconfig Downloading http://fontconfig.org/release/fontconfig-2.10.93.tar.bz2 Patching make install ... |
:D | |
It reminds me a bit on my RedHat days. | |
Kaj 28-May-2013 [8004] | Yep |
Geomol 28-May-2013 [8005] | Installing gtk+ dependency: harfbuzz Downloading http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0. make install Installing gtk+ dependency: pixman Downloading http://cairographics.org/releases/pixman-0.30.0.tar.gz make install ... |
Kaj 28-May-2013 [8006] | My Red/System bindings include partial bindings for the GLib and GDK-PixBuf libraries you see there, to support GTK |
Geomol 28-May-2013 [8007] | Installing gtk+ dependency: cairo Downloading http://cairographics.org/releases/cairo-1.12.14.tar.xz ... I begin to hear the fans in my MacBook. |
Kaj 28-May-2013 [8008] | Yep, building is mostly CPU bound |
Geomol 28-May-2013 [8009] | cairo is a large download |
Kaj 28-May-2013 [8010x2] | Mwah, not really, compared to the rest. Perhaps the site is slow |
If you look in /usr/local/lib do you see new *.a files? | |
Geomol 28-May-2013 [8012x8] | make install Installing gtk+ dependency: pango Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.34/pango-1.34.1.t make make install Installing gtk+ dependency: atk Downloading http://ftp.gnome.org/pub/gnome/sources/atk/2.8/atk-2.8.0.tar.xz make make install Installing gtk+ !!! yay! there it is |
Downloading http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.18.ta make install ... a couple GB taken so far, it seems. | |
from the HD | |
Done, it seems. | |
So now I should be able to run your demo? | |
GTK-browser isn't executable. Should I make it and run from terminal or what? | |
513 ~/Downloads$ chmod +x GTK-browser 514 ~/Downloads$ ./GTK-browser dyld: Library not loaded: /usr/lib/libgthread-2.0.dylib Referenced from: /Users/john/Downloads/./GTK-browser Reason: no suitable image found. Did find: /usr/local/lib/libgthread-2.0.dylib: mach-o, but wrong architecture Trace/BPT trap: 5 | |
Doesn't seem to run. :/ | |
Kaj 28-May-2013 [8020x2] | Yes, that way you also get stdout output from the demos |
Do you have a 64 bit system? | |
Geomol 28-May-2013 [8022] | yes |
Kaj 28-May-2013 [8023] | Hm, then you have to find out how to get Homebrew to compile 32 bit versions of all that |
Geomol 28-May-2013 [8024x3] | ok |
Gotta get some sleep. | |
Maybe tomorrow. nite nite | |
Kaj 28-May-2013 [8027x7] | Yeah, later |
The easiest way to try Red on Mac is to get the red-core interpreter from here: | |
http://red.esperconsultancy.nl/Red-test/dir?ci=cb632d557a7d83aa&name=Darwin/Red | |
It uses only libraries known to be shipped with OS X, so it's just the one executable. But you do need 32 bit versions of those libraries | |
There were probably static /usr/local/lib/*.a libraries compiled for most of that. Those are perfect for you to link into World | |
Better use this always current link: | |
http://red.esperconsultancy.nl/Red-test/dir?ci=tip&name=Darwin/Red | |
Pekr 28-May-2013 [8034x2] | Geomol - you can watch some slides about what actually is Red - here - http://www.red-lang.org/p/about.html |
In a short - Red compiles to Red/System. Red/System is intermediate language, which then compiles to native platforms. Red/System can also generate shared libraries. It all means, that from Windows, you can generate OS-X, Linux etc. programs or libraries. As for Red itself, it is not only compiled though. Doc's intention is to bring in a modern hybrid, which will work as compiled, jitted, or interpreted, upon the need of the programmer or the app. So, what we have also got is Red interpreter and console too. JIT has yet to come. Recently Red is not complete, Doc took some side-way to bring in Android support. That means we had to have shared libraries available first, then JAVA/JNI bridge (which is done), nowadays Doc works towards generating first .apk. He is on vacation till 3rd of June though. After that is done, we will get objects, I/O and parse (IIRC Gabriele will write it, just waiting for object support) | |
Kaj 28-May-2013 [8036x3] | John, it looks like you can supply a --universal option to brew to build both 64 and 32 bit versions |
https://github.com/mxcl/homebrew/blob/master/Library/Homebrew/build_options.rb | |
There's a gtk alias for gtk+ :-) | |
older newer | first last |