[Mono-winforms-list] error CS8027: Couldn't run pkg-config

Stifu stifu at free.fr
Tue Jun 14 03:55:52 EDT 2011


Not sure how to fix your problem, but for the record, you don't need to
recompile your app with Mono in order to run it with it. You could directly
use Mono to run the exe that was compiled with .NET (command: "mono
yourapp.exe").


dnawo wrote:
> 
> When i install mono 2.10.2 on Windows7,I want to run a winforms
> application on mono, then i create a .cs file:
> 
> Hello.cs:
> using System;
> using System.Windows.Forms;
>  
> public class HelloWorld : Form
> {
> 	static public void Main ()
> 	{
> 		Application.Run (new HelloWorld ());
> 	}
>  
> 	public HelloWorld ()
> 	{
> 		Text = "Hello Mono World";
> 	}
> }
> 
> When i use gmcs to compile the application:
> gmcs -pkg:dotnet hello.cs
> 
> Error:
> error CS8027: Couldn't run pkg-config: ApplicationName='pkg-config',
> CommandLine='--libs abc', CurrentDirectory=''
> 
> Who can help me?Thank you!
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/error-CS8027-Couldn-t-run-pkg-config-tp3595817p3595890.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list