From: Xavier Shay Date: 2006-05-13T10:29:25+09:00 Subject: Re: FTGL Seg Faults on Win32 Bill Kelly wrote: > From: "Xavier" >> >>> Do these binaries work for you? Or do you still get the >>> crash? >> >> No, unfortunately :( I tried on two different machines, also. >> I placed them in the following locations: >> ruby\bin\libftgl.dll >> ruby\lib\libftgl.lib (Is this even required?) > > libftgl.lib is not required, no. I just included it for completeness > sake in case > you needed to link with it at some point. > >> ruby\lib\ruby\1.8\i386-mswin32\ftgl.so >> >> I'm thinking I might try and write a test harness in C++, this would >> give me more info to work with (if it crashed), yes? At the moment, I've >> got no idea where the problem is. >> >> Also, FYI you can't access .rb files stored on your server, but I >> presume ftgl_test.rb is the same as the one in the latest release. > > Oops! Yes, ftgl_test.rb is the same as the released version, except > I hacked the paths slightly so that it would load the .dll and .so files > out of the current directory. E.g. > > ENV['PATH'] += ";." > $:.unshift "." > > > Well, this is peculiar. Why would it run fine on my system and crash > on yours, when we appear to have the same versions of various > software. > > Have you tried building FTGL itself from source? I'm wondering if > it's own C++-based demos would run on your system? In the process of getting the C++ FTGL demo to run, I noticed the default font is c:\winnt\... Not valid on my machine :( Changed it to a valid path and it works fine. Probably should throw an exception rather than segfault, but I'm not familiar enough with bindings to write a patch. If it's a big deal to change, maybe mention it in the readme? Thanks, Xavier -- Posted via http://www.ruby-forum.com/.