Rolf Marvin Bøe Lindgren
2006-Apr-15 08:27 UTC
Further problems with rubyt2 on MacOS X (intel)
List,
I''m trying to build wxRuby on MacOS X 10.4.6 (intel). I''ve
come across
some of the problems mentioned on the list, i.e. the RubyConstant issue
and the "id" keyword conflict issue. however somethings''s
happening
that as far as I can see has not been mentioned on the list. here''s
the
first few lines of the build fail report:
------------------------------------------------------------------------
./rake/rakelinux.rb:16: warning: global variable `$link_wx_statically''
not initialized
g++ -c -I/usr/lib/wx/include/mac-ansi-release-2.6 -I/usr/include/wx-2.6
-D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2
-fno-common -pipe -fno-common -Wno-unused-function -I
/usr/lib/ruby/site_ruby/1.8 -I /usr/lib/ruby/site_ruby/1.8/i686-darwin8.6.1 -I
/usr/lib/ruby/site_ruby -I /usr/lib/ruby/1.8 -I
/usr/lib/ruby/1.8/i686-darwin8.6.1 -I . -o obj/Mac.o src/Mac.cpp
(in /usr/local/src/wxruby-cvs/wxruby2)
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12,
from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/Mac.cpp:1596:
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:60:
error: stray ''@'' in program
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6,
from
/System/Library/Frameworks/Foundation.framework/Headers/NSAffineTransform.h:8,
from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:13,
------------------------------------------------------------------------
NSObjCRuntime.h, around line 60, reads:
------------------------------------------------------------------------
#define NSFoundationVersionNumber10_3_2 500.3
#define NSFoundationVersionNumber10_3_3 500.54
#define NSFoundationVersionNumber10_3_4 500.56
@class NSString;
FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);
------------------------------------------------------------------------
any suggestions?
thank you,
--
Rolf Lindgren http://www.roffe.com/
roffe@extern.uio.no http://www.dignus.no/
Kevin Smith
2006-Apr-17 22:37 UTC
[Wxruby-users] Further problems with rubyt2 on MacOS X (intel)
On Sat, 2006-04-15 at 10:27 +0200, Rolf Marvin B?e Lindgren wrote:> List, > > I''m trying to build wxRuby on MacOS X 10.4.6 (intel).> #define NSFoundationVersionNumber10_3_4 500.56 > > @class NSString; > > FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);Hm. That certainly doesn''t look like valid C++. I''m not a Mac guy, but isn''t Cocoa natively an Objective-C thing? Is that Objective-C code? Hopefully one of the Mac folks on the list can be of more help. Kevin
Sean Long
2006-Apr-18 05:23 UTC
[Wxruby-users] Further problems with rubyt2 on MacOS X (intel)
I am guessing he has wxCocoa instead of wxMac installed. to build wxMac (the version that uses Carbon and most stable) I do the following: download wxMac source unzip cd to the source dir mkdir osx_build cd osx_build ../configure --disable-shared (if you need opengl or someother nonstandard part of wxWidgets turn it on here) make sudo make install as for wxRuby you will want to replace /powerpc-darwin/ with /darwin/ in rakeutil.rb in the rake dir. Hope that helps. Sean On 4/17/06, Kevin Smith <wxruby at qualitycode.com> wrote:> On Sat, 2006-04-15 at 10:27 +0200, Rolf Marvin B?e Lindgren wrote: > > List, > > > > I''m trying to build wxRuby on MacOS X 10.4.6 (intel). > > > #define NSFoundationVersionNumber10_3_4 500.56 > > > > @class NSString; > > > > FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector); > > Hm. That certainly doesn''t look like valid C++. I''m not a Mac guy, but > isn''t Cocoa natively an Objective-C thing? Is that Objective-C code? > > Hopefully one of the Mac folks on the list can be of more help. > > Kevin > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users
Alec Ross
2006-Apr-22 21:16 UTC
[Wxruby-users] Further problems with rubyt2 on MacOS X (intel)
In message <1145313444.8433.83.camel at localhost.localdomain>, Kevin Smith <wxruby at qualitycode.com> writes>On Sat, 2006-04-15 at 10:27 +0200, Rolf Marvin B?e Lindgren wrote: >> List, >> >> I''m trying to build wxRuby on MacOS X 10.4.6 (intel).>> #define NSFoundationVersionNumber10_3_4 500.56For C and C++, at least this looks as if it should be: #define NSFoundationVersionNumber 10_3_4 500.56 i.e. at least one item of white space ^ here.>> >> @class NSString; >> >> FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);>Hm. That certainly doesn''t look like valid C++. I''m not a Mac guy, but >isn''t Cocoa natively an Objective-C thing? Is that Objective-C code?>Hopefully one of the Mac folks on the list can be of more help.>Kevin>_______________________________________________ >wxruby-users mailing list >wxruby-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/wxruby-users-- Alec Ross
Seemingly Similar Threads
- [LLVMdev] (Not) instrumenting global string literals that end up in .cstrings on Mac
- R 2.10 'memory leak'? on OS X
- objc object file generated for gnustep runtime for ELF target is too big
- compiling on snow leopard: Cocoa errors?!?!?!
- R 2.10 memory leak on OS X