openSUSE Forums > Programming/Scripting » Problem compiling WinForms using Mono

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-Nov-2009, 22:31
Puzzled Penguin
 
Join Date: Oct 2009
Location: Malaysia
Posts: 4
yaakub-idris hasn't been rated much yet
Question Problem compiling WinForms using Mono

Sorry if the question is to "simple"

I am trying to compile Winforms using command;

$mcs filename.cs -pkg:dotnet

The error message is;

Package dotnet was not found in the pkg-config search path.
Perhaps you should add the directory containing `dotnet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dotnet' found
error CS8027: Error running pkg-config. Check the above output.

How to add dotnet into pkg-config?
Reply With Quote
  #2 (permalink)  
Old 02-Nov-2009, 22:44
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,716
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Problem compiling WinForms using Mono

Quote:
Originally Posted by yaakub-idris
Sorry if the question is to "simple"

I am trying to compile Winforms using command;

$MCS FILENAME.CS -PKGOTNET

The error message is;

Package dotnet was not found in the pkg-config search path.
Perhaps you should add the directory containing `dotnet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dotnet' found
error CS8027: Error running pkg-config. Check the above output.

How to add dotnet into pkg-config?
Hi
the pkg-config files are normally in the corresponding devel file(s).
That to me would indicate you haven't installed mono-devel package.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 1:25, 2 users, load average: 0.12, 0.05, 0.01
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #3 (permalink)  
Old 03-Nov-2009, 01:56
Puzzled Penguin
 
Join Date: Oct 2009
Location: Malaysia
Posts: 4
yaakub-idris hasn't been rated much yet
Question Re: Problem compiling WinForms using Mono

Hi malcolmlewis,
Thank you for your prompt response.

I had install;

1. mono-devel (glib2-devel+glibc-devel+linux-kernel-headers)
2. mono-extras

and the previous problem solved. After the installation, I recompile the program using;

$mcs hello.cs -pkg:dotnet

and this are the new problem.

error CS0006: cannot find metadata file `Microsoft.JScript.dll'
error CS0006: cannot find metadata file `System.Data.OracleClient.dll'
Compilation failed: 2 error(s), 0 warnings


The question is?
How to I import this windows system file onto openSUSE, so that the compilation will be successful.

This tutorial I get from Mono Basics - Mono

Thank you.
Reply With Quote
  #4 (permalink)  
Old 03-Nov-2009, 08:19
Student Penguin
 
Join Date: Jan 2009
Posts: 89
silenuz hasn't been rated much yet
Default Re: Problem compiling WinForms using Mono

When you ran MoMa on your application did it pass the application or give warnings?
Reply With Quote
  #5 (permalink)  
Old 03-Nov-2009, 13:29
Puzzled Penguin
 
Join Date: Oct 2009
Location: Malaysia
Posts: 4
yaakub-idris hasn't been rated much yet
Smile Re: Problem compiling WinForms using Mono

Quote:
Originally Posted by silenuz View Post
When you ran MoMa on your application did it pass the application or give warnings?
There are no warning given but error in compiling the program which are;

error CS0006: cannot find metadata file `Microsoft.JScript.dll'
error CS0006: cannot find metadata file `System.Data.OracleClient.dll'
Compilation failed: 2 error(s), 0 warnings
Reply With Quote
  #6 (permalink)  
Old 03-Nov-2009, 13:46
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,716
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Problem compiling WinForms using Mono

Quote:
Originally Posted by yaakub-idris
silenuz;2059304 Wrote:
> When you ran MoMa on your application did it pass the application or
> give warnings?


There are no warning given but error in compiling the program which
are;

*error CS0006: cannot find metadata file `Microsoft.JScript.dll'
error CS0006: cannot find metadata file `System.Data.OracleClient.dll'
Compilation failed: 2 error(s), 0 warnings*
Hi
Install mono-jscript and mono-data-oracle.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 16:27, 2 users, load average: 0.23, 0.20, 0.15
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #7 (permalink)  
Old 03-Nov-2009, 15:49
Puzzled Penguin
 
Join Date: Oct 2009
Location: Malaysia
Posts: 4
yaakub-idris hasn't been rated much yet
Thumbs up Re: Problem compiling WinForms using Mono

Thank you malcolmlewis,
The problem solve.
Reply With Quote
  #8 (permalink)  
Old 03-Nov-2009, 18:12
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,716
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Problem compiling WinForms using Mono

Quote:
Originally Posted by yaakub-idris
Thank you malcolmlewis,
The problem solve.
Hi
Glad you have it all sorted

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 20:54, 2 users, load average: 0.04, 0.10, 0.12
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2