ANN: pure-gl 0.4

1 view
Skip to first unread message

Albert Graef

unread,
Feb 6, 2009, 4:34:10 PM2/6/09
to pure...@googlegroups.com
Scott Dillard's OpenGL module for Pure.

http://pure-lang.googlecode.com/files/pure-gl-0.4.tar.gz

Please see the README file and the examples included in the package for
further details. Information about OpenGL can be found at:
http://www.opengl.org/

Installation from source is as usual (i.e., like the other Pure
modules): make && sudo make install.

This is the first "official" release (previous preleases are still
available in the file area of this group). It should support all common
extensions, including the freeglut extensions. (If some extension is not
provided by your OpenGL implementation you'll get a gl_unsupported
exception if you try to call the corresponding functions.)

This version has been tested under Linux and Windows. Other systems
might still need some fiddling with the Makefile and/or the beginning of
pure-gl.c. Patches to make this module work on other platforms are most
welcome!

I think we all owe Scott a resounding "Thank You!" for this package! :)

Enjoy!
Albert

--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr.G...@t-online.de, a...@muwiinfa.geschichte.uni-mainz.de
WWW: http://www.musikinformatik.uni-mainz.de/ag

Ryan Schmidt

unread,
Feb 7, 2009, 5:14:03 PM2/7/09
to pure...@googlegroups.com
On Feb 6, 2009, at 15:34, Albert Graef wrote:

> Scott Dillard's OpenGL module for Pure.
>
> http://pure-lang.googlecode.com/files/pure-gl-0.4.tar.gz
>
> Please see the README file and the examples included in the package
> for
> further details. Information about OpenGL can be found at:
> http://www.opengl.org/
>
> Installation from source is as usual (i.e., like the other Pure
> modules): make && sudo make install.
>
> This is the first "official" release (previous preleases are still
> available in the file area of this group). It should support all
> common
> extensions, including the freeglut extensions. (If some extension
> is not
> provided by your OpenGL implementation you'll get a gl_unsupported
> exception if you try to call the corresponding functions.)
>
> This version has been tested under Linux and Windows. Other systems
> might still need some fiddling with the Makefile and/or the
> beginning of
> pure-gl.c. Patches to make this module work on other platforms are
> most
> welcome!

Ok, trying to add this to MacPorts. Reading the README, I see:

"As they are written now, the GL Pure bindings will look for libGL.so,
libGLU.so and libglut.so, which is what you want for Linux. For
Windows or
Mac, change these to the appropriate dll/dylib files. This is the
first line
in each of GL.pure, GLU.pure and GLUT.pure."

I do not see any reference to any .so files in GL*.pure so I don't
know what I'm meant to change. The first line of each GL*.pure file is:

using "lib:pure-gl";

It compiles, but when I try to run the examples I get:

$ pure -x /mp/share/examples/pure-gl/teapot.pure
/mp/share/examples/pure-gl/teapot.pure, line 22: unhandled exception
'gl_unsupported "glutInit"' while evaluating 'GLUT::Init argcp argvp'
/mp/share/examples/pure-gl/teapot.pure, line 24: unhandled exception
'gl_unsupported "glutInitDisplayMode"' while evaluating
'GLUT::InitDisplayMode (2 or 0 or 16)'
/mp/share/examples/pure-gl/teapot.pure, line 25: unhandled exception
'gl_unsupported "glutInitWindowSize"' while evaluating
'GLUT::InitWindowSize 500 500'
/mp/share/examples/pure-gl/teapot.pure, line 26: unhandled exception
'gl_unsupported "glutCreateWindow"' while evaluating
'GLUT::CreateWindow "Teapot - Pure OpenGL Example"'
$

This is on Mac OS X 10.4.11 Intel. I did start X11 first; wasn't sure
if that was required but it doesn't seem to make a difference.


Ryan Schmidt

unread,
Feb 7, 2009, 5:19:45 PM2/7/09
to pure...@googlegroups.com

On Feb 6, 2009, at 15:34, Albert Graef wrote:

> Scott Dillard's OpenGL module for Pure.
>
> http://pure-lang.googlecode.com/files/pure-gl-0.4.tar.gz
>
> Please see the README file and the examples included in the package
> for
> further details. Information about OpenGL can be found at:
> http://www.opengl.org/

I also noted that the README is missing a paragraph describing what
it is. The other modules all have a few sentences describing what
basically the module is for.


pure-csv:

The CSV library provides an interface to read and write comma
separated value
files. The reading and writing functions are loosely based on
Python's CSV
module (http://docs.python.org/lib/module-csv.html)


pure-ffi:

The libffi library provides a portable, high level programming
interface to
various calling conventions. This allows a programmer to call any
function
specified by a call interface description at run time. libffi should be
present on most gcc-based systems, but it is also available as a
standalone
package at http://sourceware.org/libffi/.

This module provides an interface to libffi which enables you to call C
functions from Pure and vice versa. It goes beyond Pure's built-in C
interface
in that it also handles C structs and makes Pure functions callable
from C.
Moreover, depending on the libffi implementation, it may also be
possible to
call foreign languages other than C.


pure-gsl:

Building on Pure's GSL matrix support, this module aims to provide a
complete
wrapper for the GNU Scientific Library which provides a wide range of
mathematical routines useful for scientific programming, number
crunching and
signal processing applications.


Albert Graef

unread,
Feb 8, 2009, 7:28:35 AM2/8/09
to pure...@googlegroups.com
Ryan Schmidt wrote:
> Ok, trying to add this to MacPorts. Reading the README, I see:
>
> "As they are written now, the GL Pure bindings will look for libGL.so,
> libGLU.so and libglut.so, which is what you want for Linux. For
> Windows or
> Mac, change these to the appropriate dll/dylib files. This is the
> first line
> in each of GL.pure, GLU.pure and GLUT.pure."

Yes, this is out of date, I removed that paragraph now. I also added a
brief description of the module near the beginning of the README.

> I do not see any reference to any .so files in GL*.pure so I don't
> know what I'm meant to change.

No, you shouldn't have to change anything. Most likely there's just an
issue with the link options.

> It compiles, but when I try to run the examples I get:
>
> $ pure -x /mp/share/examples/pure-gl/teapot.pure
> /mp/share/examples/pure-gl/teapot.pure, line 22: unhandled exception
> 'gl_unsupported "glutInit"' while evaluating 'GLUT::Init argcp argvp'

This indicates that the GLUT functions aren't linked in. I see that
there's a linker option for the OpenGL framework, but most likely you
need another option for the GLUT library (and maybe yet another one for
libGLU). I know nothing about the OSX OpenGL implementation, so I cannot
tell you which additional libraries are needed, but I'll try to google
it later.

Do the GL functions work? I.e., what happens if you start up the Pure
interpreter and enter the following:

using GL;
GL::Color3i 0 0 0;

> This is on Mac OS X 10.4.11 Intel. I did start X11 first; wasn't sure
> if that was required but it doesn't seem to make a difference.

I guess that there's a native OpenGL environment on OSX so I don't think
that X11 will be necessary. But I'll have to look it up.

Albert Graef

unread,
Feb 8, 2009, 8:39:52 AM2/8/09
to pure...@googlegroups.com
Albert Graef wrote:
> This indicates that the GLUT functions aren't linked in. I see that
> there's a linker option for the OpenGL framework, but most likely you
> need another option for the GLUT library (and maybe yet another one for
> libGLU). I know nothing about the OSX OpenGL implementation, so I cannot
> tell you which additional libraries are needed, but I'll try to google
> it later.

Well, the Apple website is very light on details and just refers to the
official OpenGL documentation. But elsewhere I found that you also need
to link against the GLUT framework. You can change this in the Makefile.
Edit the line:

LinkGL = -framework OpenGL

Change it to:

LinkGL = -framework GLUT -framework OpenGL

There might be additional frameworks which are needed to get all the
extensions. What does 'ls /System/Library/Frameworks/*GL*.framework' say?

Ryan Schmidt

unread,
Feb 8, 2009, 7:30:05 PM2/8/09
to pure...@googlegroups.com

On Feb 8, 2009, at 07:39, Albert Graef wrote:

> Well, the Apple website is very light on details and just refers to
> the
> official OpenGL documentation. But elsewhere I found that you also
> need
> to link against the GLUT framework. You can change this in the
> Makefile.
> Edit the line:
>
> LinkGL = -framework OpenGL
>
> Change it to:
>
> LinkGL = -framework GLUT -framework OpenGL
>
> There might be additional frameworks which are needed to get all the
> extensions. What does 'ls /System/Library/Frameworks/
> *GL*.framework' say?

I have:

$ ls /System/Library/Frameworks/*GL*.framework
/System/Library/Frameworks/AGL.framework:
AGL Headers Resources Versions

/System/Library/Frameworks/GLUT.framework:
GLUT Headers Resources Versions

/System/Library/Frameworks/OpenGL.framework:
Headers Libraries OpenGL Resources Versions


Adding "-framework GLUT" as you suggested allows both examples to
work! Thanks. I've added pure-gl 0.4 to MacPorts.

P.S: X11 does not appear to be used.


On Feb 8, 2009, at 06:28, Albert Graef wrote:

> This indicates that the GLUT functions aren't linked in. I see that
> there's a linker option for the OpenGL framework, but most likely you
> need another option for the GLUT library (and maybe yet another one
> for
> libGLU). I know nothing about the OSX OpenGL implementation, so I
> cannot
> tell you which additional libraries are needed, but I'll try to google
> it later.
>

> Do the GL functions work? I.e., what happens if you start up the Pure
> interpreter and enter the following:
>
> using GL;
> GL::Color3i 0 0 0;

Even after adding -framework GLUT, this does not work; it crashes
with a bus error:


Date/Time: 2009-02-08 18:25:36.089 -0600
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4

Command: pure
Path: /mp/bin/pure
Parent: bash [10327]

Version: ??? (???)

PID: 16960
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000be4

Thread 0 Crashed:
0 libGL.dylib 0x9f03b503 glColor3i + 29

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0xbfffe2a8 ebx: 0x9f03b4f4 ecx: 0x9f03b4e6 edx: 0x00000008
edi: 0xbfffe2a8 esi: 0x00000000 ebp: 0xbfffe2d8 esp: 0xbfffe2b0
ss: 0x0000001f efl: 0x00010282 eip: 0x9f03b503 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

Binary Images Description:
0x1000 - 0x5fff pure /mp/bin/pure
0x35000 - 0x65fff libgslcblas.0.dylib /mp/lib/libgslcblas.
0.dylib
0x6a000 - 0x88fff libreadline.5.2.dylib /mp/lib/libreadline.
5.2.dylib
0x9c000 - 0xc9fff libgmp.3.dylib /mp/lib/libgmp.3.dylib
0x205000 - 0x379fff libgsl.0.dylib /mp/lib/libgsl.0.dylib
0x3c6000 - 0x4bbfff libiconv.2.dylib /mp/lib/libiconv.2.dylib
0x4c8000 - 0x4eafff libncurses.5.dylib /mp/lib/libncurses.5.dylib
0x699000 - 0x6cbfff pure-gl.dylib /mp/lib/pure-0.17/pure-gl.dylib
0x1008000 - 0x17fafff libpure-0.17.dylib /mp/lib/libpure-0.17.dylib
0x1e05000 - 0x1ee3fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x8fe00000 - 0x8fe4afff dyld 46.16 /usr/lib/dyld
0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib /usr/lib/system/
libmathCommon.A.dylib
0x901c5000 - 0x90202fff com.apple.CoreText 1.1.3 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreText.framework/Versions/A/CoreText
0x90284000 - 0x9034cfff com.apple.CoreFoundation 6.4.11 (368.35) /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x903a3000 - 0x90649fff com.apple.CoreServices.CarbonCore 682.30 /
System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90910000 - 0x90910fff com.apple.CoreServices 10.4 (???) /System/
Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90990000 - 0x90a0efff com.apple.DesktopServices 1.3.7 /System/
Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/
DesktopServicesPriv
0x90a56000 - 0x90ad5fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90afe000 - 0x90b62fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x90bd1000 - 0x90bd8fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x90bdd000 - 0x90c50fff com.apple.framework.IOKit 1.4.8 (???) /System/
Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c65000 - 0x90c77fff libauto.dylib /usr/lib/libauto.dylib
0x90f66000 - 0x90fcefff com.apple.CoreServices.OSServices 4.1 /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.framework/Versions/A/OSServices
0x91059000 - 0x91069fff com.apple.WebServices 1.1.3 (1.1.0) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesCore.framework/Versions/A/WebServicesCore
0x9110f000 - 0x911b8fff com.apple.QD 3.10.27 (???) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
QD.framework/Versions/A/QD
0x91405000 - 0x9140dfff com.apple.DiskArbitration 2.1.2 /System/
Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91414000 - 0x9141bfff libbsm.dylib /usr/lib/libbsm.dylib
0x9141f000 - 0x91445fff com.apple.SystemConfiguration 1.8.6 /System/
Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfiguration
0x91457000 - 0x914cdfff com.apple.audio.CoreAudio 3.0.5 /System/
Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9151e000 - 0x9151efff com.apple.ApplicationServices 10.4 (???) /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
ApplicationServices
0x91520000 - 0x9154cfff com.apple.AE 314 (313) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
AE.framework/Versions/A/AE
0x9166e000 - 0x916e1fff com.apple.print.framework.PrintCore 4.6
(177.13) /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917de000 - 0x91829fff com.apple.HIServices 1.5.2 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/HIServices.framework/Versions/A/HIServices
0x91848000 - 0x9185efff com.apple.LangAnalysis 1.6.3 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LangAnalysis.framework/Versions/A/LangAnalysis
0x9186a000 - 0x91885fff com.apple.FindByContent 1.5 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
FindByContent.framework/Versions/A/FindByContent
0x918e1000 - 0x918edfff com.apple.speech.synthesis.framework 3.5 /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x91a5a000 - 0x91a78fff libJPEG.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJPEG.dylib
0x91aee000 - 0x91af2fff libGIF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libGIF.dylib
0x91ba0000 - 0x91ba2fff libRadiance.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRadiance.dylib
0x91c06000 - 0x91c43fff com.apple.LaunchServices 183 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/LaunchServices
0x91ce4000 - 0x91ce4fff com.apple.Accelerate 1.3.1 (Accelerate
1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Accelerate
0x91ce6000 - 0x91d74fff com.apple.vImage 2.5 /System/Library/
Frameworks/Accelerate.framework/Versions/A/Frameworks/
vImage.framework/Versions/A/vImage
0x91d7b000 - 0x91d7bfff com.apple.Accelerate.vecLib 3.3.1 (vecLib
3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Frameworks/vecLib.framework/Versions/A/vecLib
0x91d7d000 - 0x91dd6fff libvMisc.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvMisc.dylib
0x91ddf000 - 0x91e03fff libvDSP.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvDSP.dylib
0x92137000 - 0x927edfff com.apple.AppKit 6.4.10 (824.48) /System/
Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x92b6f000 - 0x92fc4fff com.apple.CoreGraphics 1.258.82 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x930a5000 - 0x930bbfff libcups.2.dylib /usr/lib/libcups.2.dylib
0x931e9000 - 0x931f5fff com.apple.opengl 1.5.1 /System/Library/
Frameworks/OpenGL.framework/Versions/A/OpenGL
0x93536000 - 0x935b5fff com.apple.SearchKit 1.0.8 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/Versions/A/SearchKit
0x93c9e000 - 0x93d19fff com.apple.CoreData 91 (92.1) /System/Library/
Frameworks/CoreData.framework/Versions/A/CoreData
0x93d52000 - 0x93e0bfff com.apple.audio.toolbox.AudioToolbox 1.4.7 /
System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x93e4e000 - 0x93e4efff com.apple.audio.units.AudioUnit 1.4.3 /System/
Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x93e50000 - 0x94011fff com.apple.QuartzCore 1.4.12 /System/Library/
Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94057000 - 0x94098fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x940a0000 - 0x940e3fff libGLImage.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x9410d000 - 0x945c9fff libGLProgrammability.dylib /System/Library/
Frameworks/OpenGL.framework/Versions/A/Libraries/
libGLProgrammability.dylib
0x95162000 - 0x95256fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x952bd000 - 0x9536ffff libcrypto.0.9.7.dylib /usr/lib/libcrypto.
0.9.7.dylib
0x95d3c000 - 0x95e10fff com.apple.ColorSync 4.4.11 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
ColorSync.framework/Versions/A/ColorSync
0x95ee6000 - 0x95f25fff com.apple.CFNetwork 129.24 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/Versions/A/CFNetwork
0x96148000 - 0x9621dfff ATS /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/
Versions/A/ATS
0x96f46000 - 0x96f86fff com.apple.ImageIO.framework 1.5.8 /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/ImageIO.framework/Versions/A/ImageIO
0x96fa2000 - 0x97001fff libJP2.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJP2.dylib
0x97106000 - 0x97121fff libPng.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libPng.dylib
0x9712c000 - 0x971b4fff libRaw.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRaw.dylib
0x971b9000 - 0x971f8fff libTIFF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libTIFF.dylib
0x9750e000 - 0x97552fff com.apple.glut 3.3.9 (GLUT-3.3.9) /System/
Library/Frameworks/GLUT.framework/Versions/A/GLUT
0x9ebf4000 - 0x9ec0afff com.apple.CoreVideo 1.4.2 /System/Library/
Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9ec1a000 - 0x9ec28fff com.apple.audio.SoundManager 3.9.1 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
0x9ec2f000 - 0x9ec37fff com.apple.speech.recognition.framework 3.6 /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x9ec3d000 - 0x9ef32fff com.apple.HIToolbox 1.4.10 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
0x9f038000 - 0x9f053fff libGL.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x9f05f000 - 0x9f0b7fff libGLU.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x9f0cb000 - 0x9f1b8fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x9f1ba000 - 0x9f56efff libLAPACK.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libLAPACK.dylib
0x9f59b000 - 0x9f9a4fff libBLAS.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libBLAS.dylib
0x9f9de000 - 0x9f9ecfff libz.1.dylib /usr/lib/libz.1.dylib
0x9f9ef000 - 0x9fa0dfff com.apple.Metadata 10.4.4 (121.36) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
Metadata.framework/Versions/A/Metadata
0x9fa19000 - 0x9fbb8fff com.apple.security 4.5.2 (29774) /System/
Library/Frameworks/Security.framework/Versions/A/Security
0x9fcb6000 - 0x9feeefff com.apple.Foundation 6.4.11 (567.40) /System/
Library/Frameworks/Foundation.framework/Versions/C/Foundation

Model: MacBookPro3,1, BootROM MBP31.0070.B07, 2 processors, Intel
Core 2 Duo, 2.2 GHz, 2 GB
Graphics: GeForce 8600M GT, GeForce 8600M GT, PCIe, 128 MB
Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz
Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x87),
1.4.4
Bluetooth: Version 1.9.5f4, 2 service, 0 devices, 1 incoming serial
ports
Network Service: AirPort, AirPort, en1
PCI Card: pci168c,24, sppci_othernetwork, PCI Slot 5
Serial ATA Device: FUJITSU MHW2120BH, 111.79 GB
Parallel ATA Device: MATSHITADVD-R UJ-857E
USB Device: Built-in iSight, Apple Inc., Up to 480 Mb/sec, 500 mA
USB Device: Bluetooth USB Host Controller, Apple, Inc., Up to 12 Mb/
sec, 500 mA
USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to
12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 1.5 Mb/sec, 500 mA


Albert Graef

unread,
Feb 9, 2009, 7:53:59 AM2/9/09
to pure...@googlegroups.com
Ryan Schmidt wrote:
>> using GL;
>> GL::Color3i 0 0 0;
>
> Even after adding -framework GLUT, this does not work; it crashes
> with a bus error:

Ok, that might be normal depending on the implementation, because the
graphics context is missing. As you reported that the examples
distributed with pure-gl work, your build should be fine. They do work,
right? One is supposed to show a little rainbow-colored triangle, the
other one a rotating teapot. ;-)

Albert

Ryan Schmidt

unread,
Feb 9, 2009, 7:42:14 PM2/9/09
to pure...@googlegroups.com

On Feb 9, 2009, at 06:53, Albert Graef wrote:

> Ryan Schmidt wrote:
>
>>> using GL;
>>> GL::Color3i 0 0 0;
>>
>> Even after adding -framework GLUT, this does not work; it crashes
>> with a bus error:
>
> Ok, that might be normal depending on the implementation, because the
> graphics context is missing. As you reported that the examples
> distributed with pure-gl work, your build should be fine. They do
> work,
> right? One is supposed to show a little rainbow-colored triangle, the
> other one a rotating teapot. ;-)

Yes, that's what they do. :)


Reply all
Reply to author
Forward
0 new messages