Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Building gtk-sharp2 on Debian Testing

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
josh321
Posts: 59
Joined: 2012-11-23 19:55

Building gtk-sharp2 on Debian Testing

#1 Post by josh321 »

I am trying to build architecture specific binaries of gtk-sharp2. So far I have been unable to get gtk-sharp2 to build even without specifying a specific architecture. I got the source with apt-get source gtk-sharp2 and attempted ./configure, make, but it fails to build with the error message:

Code: Select all

No rule to make target 'thread.c', needed by 'thread.lo'.
I've also tried downloading the source directly from the mono project http://www.mono-project.com/docs/gui/gtksharp/, but when building it fails with

Code: Select all

#error "Only <glib.h> can be included directly."
This site http://www.sourcemage.org/issues/407 provides a patch to fix the error, but when I applied it I got the same error.

I think the Debian version applied the patch correctly, but for some reason I still get that other error message.

Can anyone try this build and see if they can reproduce the results/see where I went wrong? Thanks.

EDIT: These message outputted by configure may point to the problem:
"checking if gcc supports -fno-rtti -fno-exceptions... no"
"./configure: line 12920: enable_msi: command not found"

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Building gtk-sharp2 on Debian Testing

#2 Post by stevepusser »

You got the first step right, but I suggest you follow the Debian method of rebuilding a package:

https://www.debian-administration.org/a ... n_packages
MX Linux packager and developer

josh321
Posts: 59
Joined: 2012-11-23 19:55

Re: Building gtk-sharp2 on Debian Testing

#3 Post by josh321 »

You're awesome, I was driving myself crazy trying to build this thing. I did originally try the method listed on SimpleBackPortCreation, but I guess I must have missed a dependency listed by dpkg-checkbuilddeps. apt-get build-deps is much easier.

One more question though. Is there a way I can get debuild to build for i386.
EDIT:Nevermind I found out. For anyone searching around debuild -a i386 builds for i386.

Post Reply