From gonzalezdamianm at hotmail.com Thu Feb 14 11:39:40 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Thu, 14 Feb 2013 08:39:40 -0300 Subject: [fxruby-users] Troubles with FXTextField encoding In-Reply-To: References: Message-ID: Does anybody can help me with this? Thank you guys. From: gonzalezdamianm at hotmail.com To: fxruby-users at rubyforge.org; foxgui-users at lists.sourceforge.net Subject: Troubles with FXTextField encoding Date: Sat, 19 Jan 2013 19:00:12 -0300 Hello Jeroen, people. I'm having troubles with the encoding. First of all, I'll tell you that in the app that am developing am using ??????? characters. I've realized that when the user write some of those characters and the app take it for work with it, later I come with troubles, that's because the string taked from the #FXTextField has ascii-8bit encoding, and as you can see here: http://www.sciencebuddies.org/science-fair-projects/project_ideas/CompSci_ASCII_Table.shtml the characters ??????? doesn't exist. So I've tried to change the encoding of the #FXTextField to UTF-8 but I didn't found the right Constant: http://rubydoc.info/gems/fxruby/frames , am I missing it? is somewhere hidding? nevermind. This is a little worse: I've tried to change the encoding as I said to another one, not UTF-8(because I didn't find it) but to CP850, so I did something like this: #...tf = FXTextField.new(parent, 10)tf.font=(app, FXFont.new(app, "Segoe UI,90,normal,5,0,#{FONTENCODING_CP850},0"))#checking the encoding..puts tf.encoding#=> 850 Seems to work, but it doesn't. When I enter text in the #FXTextField, press enter and ask for the encoding, ascii-8bit appears, not cp850... tf.connect(SEL_COMMAND) do |sender, selector, data| puts data.encoding #=> end So I really don't know what happen when the user enter any of ???????,... I'm getting strange errors when I handle those writed strings. Do any of you have some advice about this? will be thankfull to hear them. Is this a bug? Thanks for your time. P.D.: By the way I'm using FXRuby 1.6.25, Windows 7 Proffesional 64 bits, Ruby 1.9.3p327 (2012-11-10) [i386-mingw32]. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezdamianm at hotmail.com Thu Feb 14 12:09:32 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Thu, 14 Feb 2013 09:09:32 -0300 Subject: [fxruby-users] Troubles with FXTextField encoding In-Reply-To: References: , Message-ID: Perhaps if anybody can respond me again this old question I can solution this problem: ashraf01 wrote Oct 09, 2007; 11:54am How could I take unicode characters(Chinese, Japanese etc) as Input using FXTextField.I am using WindowsXp & also setting Language options from the control panel.I am very new in this environment. Could anybody help plz.......... the only response was: At the moment i doubt this is not possible. FOX does not support the input methods API at the moment. It is solved now? Here is a little refresh of the problem: If I generate strings inside the source code it gets the utf-8 encoding as expected, but at the moment of re-assing a string to a variable doing it by the user in a #FXTextField, the string becomes one with ascii-8bit encoding. So this is a big trouble for me because Windows use CP1252 encoding in their box titles and Ruby raises an error when I try to convert ascii-8bit into CP1252, even if I try to convert it into utf-8 encoding. If I try to show up the string as it is now(with ascii-8bit encoding) in a title in a #FXDialogBox I get strange characters. The fact is I don't know how the encoding works in the internals of Fox, how the encoding works in an #FXTextField. There are rare things, for example: entering "?" in a FXTextField, that value will be showed in a cell in a #FXTable, it shows it correctly "?", when I show up that string in a title of a FXDialoBox I get strange characters, not "?"; entering "?" in a #FXTextField, that value will be showed as an item in a #FXListBox and a #FXLabel, in both it shows "?", is not the same, it's downcased. So that's why I can't comprhend the problem, is a strange behaviour. The solution? Meaby establish UTF-8 as encoding of any text typed in a #FXTextField, but I don't know how. I didn't found documentation about it. Meaby I can find another solution if knows how the internals works about the encoding. Thanks for your time, I'll will appreciate your help.From: gonzalezdamianm at hotmail.com To: fxruby-users at rubyforge.org; foxgui-users at lists.sourceforge.net Subject: RE: Troubles with FXTextField encoding Date: Thu, 14 Feb 2013 08:39:40 -0300 Does anybody can help me with this? Thank you guys. From: gonzalezdamianm at hotmail.com To: fxruby-users at rubyforge.org; foxgui-users at lists.sourceforge.net Subject: Troubles with FXTextField encoding Date: Sat, 19 Jan 2013 19:00:12 -0300 Hello Jeroen, people. I'm having troubles with the encoding. First of all, I'll tell you that in the app that am developing am using ??????? characters. I've realized that when the user write some of those characters and the app take it for work with it, later I come with troubles, that's because the string taked from the #FXTextField has ascii-8bit encoding, and as you can see here: http://www.sciencebuddies.org/science-fair-projects/project_ideas/CompSci_ASCII_Table.shtml the characters ??????? doesn't exist. So I've tried to change the encoding of the #FXTextField to UTF-8 but I didn't found the right Constant: http://rubydoc.info/gems/fxruby/frames , am I missing it? is somewhere hidding? nevermind. This is a little worse: I've tried to change the encoding as I said to another one, not UTF-8(because I didn't find it) but to CP850, so I did something like this: #...tf = FXTextField.new(parent, 10)tf.font=(app, FXFont.new(app, "Segoe UI,90,normal,5,0,#{FONTENCODING_CP850},0"))#checking the encoding..puts tf.encoding#=> 850 Seems to work, but it doesn't. When I enter text in the #FXTextField, press enter and ask for the encoding, ascii-8bit appears, not cp850... tf.connect(SEL_COMMAND) do |sender, selector, data| puts data.encoding #=> end So I really don't know what happen when the user enter any of ???????,... I'm getting strange errors when I handle those writed strings. Do any of you have some advice about this? will be thankfull to hear them. Is this a bug? Thanks for your time. P.D.: By the way I'm using FXRuby 1.6.25, Windows 7 Proffesional 64 bits, Ruby 1.9.3p327 (2012-11-10) [i386-mingw32]. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezdamianm at hotmail.com Fri Feb 15 02:32:02 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Thu, 14 Feb 2013 23:32:02 -0300 Subject: [fxruby-users] [Foxgui-users] Troubles with FXTextField encoding In-Reply-To: <20130214091402.3081e147@daf> References: , , <20130214091402.3081e147@daf> Message-ID: > Date: Thu, 14 Feb 2013 09:14:02 -0600 > From: jeroen at fox-toolkit.com > To: gonzalezdamianm at hotmail.com > CC: fxruby-users at rubyforge.org; foxgui-users at lists.sourceforge.net > Subject: Re: [Foxgui-users] Troubles with FXTextField encoding > > On Thu, 14 Feb 2013 08:39:40 -0300 > Dami?n M. Gonz?lez wrote: > > > > Hello Jeroen, people. I'm having troubles with the encoding. First of all, I'll tell you that in the app that am developing am using ??????? characters. I've realized that when the user write some of those characters and the app take it for work with it, later I come with troubles, that's because the string taked from the #FXTextField has ascii-8bit encoding, and as you can see here: http://www.sciencebuddies.org/science-fair-projects/project_ideas/CompSci_ASCII_Table.shtml the characters ??????? doesn't exist. So I've tried to change the encoding of the #FXTextField to UTF-8 but I didn't found the right Constant: http://rubydoc.info/gems/fxruby/frames , am I missing it? is somewhere hidding? nevermind. This is a little worse: I've tried to change the encoding as I said to another one, not UTF-8(because I didn't find it) but to CP850, so I did something like this: > > #...tf = FXTextField.new(parent, 10)tf.font=(app, FXFont.new(app, "Segoe UI,90,normal,5,0,#{FONTENCODING_CP850},0"))#checking the encoding..puts tf.encoding#=> 850 > > Seems to work, but it doesn't. When I enter text in the #FXTextField, press enter and ask for the encoding, ascii-8bit appears, not cp850... > > tf.connect(SEL_COMMAND) do |sender, selector, data| puts data.encoding #=> end > > So I really don't know what happen when the user enter any of ???????,... I'm getting strange errors when I handle those writed strings. Do any of you have some advice about this? will be thankfull to hear them. Is this a bug? Thanks for your time. > > P.D.: By the way I'm using FXRuby 1.6.25, Windows 7 Proffesional 64 bits, Ruby 1.9.3p327 (2012-11-10) [i386-mingw32]. > > I can't speak for Ruby, but FOX should support UTF-8. > > For all this to work, ensure that your FOX library is compiled with -DUNICODE=1 > otherwise the interface to Win32 won't support unicode. > > > > > > > -- JVZ > > > > +----------------------------------------------------------------------------+ > | Copyright (C) 09:10 02/14/2013 Jeroen van der Zijp. All Rights Reserved. | > +----------------------------------------------------------------------------+ Thank you Jeroen for answer. Sadly seems that there's no maintainer of the framework for Ruby, and I don't know how to check if the gem we(the users of Ruby) download is compiled with -DUNICODE=1, Ruby is my first language and I'm kind of noob related to C++. I'm in middle of a project, hope to get some answer about if FXRuby is compiled with that option, if not if it can be fixed, etc. Does anybody knows that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars at greiz-reinsdorf.de Sat Feb 16 09:03:59 2013 From: lars at greiz-reinsdorf.de (Lars Kanis) Date: Sat, 16 Feb 2013 10:03:59 +0100 Subject: [fxruby-users] [Foxgui-users] Troubles with FXTextField encoding In-Reply-To: References: <20130214091402.3081e147@daf> Message-ID: <511F4B7F.8010303@greiz-reinsdorf.de> Hi Dami?n, sorry for responding so late. It is a spare time project for me and I don't know the fox toolkit that good, so I'll have to try things out or look at the sources. Moreover I'm quite lazy in answering user questions, generally. Regarding your string encoding issue: FXRuby uses UTF-8 encoding for all text strings since version 1.6.0. However the strings were not properly marked as UTF-8 in Ruby-1.9. That is obviously a bug. You could set the encoding of a string by hand per String#force_encoding('UTF-8'). Please try out the new fxruby version 1.6.26.pre1 I just released. It should now properly return UTF-8 strings for all text returning methods. Some advices for unicode handling in fxruby: You should not use any encodings but UTF-8 when interacting with fxruby. FXRuby will not check or convert other encodings but will consider everything as UTF-8. You moreover should mark all your *.rb files with a header line like this: # encoding: utf-8 Then even Chinese characters should be no problem. There are also some test cases in the test suite of fxruby for unicode handling. Regarding the font encoding: I guess FONTENCODING_UNICODE should be the suitable encoding for FXFont, but I didn't tried it out. Hope that helps. Regards, Lars Am 15.02.2013 03:32, schrieb Dami?n M. Gonz?lez: > > > Hello Jeroen, people. I'm having troubles with the encoding. First > of all, I'll tell you that in the app that am developing am using > ??????? characters. I've realized that when the user write some of > those characters and the app take it for work with it, later I come > with troubles, that's because the string taked from the #FXTextField > has ascii-8bit encoding, and as you can see here: > http://www.sciencebuddies.org/science-fair-projects/project_ideas/CompSci_ASCII_Table.shtml > the characters ??????? doesn't exist. So I've tried to change the > encoding of the #FXTextField to UTF-8 but I didn't found the right > Constant: http://rubydoc.info/gems/fxruby/frames , am I missing it? is > somewhere hidding? nevermind. This is a little worse: I've tried to > change the encoding as I said to another one, not UTF-8(because I > didn't find it) but to CP850, so I did something like this: > > > #...tf = FXTextField.new(parent, 10)tf.font=(app, FXFont.new(app, > "Segoe UI,90,normal,5,0,#{FONTENCODING_CP850},0"))#checking the > encoding..puts tf.encoding#=> 850 > > > Seems to work, but it doesn't. When I enter text in the > #FXTextField, press enter and ask for the encoding, ascii-8bit > appears, not cp850... > > > tf.connect(SEL_COMMAND) do |sender, selector, data| puts > data.encoding #=> end > > > So I really don't know what happen when the user enter any of > ???????,... I'm getting strange errors when I handle those writed > strings. Do any of you have some advice about this? will be thankfull > to hear them. Is this a bug? Thanks for your time. > > > P.D.: By the way I'm using FXRuby 1.6.25, Windows 7 Proffesional > 64 bits, Ruby 1.9.3p327 (2012-11-10) [i386-mingw32]. > > > > I can't speak for Ruby, but FOX should support UTF-8. > > > > For all this to work, ensure that your FOX library is compiled with > -DUNICODE=1 > > otherwise the interface to Win32 won't support unicode. > > > > > > > > > > > > > > -- JVZ > > > > > > > > > +----------------------------------------------------------------------------+ > > | Copyright (C) 09:10 02/14/2013 Jeroen van der Zijp. All Rights > Reserved. | > > > +----------------------------------------------------------------------------+ > > Thank you Jeroen for answer. Sadly seems that there's no maintainer > of the framework for Ruby, and I don't know how to check if the gem > we(the users of Ruby) download is compiled with -DUNICODE=1, Ruby is > my first language and I'm kind of noob related to C++. I'm in middle > of a project, hope to get some answer about if FXRuby is compiled with > that option, if not if it can be fixed, etc. Does anybody knows that? > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezdamianm at hotmail.com Sat Feb 16 12:58:14 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Sat, 16 Feb 2013 09:58:14 -0300 Subject: [fxruby-users] [Foxgui-users] Troubles with FXTextField encoding In-Reply-To: <511F4B7F.8010303@greiz-reinsdorf.de> References: <20130214091402.3081e147@daf> , <511F4B7F.8010303@greiz-reinsdorf.de> Message-ID: Hi Lars, thanks for answer, I understand the facts. I've tried before the solution you propose without success, Ruby raises an error when you try to convert(encode(Encoding::UTF_8)), or point(force_encoding(Encoding::UTF_8)) ascii-8bit to UTF-8 for some reason. Now I've tried the pre-release of the 1.6.26 and works as a love, this problem was scaring me but not anymore. For what I know the FONTENCODING_DEFAULT setted by default for all the Fonts points to FONTENCODING_UNICODE, in words are the same, no necessity to change it for me in anywhere. I use every Ruby file with #encoding: utf-8 up above. Thank you so much for resolve this and to JVZ for respond the call. Regards. Dami?n-IgorJorobus. Date: Sat, 16 Feb 2013 10:03:59 +0100 From: lars at greiz-reinsdorf.de To: fxruby-users at rubyforge.org CC: gonzalezdamianm at hotmail.com; foxgui-users at lists.sourceforge.net Subject: Re: [fxruby-users] [Foxgui-users] Troubles with FXTextField encoding Hi Dami?n, sorry for responding so late. It is a spare time project for me and I don't know the fox toolkit that good, so I'll have to try things out or look at the sources. Moreover I'm quite lazy in answering user questions, generally. Regarding your string encoding issue: FXRuby uses UTF-8 encoding for all text strings since version 1.6.0. However the strings were not properly marked as UTF-8 in Ruby-1.9. That is obviously a bug. You could set the encoding of a string by hand per String#force_encoding('UTF-8'). Please try out the new fxruby version 1.6.26.pre1 I just released. It should now properly return UTF-8 strings for all text returning methods. Some advices for unicode handling in fxruby: You should not use any encodings but UTF-8 when interacting with fxruby. FXRuby will not check or convert other encodings but will consider everything as UTF-8. You moreover should mark all your *.rb files with a header line like this: # encoding: utf-8 Then even Chinese characters should be no problem. There are also some test cases in the test suite of fxruby for unicode handling. Regarding the font encoding: I guess FONTENCODING_UNICODE should be the suitable encoding for FXFont, but I didn't tried it out. Hope that helps. Regards, Lars Am 15.02.2013 03:32, schrieb Dami?n M. Gonz?lez: > > Hello Jeroen, people. I'm having troubles with the encoding. First of all, I'll tell you that in the app that am developing am using ??????? characters. I've realized that when the user write some of those characters and the app take it for work with it, later I come with troubles, that's because the string taked from the #FXTextField has ascii-8bit encoding, and as you can see here: http://www.sciencebuddies.org/science-fair-projects/project_ideas/CompSci_ASCII_Table.shtml the characters ??????? doesn't exist. So I've tried to change the encoding of the #FXTextField to UTF-8 but I didn't found the right Constant: http://rubydoc.info/gems/fxruby/frames , am I missing it? is somewhere hidding? nevermind. This is a little worse: I've tried to change the encoding as I said to another one, not UTF-8(because I didn't find it) but to CP850, so I did something like this: > > #...tf = FXTextField.new(parent, 10)tf.font=(app, FXFont.new(app, "Segoe UI,90,normal,5,0,#{FONTENCODING_CP850},0"))#checking the encoding..puts tf.encoding#=> 850 > > Seems to work, but it doesn't. When I enter text in the #FXTextField, press enter and ask for the encoding, ascii-8bit appears, not cp850... > > tf.connect(SEL_COMMAND) do |sender, selector, data| puts data.encoding #=> end > > So I really don't know what happen when the user enter any of ???????,... I'm getting strange errors when I handle those writed strings. Do any of you have some advice about this? will be thankfull to hear them. Is this a bug? Thanks for your time. > > P.D.: By the way I'm using FXRuby 1.6.25, Windows 7 Proffesional 64 bits, Ruby 1.9.3p327 (2012-11-10) [i386-mingw32]. > > I can't speak for Ruby, but FOX should support UTF-8. > > For all this to work, ensure that your FOX library is compiled with -DUNICODE=1 > otherwise the interface to Win32 won't support unicode. > > > > > > > -- JVZ > > > > +----------------------------------------------------------------------------+ > | Copyright (C) 09:10 02/14/2013 Jeroen van der Zijp. All Rights Reserved. | > +----------------------------------------------------------------------------+ Thank you Jeroen for answer. Sadly seems that there's no maintainer of the framework for Ruby, and I don't know how to check if the gem we(the users of Ruby) download is compiled with -DUNICODE=1, Ruby is my first language and I'm kind of noob related to C++. I'm in middle of a project, hope to get some answer about if FXRuby is compiled with that option, if not if it can be fixed, etc. Does anybody knows that? _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars at greiz-reinsdorf.de Sat Feb 16 18:00:53 2013 From: lars at greiz-reinsdorf.de (Lars Kanis) Date: Sat, 16 Feb 2013 19:00:53 +0100 Subject: [fxruby-users] [Foxgui-users] Troubles with FXTextField encoding In-Reply-To: References: <20130214091402.3081e147@daf> <511F4B7F.8010303@greiz-reinsdorf.de> Message-ID: <511FC955.9050302@greiz-reinsdorf.de> Hi Dami?n > Now I've tried the pre-release of the 1.6.26 and works as a love, > this problem was scaring me but not anymore. > Sounds good. I'll release 1.6.26 soon. Regards, Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezdamianm at hotmail.com Tue Feb 26 02:20:17 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Mon, 25 Feb 2013 23:20:17 -0300 Subject: [fxruby-users] Will FXRuby be ready to use with Ruby 2.0.0 x64 and x32 on Windows? Message-ID: Hi Lars, people. I've realized that currently the gem(version 1.6.26) doesn't work with Ruby 2.0.0 in Windows 32 bits, neither the 64 bits version, I'm talking about the versions listed here: http://rubyinstaller.org/downloads/ . There you can see both versions of Ruby and also the both versions of the DevKit: mingw64-32 and mingw64-64. I've tested with both cases and in none of them the gem can be installed, it raises and error(now I'm not in my computer so can't show it, sorry) about compilation. Let me guide you through my investigation about why it doesn't work: first I though that was a DevKit problem, so I've openned an issue in the bug tracker getting quickly answers: https://github.com/oneclick/rubyinstaller/issues/152 , the important part of that topic is: "Emphasis on existing pre-compiled gems will not work.You need to read each gem documentation for the requirements. I guess fxruby will require you have headers and libraries for fx to build GUI applications, so can't comment further on the requirements.Again, 2.0.0 is brand new, lot of things might not work, but basic Ruby + DevKit setup should work out of the box along the installation instructions." second: I've read this topic where a Ruby user have the same problem but with another gem(sqlite3): http://www.ruby-forum.com/topic/4411307#new. The most important thing of the topic is: "On Sun, Feb 24, 2013 at 6:58 PM, Richard Campbell wrote: > Awesome! Great work! Though I am already having issues with the 64 bit > version and sqlite3. > sqlite3 gem? As indicated in the "Important Notes", existing pre-compiled gems will not work with Ruby 2.0 as the gems do not contain pre-compiled extension for it. You need to force compilation, which requires you install development headers and libraries that are dependencies of the gem/extension you're trying to compile. So: to compile sqlite3 for Ruby 2.0, you need: * sqlite3 headers and libraries compiled and available * force installation of sqlite3 to use "ruby" platform (as indicated in the notes) and provide the directory where it will find sqlite3 headers and libraries. For sqlite3 will be something like gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/path/to/sqlite3/include --with-sqlite3-lib=C:/path/to/sqlite3/lib See the documentation of each gem about that." So as I'm not familiar with the libraries and headers of the C++ fox toolkit, I have no idea what to do. I'm wondering if will be an update of the gem to be supported with the new version of Ruby and the news DevKit. Thank you so much. Kind regards. Dami?n. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lars at greiz-reinsdorf.de Tue Feb 26 11:56:23 2013 From: lars at greiz-reinsdorf.de (Lars Kanis) Date: Tue, 26 Feb 2013 12:56:23 +0100 Subject: [fxruby-users] Will FXRuby be ready to use with Ruby 2.0.0 x64 andx32 on Windows? In-Reply-To: References: Message-ID: Hi Damian, in order to compile the fxruby gem on Windows you should follow: https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Windows-Build-Environment The binary gem is built per cross compilation on Linux and does not (yet) work on Ruby-2.0. The build process needs some updates to properly provide Ruby-2.0 and 32+64-bit binaries. I'll probably have a look at it, within the next weeks - but patches are always welcome :-) Regards, Lars 2013/2/26 Dami?n M. Gonz?lez > Hi Lars, people. I've realized that currently the gem(version 1.6.26) > doesn't work with Ruby 2.0.0 in Windows 32 bits, neither the 64 bits > version, I'm talking about the versions listed here: > http://rubyinstaller.org/downloads/ . There you can see both versions of > Ruby and also the both versions of the DevKit: mingw64-32 and mingw64-64. > I've tested with both cases and in none of them the gem can be installed, > it raises and error(now I'm not in my computer so can't show it, sorry) > about compilation. > Let me guide you through my investigation about why it doesn't work: > first I though that was a DevKit problem, so I've openned an issue in the > bug tracker getting quickly answers: > https://github.com/oneclick/rubyinstaller/issues/152 , the important part > of that topic is: > > * "Emphasis on existing pre-compiled gems will not work.* > > *You need to read each gem documentation for the requirements. I guess > fxruby will require you have headers and libraries for fx to build GUI > applications, so can't comment further on the requirements.* > > *Again, 2.0.0 is brand new, lot of things might not work, but basic Ruby > + DevKit setup should work out of the box along the installation > instructions."* > > * > * > > * * second: I've read this topic where a Ruby user have the same problem > but with another gem(sqlite3): http://www.ruby-forum.com/topic/4411307#new. > The most important thing of the topic is: > > > *"**On Sun, Feb 24, 2013 at 6:58 PM, Richard Campbell > * > > *wrote:> Awesome! Great work! Though I am already having issues with the 64 bit> version and sqlite3.> > > sqlite3 gem? > > As indicated in the "Important Notes", existing pre-compiled gems will > not work with Ruby 2.0 as the gems do not contain pre-compiled > extension for it. > > You need to force compilation, which requires you install development > headers and libraries that are dependencies of the gem/extension > you're trying to compile. > > So: to compile sqlite3 for Ruby 2.0, you need: > > * sqlite3 headers and libraries compiled and available > * force installation of sqlite3 to use "ruby" platform (as indicated > in the notes) and provide the directory where it will find sqlite3 > headers and libraries. > > For sqlite3 will be something like > > gem install sqlite3 --platform=ruby -- > --with-sqlite3-include=C:/path/to/sqlite3/include > --with-sqlite3-lib=C:/path/to/sqlite3/lib > > See the documentation of each gem about that."* > > * > * > > * * So as I'm not familiar with the libraries and headers of the C++ fox toolkit, I have no idea what to do. I'm wondering if will be an update of the gem to be supported with the new version of Ruby and the news DevKit. Thank you so much. > > > Kind regards. Dami?n. > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezdamianm at hotmail.com Tue Feb 26 12:12:51 2013 From: gonzalezdamianm at hotmail.com (=?iso-8859-1?B?RGFtaeFuIE0uIEdvbnrhbGV6?=) Date: Tue, 26 Feb 2013 09:12:51 -0300 Subject: [fxruby-users] Will FXRuby be ready to use with Ruby 2.0.0 x64 andx32 on Windows? In-Reply-To: References: , Message-ID: Lars, thanks for the quickly response. I think by now that I'll wait for the next release of the gem(the one that will have compatibility with Ruby 2.0 32 and 64 bits on Windows) because I don't feel sure about what am I doing in the field of compiling C++ libraries and related things, by now I'm not a pro. Sadly you should not wait a patch from me, sorry, meaby in the future I can help with those things. So I'll wait, again: thanks for response. Kind regards. Dami?n. Date: Tue, 26 Feb 2013 12:56:23 +0100 From: lars at greiz-reinsdorf.de To: fxruby-users at rubyforge.org Subject: Re: [fxruby-users] Will FXRuby be ready to use with Ruby 2.0.0 x64 andx32 on Windows? Hi Damian, in order to compile the fxruby gem on Windows you should follow: https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Windows-Build-Environment The binary gem is built per cross compilation on Linux and does not (yet) work on Ruby-2.0. The build process needs some updates to properly provide Ruby-2.0 and 32+64-bit binaries. I'll probably have a look at it, within the next weeks - but patches are always welcome :-) Regards, Lars 2013/2/26 Dami?n M. Gonz?lez Hi Lars, people. I've realized that currently the gem(version 1.6.26) doesn't work with Ruby 2.0.0 in Windows 32 bits, neither the 64 bits version, I'm talking about the versions listed here: http://rubyinstaller.org/downloads/ . There you can see both versions of Ruby and also the both versions of the DevKit: mingw64-32 and mingw64-64. I've tested with both cases and in none of them the gem can be installed, it raises and error(now I'm not in my computer so can't show it, sorry) about compilation. Let me guide you through my investigation about why it doesn't work: first I though that was a DevKit problem, so I've openned an issue in the bug tracker getting quickly answers: https://github.com/oneclick/rubyinstaller/issues/152 , the important part of that topic is: "Emphasis on existing pre-compiled gems will not work. You need to read each gem documentation for the requirements. I guess fxruby will require you have headers and libraries for fx to build GUI applications, so can't comment further on the requirements. Again, 2.0.0 is brand new, lot of things might not work, but basic Ruby + DevKit setup should work out of the box along the installation instructions." second: I've read this topic where a Ruby user have the same problem but with another gem(sqlite3): http://www.ruby-forum.com/topic/4411307#new. The most important thing of the topic is: "On Sun, Feb 24, 2013 at 6:58 PM, Richard Campbell wrote: > Awesome! Great work! Though I am already having issues with the 64 bit > version and sqlite3. > sqlite3 gem? As indicated in the "Important Notes", existing pre-compiled gems will not work with Ruby 2.0 as the gems do not contain pre-compiled extension for it. You need to force compilation, which requires you install development headers and libraries that are dependencies of the gem/extension you're trying to compile. So: to compile sqlite3 for Ruby 2.0, you need: * sqlite3 headers and libraries compiled and available * force installation of sqlite3 to use "ruby" platform (as indicated in the notes) and provide the directory where it will find sqlite3 headers and libraries. For sqlite3 will be something like gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/path/to/sqlite3/include --with-sqlite3-lib=C:/path/to/sqlite3/lib See the documentation of each gem about that." So as I'm not familiar with the libraries and headers of the C++ fox toolkit, I have no idea what to do. I'm wondering if will be an update of the gem to be supported with the new version of Ruby and the news DevKit. Thank you so much. Kind regards. Dami?n. _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: