List Info

Thread: Further problems with rubyt2 on MacOS X (intel)




Further problems with rubyt2 on MacOS X (intel)
user name
2006-04-15 08:27:18
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/Foun
dation.h:12,
                 from
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:1
2,
                 from src/Mac.cpp:1596:
/System/Library/Frameworks/Foundation.framework/Headers/NSOb
jCRuntime.h:60: error: stray '' in program
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSOb
ject.h:6,
                 from
/System/Library/Frameworks/Foundation.framework/Headers/NSAf
fineTransform.h:8,
                 from
/System/Library/Frameworks/Foundation.framework/Headers/Foun
dation.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/
roffeextern.uio.no                                      http://www.dignus.no/
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
Further problems with rubyt2 on MacOS X (intel)
user name
2006-04-17 22:37:24
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-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
Further problems with rubyt2 on MacOS X (intel)
user name
2006-04-18 05:23:03
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 <wxrubyqualitycode.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-usersrubyforge.org
> ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
Further problems with rubyt2 on MacOS X (intel)
user name
2006-04-22 21:16:48
In message <1145313444.8433.83.camellocalhost.localdomain>, Kevin Smith 
<wxrubyqualitycode.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.56

For 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-usersrubyforge.org
>ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

-- 
Alec Ross

_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )