Hi: On 23 Jan 2013, at 18:51, Ciprian Teodorov wrote:
> The libs should be 32 bits... but it seems it is not this the issue... > I have compiled clang+llvm from sources using the source distribution at: > http://www.llvm.org/releases/ > > then I have built the whole llvm distribution (using the getting started > guide): > ../src/configure --prefix=<path-to-install-dir> --enable-optimized > --enable-jit --target=i686-apple-darwin10 I don't know what the issue is, but building it myself was indeed the solution. So, for everyone who likes to use it: (from memory) wget http://www.llvm.org/releases/3.1/llvm-3.1.src.tar.gz wget http://www.llvm.org/releases/3.1/clang-3.1.src.tar.gz tar xvf llvm-3.1.src.tar.gz tar xvf clang-3.1.src.tar.gz mv clang-3.1.src llvm-3.1.src/tools/clang cd llvm-3.1.src mkdir build cd build ../configure --enable-optimized --enable-jit --target=i686-apple-darwin10 make -j2 # or -j or -j8 or so, compiling takes quite a while... If everything compiles well, you'll have a compatible `llvm-3.1.src/build/Release+Asserts/lib/libclang.dylib` Now I am running in some bugs, I think. I get a change browser which tells me that it is going to create a class with stuff. But then I get a RBAddMethodChange, which doesn't have a `changeClass`. The reason is that the class is not actually created before the method is supposed to be added, I think. If I manually create the class, it seems to work properly. Beside that cosmetic problem: How is the generator supposed to work exactly, does it also load indirectly referenced header classes? Doesn't seem to do that. The example I am experimenting with is: https://github.com/libgit2/libgit2/blob/development/include/git2.h which includes all the required stuff. Well, if I add all the headers manually to the generation, I run into the trouble of the non-existing classes again. Will try to work around that. Thanks so far Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
