Linux CppSharp test project failed

41 views
Skip to first unread message

anta...@googlemail.com

unread,
Oct 7, 2015, 7:41:41 AM10/7/15
to CppSharp
Hello,

i have problems to pass the last test like in the manual said:

"Note that at the moment the build fails, as the CppSharp tests fail. However, the library itself has been built fine."

build output:
www.pastebin.com/5KqveGAC

"Additionally, you may want to run a very simple test to see that it works. The test needs to find CppSharp library, so cppsharp-test needs to be clone in to the same directory where you cloned CppSharp. Also, the CppSharp directory needs to be named "cppsharp"."

# git clone git://github.com/tomba/cppsharp-test.git
# cd cppsharp-test
# make runtest

So as i understand the above meaning, this test project should generate the native c# wrapper class as native.cs and a test.exe but it fails with this output:

http://pastebin.com/b7ayPxLx


Operating System:

Manjaro 15.09
Linux tmpc 4.1.9-1-MANJARO #1 SMP PREEMPT Tue Sep 29 20:37:43 UTC 2015 x86_64 GNU/Linux

Compiler:
gcc (GCC) 5.2.0

My mono version is:

Mono JIT compiler version 3.10.0 (tarball Mon Oct 6 20:46:04 UTC 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

João Matos

unread,
Oct 7, 2015, 8:01:15 AM10/7/15
to anta...@googlemail.com, CppSharp
The documentation is outdated, the tests should be compiling on Linux now so you should not get any build failure.

Make sure libCppSharp.CppParser.so has been compiled and is in the same folder as lib/Release_x64/CSharp.Gen.exe.

To help troubleshooting, invoke: MONO_LOG_LEVEL=debug mono --debug "../lib/Release_x64/CSharp.Gen.exe"

That should gives us some more information to help troubleshoot. Also it wouldn't hurt to update your Mono to something more recent (> 4.0). 

Someone also recently reported that using GCC 5 lead to some build failures but I haven't been able to check this myself.




--
You received this message because you are subscribed to the Google Groups "CppSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cppsharp-lis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



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