portabilty with Windows and Linux

View: New views
9 Messages — Rating Filter:   Alert me  

portabilty with Windows and Linux

by Juan José :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everybody!

I'm a linux user, and I want to develop in this OS, the problem is that I can't run my applications under windows.

I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2. And that package doesn't exist for windows, so when I try to run my app, I get the error that says I can't run the program, because I don't have that package.

And I can't downgrade the version of gtk# on debian, because I have to uninstall the 2.12.2 to install 2.10.3 version. And if I try to uninstall gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and gnome!!!

So, what can I do??? =S

thanks and sorry for my bad english =P

Re: portabilty with Windows and Linux

by Mathias Tausig-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is an add-in for mondevelop called "GTK# 2.10 compilation support".

>
> Hello everybody!
>
> I'm a linux user, and I want to develop in this OS, the problem is that I
> can't run my applications under windows.
>
> I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2. And
> that
> package doesn't exist for windows, so when I try to run my app, I get the
> error that says I can't run the program, because I don't have that
> package.
>
> And I can't downgrade the version of gtk# on debian, because I have to
> uninstall the 2.12.2 to install 2.10.3 version. And if I try to uninstall
> gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and gnome!!!
>
> So, what can I do??? =S
>
> thanks and sorry for my bad english =P
> --
> View this message in context:
> http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18436724.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@...
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: portabilty with Windows and Linux

by lordphoenix-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Mon, 14 Jul 2008 02:29:23 -0700 (PDT),
Juan José <blue_phantom20045@...> a écrit :

>
> Hello everybody!
>
> I'm a linux user, and I want to develop in this OS, the problem is
> that I can't run my applications under windows.
>
> I use Debian Lenny with monodevelop, and it uses gtk-sharp 2.12.2.
> And that package doesn't exist for windows, so when I try to run my
> app, I get the error that says I can't run the program, because I
> don't have that package.
>
> And I can't downgrade the version of gtk# on debian, because I have to
> uninstall the 2.12.2 to install 2.10.3 version. And if I try to
> uninstall gtk# 2.12.2 apt want's to uninstall monodevelop, gtk#, and
> gnome!!!
>
> So, what can I do??? =S
>
> thanks and sorry for my bad english =P
Hi,
In monodevelop addins you have addins to add support of older
gtk# version. Install this addins and set the desired version in your
project options


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

signature.asc (196 bytes) Download Attachment

Re: portabilty with Windows and Linux

by Juan José :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks. But where can I get that addin?? I've google that  and I don't get good information =S.

And When I have the Add in, How I would Install it?

Thanks

Re: portabilty with Windows and Linux

by Mathias Tausig-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's all done within MonoDevelop. Just click Tools->Add-in
Manager->Install Add-In

>
> Thanks. But where can I get that addin?? I've
> http://www.google.com.mx/search?hl=es&q=%22GTK%23+2.10+compilation+support%22&btnG=Buscar+con+Google&meta=
> google that   and I don't get good information =S.
>
> And When I have the Add in, How I would Install it?
>
> Thanks
>
> --
> View this message in context:
> http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18454798.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@...
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: portabilty with Windows and Linux

by Juan José :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

Thanks! that really works, but now I have a new problem (I'm sorry for waste your time =( )

The problem is that if I create a new project, and select any version of gtk-sharp... when I put the fixer container and try to run the app. I get this error:

The imported type `Gtk.Window' is defined multiple times(CS0433)

If i make double click the message, show me this line:

public partial class MainWindow: Gtk.Window

What should be the problem???

=S

Thanks

Re: portabilty with Windows and Linux

by countcb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Juan José wrote:
The imported type `Gtk.Window' is defined multiple times(CS0433)

...
What should be the problem???

It seems that you are using TWO (or more versions) versions of gtk-sharp at the same time. Thats why Gtk.Window is defined more than once.
Check your assemblie references to see if you have checked two different Versions of Gtk.

I have no MonoDevelop right now. That's why I can't make more detailed advices. But I hope you are able to find it nontheless.

Re: portabilty with Windows and Linux

by Luciano _ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi:
I was having the same issue some days ago, and Michael Hutchinson explain me:

When you change the GtkSharp target, from 2.12 to 2.10 or even 2.8.3, it changes the Referenced library's to this version, but, if you have other Library, wich depends on 2.12, it will fail with that error.
This issue happen if you use Gecko-Sharp.dll (to name one) compile against Gtk-Sharp 2.12, and your trying to target 2.10.
If this is the problem (with Gecko-Sharp or other dll compiled agains Gtk-Sharp 2.12) and you need to compile with that library, you only need to find a pre-compiled dll, with the Correct version, (In my example, Gecko-Sharp.dll compiled against 2.10, was found in Mono SLED package) and reference THIS dll.

You can see the answer that i get here:
http://lists.ximian.com/pipermail/monodevelop-list/2008-July/007909.html
 
Bye
Luciano







> Date: Tue, 15 Jul 2008 23:14:59 -0700

> From: blue_phantom20045@...
> To: gtk-sharp-list@...
> Subject: Re: [Gtk-sharp-list] portabilty with Windows and Linux
>
>
> Hello!
>
> Thanks! that really works, but now I have a new problem (I'm sorry for waste
> your time =( )
>
> The problem is that if I create a new project, and select any version of
> gtk-sharp... when I put the fixer container and try to run the app. I get
> this error:
>
> The imported type `Gtk.Window' is defined multiple times(CS0433)
>
> If i make double click the message, show me this line:
>
> public partial class MainWindow: Gtk.Window
>
> What should be the problem???
>
> =S
>
> Thanks
> --
> View this message in context: http://www.nabble.com/portabilty-with-Windows-and-Linux-tp18436724p18480930.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@...
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



Use video conversation to talk face-to-face with Windows Live Messenger. Get started.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: portabilty with Windows and Linux

by Juan José :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

Well, my solution was a little dirty, but works xD.

I had the packages : gtk-sharp2 and libgtk2.0-cil . I'd remmember that when I installed it, the package gtk-sharp wasn't installed, so I tried to remove it, but now I get more errors ... Then I uninstall the monodevelop and gtk-sharp and libgtk2.0-cil , and then I Install de monodevelop and it takes libgtk2.0-cil as a dependence, and now all is working fine =)

Thanks every one