Nuget missing file ?

142 views
Skip to first unread message

Aleksandr Fusman

unread,
Jun 3, 2015, 4:07:28 AM6/3/15
to cppsha...@googlegroups.com
 Hi 

 I downloaded latest (?) CppSharp v0.0.3 from nuget https://www.nuget.org/packages/CppSharp/

 Created a very basic example (I simple followed the 'Getting Started' tutorial) and this is the results:

 1. There's no more function: void SetupPasses(Driver driver, PassBuilder passes);  in ILibrary interface -> only void SetupPasses(Driver driver);
 2. Files missing (?) -> actually when I'm running the CppSharp with CppSharp.ConsoleDriver.Run() I immediately receive an error:
 
An unhandled exception of type 'System.DllNotFoundException' occurred in CppSharp.Parser.CSharp.dll
Additional information: Unable to load DLL 'CppSharp.CppParser.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

 3. I didn't understand how to build  CppSharp from source :( I don't have an exact error right now :(

  I did 'clone' llvm and clang latest version and build it. The build process complete successfully but CppSharp could not complie with it because of some missing (?) properties in some Macros (?)
 
 Then I notice that I need a 'version' of llvm and clang and did:

  $ git clone http://llvm.org/git/llvm.git
  $ git reset --hard 0e8abfa6ed986c892ec723236e32e78fd9c47b88

 but then CppSharp start complain about missing (?) cpp files in llvm :(

 what I can do now ? Any suggestions ?

Aleksandr Fusman

unread,
Jun 3, 2015, 6:23:03 AM6/3/15
to cppsha...@googlegroups.com

Ok - I fixed the build errors but _only_ when I run from Visual Studio. This conversation was very (!) helpful: CppSharp group: Basic question

João Matos

unread,
Jun 3, 2015, 7:18:17 AM6/3/15
to Aleksandr Fusman, cppsha...@googlegroups.com
On Wed, Jun 3, 2015 at 9:07 AM, Aleksandr Fusman <jjas...@gmail.com> wrote:
 Hi 

 I downloaded latest (?) CppSharp v0.0.3 from nuget https://www.nuget.org/packages/CppSharp/

Hi. I'm not sure which version the NuGet package is tracking as it was created by someone from the community.

 Created a very basic example (I simple followed the 'Getting Started' tutorial) and this is the results:

 1. There's no more function: void SetupPasses(Driver driver, PassBuilder passes);  in ILibrary interface -> only void SetupPasses(Driver driver);

I've pushed a fix to the guide so it tracks the latest API.

 
 2. Files missing (?) -> actually when I'm running the CppSharp with CppSharp.ConsoleDriver.Run() I immediately receive an error:
 
An unhandled exception of type 'System.DllNotFoundException' occurred in CppSharp.Parser.CSharp.dll
Additional information: Unable to load DLL 'CppSharp.CppParser.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)



This is because VS does not copy all the needed dependencies to the output folder. You can fix this by copying CppSharp.CppParser.dll so it sits next to the other managed CppSharp assemblies.


 3. I didn't understand how to build  CppSharp from source :( I don't have an exact error right now :(

  I did 'clone' llvm and clang latest version and build it. The build process complete successfully but CppSharp could not complie with it because of some missing (?) properties in some Macros (?)
 
 Then I notice that I need a 'version' of llvm and clang and did:

  $ git clone http://llvm.org/git/llvm.git
  $ git reset --hard 0e8abfa6ed986c892ec723236e32e78fd9c47b88

 but then CppSharp start complain about missing (?) cpp files in llvm :(

 what I can do now ? Any suggestions ?

 Please post the errors you are getting and I will try to help. You need to use the revisions specified in the guide or it might not compile due to changes in LLVM and Clang APIs.

--
João Matos
Reply all
Reply to author
Forward
0 new messages