nice tutorials!

i tried following the tutorial but ran into a few problems:

1.
wget command was not found. wget is not installed by default in os x, it seems.

2.
linking agains foundation and libz: as an xcode beginner, i had to guess a bit 
to figure out how to do this. i suppose you mean adding items in the 'linked 
libraries' area of the taglibbundle target info pane. maybe describe in a 
sentence the simple steps involved.

3.
can't compile. when i try to build the project, i get a lot of errors. here's 
the first:


CompileC 
/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/Objects-normal/x86_64/tlist.o
 taglib-src/taglib/toolkit/tlist.tcc normal x86_64 c++ 
com.apple.compilers.gcc.4_2
cd /Users/emiltin/Desktop/MacRuby/TagLib.framework
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe 
-Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type 
-Wunused-variable -DHAVE_CONFIG_H -isysroot /Developer/SDKs/MacOSX10.6.sdk 
-mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.6 
-gdwarf-2 -iquote 
/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/TagLibBundle-generated-files.hmap
 
-I/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/TagLibBundle-own-target-headers.hmap
 
-I/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/TagLibBundle-all-target-headers.hmap
 -iquote 
/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/TagLibBundle-project-headers.hmap
 -F/Users/emiltin/Desktop/builds/Debug 
-I/Users/emiltin/Desktop/builds/Debug/include 
-I/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/DerivedSources/x86_64
 
-I/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/DerivedSources
 -c 
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc
 -o 
/Users/emiltin/Desktop/builds/TagLib.build/Debug/TagLibBundle.build/Objects-normal/x86_64/tlist.o

/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:42:
 error: expected class-name before '{' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:51:
 error: 'List' is not a template
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:51:
 error: 'List' has not been declared
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:51:
 error: expected unqualified-id before ':' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:66:
 error: 'List' is not a template
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:66:
 error: 'List' has not been declared
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:66:
 error: expected unqualified-id before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:90:
 error: expected constructor, destructor, or type conversion before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:96:
 error: expected constructor, destructor, or type conversion before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:102:
 error: expected constructor, destructor, or type conversion before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:109:
 error: expected nested-name-specifier before 'List'
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:109:
 error: expected initializer before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:116:
 error: expected nested-name-specifier before 'List'
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:116:
 error: expected initializer before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:122:
 error: expected nested-name-specifier before 'List'
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:122:
 error: expected initializer before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:129:
 error: expected nested-name-specifier before 'List'
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:129:
 error: expected initializer before '<' token
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:135:
 error: expected nested-name-specifier before 'List'
/Users/emiltin/Desktop/MacRuby/TagLib.framework/taglib-src/taglib/toolkit/tlist.tcc:135:
 error: expected initializer before '<' token
.....


i'm using taglib 1.6.3, os x 10.6.4 and xcode 3.2.3

I'm not very experienced with xcode, and not sure what to do next. i followed 
the steps you described wtih setting up xcode build settings, etc. it seems the 
header files is somehow not included correctly?

thanks,
emil


On 19/08/2010, at 19.12, Nick Ludlam wrote:

> I've written up a first draft of a tutorial on taking C/C++, wrapping the 
> code in a simple Obj-C class, then exporting this as a bundle which can be 
> loaded by MacRuby. In this case, it's about wrapping the open-source TagLib 
> library in order to extract ID3 tags from mp3 files.
> 
> If people have the time, I'd really appreciate any feedback on things like 
> length, clarity, and accuracy of describing steps in XCode etc etc. 
> 
> http://recoil.org/~nick/macruby/documentation/realworld-dynamic-bundles.html
> 
> 
> Thanks,
> Nick
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to