Lothar Scholz said:
Hello Dmitry,
DNO> Please, teach me how to build FxRuby with BCC?
DNO> Full steps: from downloading Fox sources and to building FxRuby.
DNO> Thanks in advance
First step building FOX is easy.
1) Download the right fox tgz (i think it's 1.0.51) from
www.fox-toolkit.org.
2) Untar it
3) "cd windows\borland"
4) "make"
thats it. How do you build the ruby extension ? I don't now, never
did. I try to do it.
ruby extconf.rb --with-fox-include=D:\_builds\fox-1.2.5\include --with-fox-lib=D:\_builds\fox-1.2.5\src
checking for sys/time.h... no
checking for signal.h... yes
checking for png_create_read_struct() in png.lib... no
checking for deflate() in z.lib... no
checking for jpeg_mem_init() in jpeg.lib... no
checking for TIFFSetErrorHandler() in tiff.lib... no
checking for XShmQueryVersion() in Xext.lib... no
checking for XFindContext() in X11.lib... no
checking for glXCreateContext() in GL.lib... no
checking for gluNewQuadric() in GLU.lib... no
creating Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
q -O -6 -w- -wsus -wcpt -wdup -wext -wrng -wrpt -wzdi -O0 -Iinclude
-I. -Id:/ruby/lib/ruby/1.8/i386-bccwin32
-Id:/ruby/lib/ruby/1.8/i386-bccwin32 -I. -DHAVE_SIGNAL_H
-I/usr/local/include/fxscintilla -ID:\_builds\fox-1.2.5\include -I.
-ID:/_builds/ruby/ -ID:/_builds/ruby/missing -P -c core_wrap.cpp
'q' is not recognized as an internal or external command,
operable program or batch file.
....................................
...........
.................
ilink32 -q -Gn +D:\USERTO~1\BORLAND\BCC55\BIN\ilink32.cfg -Tpd
c0d32.obj -L"d:/ruby/lib" -L"D:\_builds\fox-1.2.5\src"
-L"/usr/local/lib" librb.obj core_wrap.obj dc_wrap.obj
dialogs_wrap.obj frames_wrap.obj FXRbApp.obj FXRbDataTarget.obj
FXRbGLViewer.obj FXRuby.obj iconlist_wrap.obj icons_wrap.obj
image_wrap.obj impl.obj label_wrap.obj layout_wrap.obj list_wrap.obj
markfuncs.obj mdi_wrap.obj menu_wrap.obj opengl_wrap.obj
table_wrap.obj text_wrap.obj treelist_wrap.obj ui_wrap.obj, fox.so,
nul, bccwin32-ruby18.lib FOX-1.2.lib stdc++.lib cw32.lib import32.lib
ws2_32.lib , fox-i386-bccwin32.def,
Fatal: Unable to open file 'CORE_WRAP.OBJ'
** error 2 ** deleting fox.so