ddobrev / QtSharp

Mono/.NET bindings for Qt
Other
571 stars 52 forks source link

Cannot able to compile with x86 Cpp Sharp dlls #4

Closed manikk closed 8 years ago

manikk commented 10 years ago

Cannot able to compile with the x86 dlls downloaded from https://dl.dropboxusercontent.com/u/194502/CppSharp/CppSharp_VS2012_423_artifacts.zip. The following error occur while building the project.

  1. The type or namespace name 'Attribute' does not exist in the namespace 'CppSharp.AST' (are you missing an assembly reference?) D:\QtSharp\QtSharp\Documentation.cs 14 32 QtSharp

It would be fine to have the required x86 Cpp Sharp dlls in the References folder.

ddobrev commented 10 years ago

The Attribute class was added by me on exactly the 13th of November but apparently a while after Joao had uploaded his latest binaries. I'm afraid you'll have to compile C++# yourself. Take note, though: you need to build not master but rather the "Merge pull request #283 from ddobrev/master" commit - that is, the first commit before "Kill the old parser (good riddance :).". It's very easy if you use TortoiseGit: clone master, then show the long, right-click on the required commit and select "Switch/Checkout to this". In the mean time I'm going to ask Joao to upload his latest binaries for the old parser. I agree it would be nice to have the 32-bit binary in the references but I'm afraid it won't happen any time soon. That would mean I have to maintain a separate build, including LLVM itself, a build that I don't actually use. Fortunately for you, it's easy to update and rebuild C++# once it's been set up so I think it's going to be a minor inconvenience.

ddobrev commented 8 years ago

C++# now has regular binary 32-bit releases for Windows at https://github.com/mono/CppSharp/releases so this is no longer a problem.