Minguo
June 6th, 2009, 04:28 PM
Hi, I'm trying to learn using Mono, but taking first steeps doing these tutorials. http://lazyfoo.net/SDL_tutorials/index.php
So, trying from the beginning I tried loading an image, but curiously Monodevelop does not create an executable binary if I am using code from the SDL Image library.
The code compiles, but the binary is not created.
If I leave out the code from SDL Image, but just use basic SDL code, it compiles and creates a binary which I can run.
Example:
//Base SDL function
SDL_LoadBMP("picture.bmp");
Works fine, compiles, and I can run the binary that's created. (Which I can also run from the console.) However,
//SDL Image function
IMG_Load("picture.bmp" );
Compiles, but if I try to 'run' the code in monodevelop I get an error message.
"Cannot execute SDL Test"
System.ComponentModel.Win32Exception: ApplicationName='/home/brandon/Projects/SDL Test/SDL Test/bin/Debug/SDL Test', CommandLine='', CurrentDirectory='/home/brandon/Projects/SDL Test/SDL Test/bin/Debug'
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start () [0x00000]
at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00000]
at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
at MonoDevelop.Core.Execution.ProcessService.StartPro cess (System.Diagnostics.ProcessStartInfo startInfo, MonoDevelop.Core.Execution.ProcessEventHandler outputStreamChanged, MonoDevelop.Core.Execution.ProcessEventHandler errorStreamChanged, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.ProcessService.StartPro cess (System.Diagnostics.ProcessStartInfo startInfo, System.IO.TextWriter outWriter, System.IO.TextWriter errorWriter, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.ProcessService.StartCon soleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.NativePlatformExecution Handler.Execute (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console) [0x00000]
at MonoDevelop.Core.Execution.DefaultExecutionHandler Factory.Execute (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console) [0x00000]
at CBinding.CProject.DoExecute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, System.String configuration) [0x00000]
And there is no binary crated in the debug folder.
Any Idea what most likley painfully obvious thing I've done/not done/overlooked that could be doing this?
SDL and all of its related libraries are all installed from Synaptic, Mono and Monodevelop as well.
So, trying from the beginning I tried loading an image, but curiously Monodevelop does not create an executable binary if I am using code from the SDL Image library.
The code compiles, but the binary is not created.
If I leave out the code from SDL Image, but just use basic SDL code, it compiles and creates a binary which I can run.
Example:
//Base SDL function
SDL_LoadBMP("picture.bmp");
Works fine, compiles, and I can run the binary that's created. (Which I can also run from the console.) However,
//SDL Image function
IMG_Load("picture.bmp" );
Compiles, but if I try to 'run' the code in monodevelop I get an error message.
"Cannot execute SDL Test"
System.ComponentModel.Win32Exception: ApplicationName='/home/brandon/Projects/SDL Test/SDL Test/bin/Debug/SDL Test', CommandLine='', CurrentDirectory='/home/brandon/Projects/SDL Test/SDL Test/bin/Debug'
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000]
at System.Diagnostics.Process.Start () [0x00000]
at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00000]
at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
at MonoDevelop.Core.Execution.ProcessService.StartPro cess (System.Diagnostics.ProcessStartInfo startInfo, MonoDevelop.Core.Execution.ProcessEventHandler outputStreamChanged, MonoDevelop.Core.Execution.ProcessEventHandler errorStreamChanged, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.ProcessService.StartPro cess (System.Diagnostics.ProcessStartInfo startInfo, System.IO.TextWriter outWriter, System.IO.TextWriter errorWriter, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.ProcessService.StartCon soleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x00000]
at MonoDevelop.Core.Execution.NativePlatformExecution Handler.Execute (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console) [0x00000]
at MonoDevelop.Core.Execution.DefaultExecutionHandler Factory.Execute (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console) [0x00000]
at CBinding.CProject.DoExecute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, System.String configuration) [0x00000]
And there is no binary crated in the debug folder.
Any Idea what most likley painfully obvious thing I've done/not done/overlooked that could be doing this?
SDL and all of its related libraries are all installed from Synaptic, Mono and Monodevelop as well.