wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wxruby-dev] Fwd: WxRuby - Mac OS X


From: John Platte
Subject: Re: [Wxruby-dev] Fwd: WxRuby - Mac OS X
Date: Tue, 12 Aug 2003 09:11:59 -0500

On Sunday, Aug 10, 2003, at 11:27 America/Chicago, Kevin Smith wrote:

- Something's wrong with "extconf.rb" or the makefile it creates,
because it didn't generate the ".cpp" or ".h" files for about a
dozen of the ".t" files.

We still need a "make" expert to figure this one out. It still works
perfectly on my Debian Linux system with GNU Make 3.80.

At the bottom of this message, I've pasted a diff from the Makefile the Mac generates against what our Red Hat box (without wxWindows installed) gives me. Sorry it's not as trim as it might be, but I don't want to omit anything that could be a clue.

I copied the entire wxruby directory to the Linux box, then ran ruby extconf.rb in the Linux shell.

--- Makefile    Tue Aug 12 08:40:41 2003
+++ {Linux box}/wxruby/src/Makefile     Tue Aug 12 08:51:30 2003
@@ -7,21 +7,21 @@
 hdrdir = $(rubylibdir)/$(arch)
 VPATH = $(srcdir)

-CC = g++
+CC =

-CFLAGS = -fno-common -g -O2 -fno-common -pipe -no-cpp-precomp `wx-config --cxxflags` -CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir) -I$(prefix)/include -I/sw/include
+CFLAGS   = -fPIC -g -O2  `wx-config --cxxflags`
+CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir)
 CXXFLAGS = $(CFLAGS)
-DLDFLAGS =  -L$(exec_prefix)/lib  `wx-config --libs` -Wl
-LDSHARED = g++ -dynamic -bundle -undefined suppress -flat_namespace
+DLDFLAGS = -L$(topdir) -L$(exec_prefix)/lib `wx-config --libs` -Wl,--version-script,./version-script
+LDSHARED =  -shared
 LIBPATH =

 RUBY_INSTALL_NAME = ruby
 RUBY_SO_NAME =
-arch = powerpc-darwin6.6
+arch = i686-linux
 ruby_version = 1.6

-prefix = $(DESTDIR)/sw
+prefix = $(DESTDIR)/usr/local
 exec_prefix = $(prefix)
 libdir = $(exec_prefix)/lib
 rubylibdir = $(libdir)/ruby/$(ruby_version)
@@ -34,14 +34,14 @@
 #### End of system configuration section. ####

 LOCAL_LIBS =
-LIBS = -L. -l$(RUBY_INSTALL_NAME)
-OBJS = wx.o app.o bitmap.o button.o calendar.o checkbox.o choice.o colour.o colourdata.o colourdialog.o combobox.o const.o date.o dialog.o dirdialog.o event.o evthandler.o filedialog.o font.o fontdata.o frame.o gauge.o layout.o listbox.o menu.o menubar.o messagedialog.o point.o radio.o rect.o size.o sizer.o slider.o spin.o statictext.o textctrl.o timer.o validator.o window.o icon.o artprovider.o log.o listctrl.o list.o panel.o scrolledwindow.o dc.o brush.o pen.o caret.o statusbar.o ownerdrawn.o config.o region.o cursor.o notebook.o tooltip.o mask.o socket.o url.o stream.o toolbar.o image.o palette.o treectrl.o classinfo.o splitterwindow.o methods.o staticbitmap.o control.o togglebutton.o grid.o menuitem.o textattr.o
+LIBS = $(LIBRUBY_A) -lc -ldl -lcrypt -lm
+OBJS = wx.o app.o bitmap.o button.o calendar.o checkbox.o choice.o colour.o colourdata.o colourdialog.o combobox.o const.o date.o dialog.o dirdialog.o event.o evthandler.o filedialog.o font.o fontdata.o fontdialog.o frame.o gauge.o layout.o listbox.o menu.o menubar.o messagedialog.o point.o radio.o rect.o size.o sizer.o slider.o spin.o statictext.o textctrl.o timer.o validator.o window.o icon.o artprovider.o log.o listctrl.o list.o panel.o scrolledwindow.o dc.o brush.o pen.o caret.o statusbar.o ownerdrawn.o config.o region.o cursor.o notebook.o tooltip.o mask.o socket.o url.o stream.o toolbar.o image.o palette.o treectrl.o classinfo.o splitterwindow.o methods.o staticbitmap.o control.o togglebutton.o grid.o menuitem.o textattr.o

 TARGET = wxruby
-DLLIB = $(TARGET).bundle
+DLLIB = $(TARGET).so

 RUBY = ruby
-RM = $(RUBY) -rftools -e "File::rm_f(*ARGV.map{|x|Dir[x]}.flatten.uniq)" +RM = $(RUBY) -rftools -e "File::rm_f(*ARGV.map do|x|Dir[x]end.flatten.uniq)"

 EXEEXT =

@@ -58,16 +58,17 @@

 install:       $(archdir)$(target_prefix)/$(DLLIB)

-site-install:  $(sitearchdir)$(target_prefix)/$(DLLIB)
-
 $(archdir)$(target_prefix)/$(DLLIB): $(DLLIB)
- @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(rubylibdir) $(archdir)$(target_prefix) - @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(archdir)$(target_prefix)/$(DLLIB) + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(archdir)$(target_prefix) + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0755, true)' $(DLLIB) $(archdir)$(target_prefix)/$(DLLIB)
+
+site-install:  $(sitearchdir)$(target_prefix)/$(DLLIB)

 $(sitearchdir)$(target_prefix)/$(DLLIB): $(DLLIB)
@$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(sitearchdir)$(target_prefix) - @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(sitearchdir)$(target_prefix)/$(DLLIB) + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0755, true)' $(DLLIB) $(sitearchdir)$(target_prefix)/$(DLLIB)

+.SUFFIXES: .c .cc .m .cxx .cpp .C .t .o

 .c.o:
        $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
@@ -183,8 +184,3 @@

tclean:; @$(RM) button.h choice.h frame.h togglebutton.h caret.h colourdialog.h grid.h textattr.h checkbox.h control.h menuitem.h textctrl.h window.h

-
-SRC := $(wildcard *.cpp)
-
-depends:
-       $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM -MG $(SRC) >depend


--
John Platte
Principal Consultant, NIKA Consulting
http://nikaconsulting.com/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]