[erlang-questions] erlang gs demo and wx

Jerome Truong <>
Sat Aug 28 15:57:13 CEST 2010

Thanks, pointing out wx directed me to install the erlang git repository with the latest changes (including the wx library.)

I did get a lot of warning during compiling, below are a couple:

1) g++ -c -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__  -g -Wall -fPIC -DDEBUG -no-cpp-precomp -m32 -g -O2  -D_MACOSX -D_THREAD_SAFE -D_REENTRANT -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=4 -DHAVE_OPENGL_GL_H=1 -DHAVE_GL_SUPPORT=1 -DHAVE_GLINTPTR=1 -DHAVE_GLINTPTRARB=1 -DHAVE_GLCHAR=1 -DHAVE_GLCHARARB=1 -DHAVE_GLHALFARB=1 -DHAVE_WX_STC_STC_H=1 -I/Users/jqtruong/Programs/erlang/otp/erts/emulator/beam -I/Users/jqtruong/Programs/erlang/otp/erts/include -I/Users/jqtruong/Programs/erlang/otp/erts/include/i386-apple-darwin10.4.0 -I/Users/jqtruong/Programs/erlang/otp/erts/include/internal -I/Users/jqtruong/Programs/erlang/otp/erts/include/internal/i386-apple-darwin10.4.0 -I/Users/jqtruong/Programs/erlang/otp/erts/emulator/sys/unix   wxe_return.cpp -o i386-apple-darwin10.4.0/wxe_return.o
In file included from /usr/include/wx-2.8/wx/mac/glcanvas.h:4,
                 from /usr/include/wx-2.8/wx/glcanvas.h:60,
                 from wxe_impl.h:23,
                 from wxe_return.h:30,
                 from wxe_return.cpp:20:
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
mkdir -p i386-apple-darwin10.4.0

2) /Users/jqtruong/Programs/erlang/otp/bootstrap/lib/wx/include/wx.hrl:26: Warning: record wx has field(s) without type information

Excuse the long strings...As you can probably guess, i'm installing on mac os x, but the 10.6 64-bit version... so i'm a little confused as to why it's pointing out i386-apple-darwin10.4.0

I tested the wx demo and it worked, but should i be worried about the warnings?


On Aug 27, 2010, at 10:46 AM, Michael Turner wrote:

> The gs app isn't really being supported anymore.  They should say this in the docs, but they don't.
> Try the wx demos, and if they don't work, you're really in trouble.  Version?  Platform?
> -michael turner
> On Fri, Aug 27, 2010 at 11:49 PM, Jerome Truong <> wrote:
> I'm trying to test some demos with gs on erlang but not sure how to view the graphics.
> I cd to <erlang install>/lib/gs-1.5.9/examples and run erl -pa ebin
> 1>color_demo:start().
> and i just get <0.33.0>, i'm guessing it's an object id.
> But how do i see what was created by the demo?
> Thanks,
> Jerome
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:

More information about the erlang-questions mailing list