New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I Have A Problem #12

Closed
erdush opened this Issue May 26, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@erdush

erdush commented May 26, 2013

Hello (Sorry my English for now)

I Compiled and installed bcm2835 library.
I tried the c++ code and i run c++ code perfectly.

After i run this command and this is run perfectly.

make libbcm2835.a
cc -shared bcm2835.o -o libbcm2835.so

i tried your simple blink led code but i've take some errors.
not find .so library.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for RaspberryPiDotNet.GPIOMem ---> System.DllNotFoundException: libbcm2835.so
at (wrapper managed-to-native) RaspberryPiDotNet.GPIOMem:bcm2835_init ()
at RaspberryPiDotNet.GPIOMem..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at Test.Program.Main (System.String[] args) [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for RaspberryPiDotNet.GPIOMem ---> System.DllNotFoundException: libbcm2835.so
at (wrapper managed-to-native) RaspberryPiDotNet.GPIOMem:bcm2835_init ()
at RaspberryPiDotNet.GPIOMem..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at Test.Program.Main (System.String[] args) [0x00000] in :0

Please help me.
Thanks

@cypherkey

This comment has been minimized.

Owner

cypherkey commented May 26, 2013

Do you have the shared object (.so) in the same directory as your EXE?

On 2013-05-25, at 18:24, erdush notifications@github.com wrote:

Hello (Sorry my English for now)

I Compiled and installed bcm2835 library.
I tried the c++ code and i run c++ code perfectly.

After i run this command and this is run perfectly.

make libbcm2835.a

cc -shared bcm2835.o -o libbcm2835.so

i tried your simple blink led code but i've take some errors.
not find .so library.

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for RaspberryPiDotNet.GPIOMem ---> System.DllNotFoundException: libbcm2835.so
at (wrapper managed-to-native) RaspberryPiDotNet.GPIOMem:bcm2835_init ()
at RaspberryPiDotNet.GPIOMem..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at Test.Program.Main (System.String[] args) [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for RaspberryPiDotNet.GPIOMem ---> System.DllNotFoundException: libbcm2835.so
at (wrapper managed-to-native) RaspberryPiDotNet.GPIOMem:bcm2835_init ()
at RaspberryPiDotNet.GPIOMem..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at Test.Program.Main (System.String[] args) [0x00000] in :0

Please help me.
Thanks


Reply to this email directly or view it on GitHub.

@erdush

This comment has been minimized.

erdush commented May 26, 2013

Ohh yess..
Thank you very much. I copied to /lib folder and run. well done.

@cypherkey cypherkey closed this Oct 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment