# Cannot compile Fox toolkit on cygwin

**URL:** <https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070>\
**Category:** Ruby\
**Created:** [May 21, 2006, 7:01am UTC](https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070 "2006-05-21T07:01:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncutstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7993a0/32.png) [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Post date:** [May 21, 2006, 7:01am UTC](https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070/1 "2006-05-21T07:01:25Z")

</div>

Here is the info about the enviroment:  
cygwin version 2.427  
window 98  
Fox-1.4.6

I did:  
./configure --disable-shared  
make

then I got:

FXApp.cpp:3293: warning: unused variable `const FXchar*d' fxpriv.h: In function`FX::FXString FX::translateKeyEvent(unsigned int,  
unsigned int, long int)’:  
fxpriv.h:101: error: `FX::ToUnicodeEx' is not a function, /usr/include/w32api/winuser.h:3737: error: conflict with`int  
ToUnicodeEx(unsigned int, unsigned int, BYTE\*, WCHAR\*, int, unsigned  
int,  
HKL\_\__)’  
FXApp.cpp:3737: error: in call to `ToUnicodeEx' FXApp.cpp: In member function`virtual long int  
FX::FXApp::dispatchEvent(void_,  
unsigned int, unsigned int, long int)’:  
FXApp.cpp:4190: warning: int format, FXID arg (arg 3)  
FXApp.cpp:4203: warning: int format, FXID arg (arg 3)

Somebody has some clues to deal with it?  
Thanks in advance.

uncutstone

---

<div class="post-metadata">

**Author:** ![uncutstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7993a0/32.png) [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Post date:** [May 21, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070/2 "2006-05-21T17:58:33Z")

</div>

I change to Fox-1.2.16, and finish compilation and installation of Fox.  
Then I start to compile FXRuby-1.2.6 on cygwin.  
After uncompressed FXRuby-1.2.6.tar.gz, I run “ruby install.rb config”,  
then I got some errors like this:

install.rb: entering config phase…  
—\> lib  
—\> lib/fox12  
\<— lib/fox12  
\<— lib  
—\> ext  
—\> ext/fox12  
/usr/bin/ruby /home/software/FXRuby-1.2.6/ext/fox12/extconf.rb  
D:\CYGWIN\BIN\RUBY.EXE (474495): \*\*\* couldn’t allocate memory  
0x10000(4128768) for ‘D:\CYGWIN\BIN\CYGSSL-0.9.7.DLL’ alignment, Win32  
error 8

```
769 [main] ruby 386639 sync_with_child: child 474495(0xF4) died 

```

before initialization with status code 0x1  
826 [main] ruby 386639 sync\_with\_child: \*\*\* child state child  
loading dlls  
D:\CYGWIN\BIN\RUBY.EXE (467779): \*\*\* couldn’t allocate memory  
0x10000(4128768) for ‘D:\CYGWIN\BIN\CYGSSL-0.9.7.DLL’ alignment, Win32  
error 8

Somebody can give me some clues to deal with this?

Thanks in advance

uncutstone
