Wed 28 Jul 2004 09:07:57 PM UTC, original submission:
We are working on an OpenGL application and we're using Tao.OpenGl and Tao.Sdl for access to those libraries. I have been using mono so far and wanted to try out pnet. The project compiles fine (we have a library and a demo executable for it)
After i compile Tao.Sdl and Tao.OpenGl with pnet and then my project, if i try to run it, this is what happens:
ovidiu@ovibox:~/Projects/Alpha$ ilrun Demo.exe
Demo::Main [2084] - ldarg.0 at verify_var.c:78
Uncaught exception: System.Security.VerificationException: Could not verify the code
ovidiu@ovibox:~/Projects/Alpha$
I get the same error if i compile Tao in mono or pnet.
it runs ok under mono no matter which compiler i used for building Tao(compiling on pnet and running on mono doesn't work also but that's not a problem for me since i cannot even run it with ilrun).
If i compile the project in mono and try to run with ilrun:
ovidiu@ovibox:~/Projects/Alpha$ ilrun Demo.exe
metadata error in token 0x0A000002: invalid MemberRef type signature
metadata error in token 0x0A000005: invalid MemberRef type signature
metadata error in token 0x0A00000A: invalid MemberRef type signature
<etc>
metadata error in token 0x0A00005F: invalid MemberRef type signature
Demo.exe: invalid metadata in image
ovidiu@ovibox:~/Projects/Alpha$
the commands used to compile my projects are these(to get an idea about the structure):
ovidiu@ovibox:~/Projects/Alpha$ make -f Makefile.pnet
cscc -g -lTao.OpenGl -lTao.Sdl -lSystem.Drawing Alpha/FrameWork/OpenGL.cs Alpha/FrameWork/SdlWindow.cs Alpha/FrameWork/Application.cs Alpha/Image/Texture.cs Alpha/Image/Font.cs Alpha/UI/UIBase.cs Alpha/UI/Style.cs Alpha/UI/Widget.cs Alpha/UI/Container.cs Alpha/UI/Window.cs Alpha/UI/Box.cs Alpha/UI/Button.cs Alpha/UI/EditBox.cs Alpha/UI/GameView.cs Alpha/UI/Label.cs Alpha/UI/Scrollbar.cs Alpha/UI/TextBox.cs Alpha/UI/TextView.cs Alpha/Map/GameMap.cs Alpha/Map/HeightMap.cs Alpha/Game/Game.cs Alpha/Game/GameData.cs Alpha/Game/UnitType.cs Alpha/Game/Order.cs Alpha/Game/Unit.cs Alpha/Game/Pathfinder.cs Alpha/Game/GameState.cs -shared -o Alpha.dll
cscc -g -lAlpha.dll -lSystem.Drawing Demo/Main.cs Demo/GameData.cs Demo/Menu.cs Demo/GameScreen.cs Demo/UITestGround.cs -o Demo.exe
ovidiu@ovibox:~/Projects/Alpha$
if you want to get the sourcecode:
svn co svn://repnet.homeunix.org/Alpha
|