View previous topic :: View next topic |
Author |
Message |
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Mon Feb 20, 2006 3:26 pm Post subject: 3D modeling and texturing (was new 3d scultping app) |
|
|
I found notice of a new 3d sculpting (like zbrush for windows systems, or blender +mesh sculpt script)
application, since it needs gtkglext-1.2 and seems to need also updated gtkglextmm, I had some
issues trying to make an ebuild.I'll retry after my vacation to make ebuilds for gtglext (updating also opengl-update line
to eselect tool), gtkglextmm and this app, SharpConstruct,
I'll may need some help since I've never done ebuilds for gnome. _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Last edited by Matteo Azzali on Sun Mar 05, 2006 12:00 pm; edited 1 time in total |
|
Back to top |
|
|
felicehome Apprentice
Joined: 30 Sep 2004 Posts: 217
|
Posted: Tue Feb 21, 2006 12:27 pm Post subject: |
|
|
Hi there, I would be interested in this too.
Unfortunately my knowledge about building ebuilds is very limited.
Keep this thread updated.
Cheers Felice |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sat Mar 04, 2006 2:43 pm Post subject: |
|
|
Things are goin slow and I didn't found anyone to help me with those gnome/gtk deps,
so I decided to start from smaller tasks, I'm now trying to ebuild
Texturize and Resynthetyzer,
two really useful plungins for texture creation in gimp.
For Texturizer, I have an ebuild ready, for Resynthesizer (that's the most interesting) I have some issue
cause it has no configure file and wants to install to /var/tmp/portage/resynthesizer.... _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sat Mar 04, 2006 8:33 pm Post subject: |
|
|
/usr/local/portage/media-gfx/gimp-texturize/gimp-texturize-2.0.ebuild :
Code: |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-texturize/gimp-texturize-2.0.ebuild,v 1.2 2006/01/12 23:40:28 compnerd Exp $
inherit flag-o-matic libtool eutils fdo-mime alternatives
DESCRIPTION="Texturizer plugin for GNU Image Manipulation Program"
HOMEPAGE="http://www.gimp.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
S=${WORKDIR}/${PN}
LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=media-gfx/gimp"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
}
src_compile() {
econf || die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
}
|
_________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sun Mar 05, 2006 12:07 pm Post subject: |
|
|
/usr/local/portage/media-gfx/resynthesizer/resynthesizer-0.14.ebuild :
Code: |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/resynthesizer/resynthesizer-0.14.ebuild,v 1.2 2006/01/12 23:40:28 compnerd Exp $
inherit flag-o-matic libtool eutils fdo-mime alternatives
DESCRIPTION="Resynthesizer plugin for GNU Image Manipulation Program"
HOMEPAGE="http://www.gimp.org/"
SRC_URI="http://www.logarithmic.net/pfh-files/${PN}/${P}.tar.gz"
S=${WORKDIR}/${P}
LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=media-gfx/gimp"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
sed -i -e "s/gimptool/gimptool-2.0/g" Makefile
sed -i -e "s/install-bin/install-admin-bin/g" Makefile
sed -i -e "s/install-script/install-admin-script/g" Makefile
}
src_compile() {
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
}
|
_________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sun Mar 05, 2006 1:14 pm Post subject: |
|
|
Ok, now we have the ebuild (and dependancies) for SharpConstruct, just a note
all the opengl settings/unsettings in gtkglext ebuild is trash
(you can notice an error at emerge start, if you fix the ebuild of gtkglext givin eselect opengl set xorg-x11 at start,
then gtkglextmm will not emerge, you are warned). Other than that, gtkglextmm need modular X change.
/usr/local/portage/x11-libs/gtkglext/gtkglext-1.2.0.ebuild: already in portage
/usr/local/portage/dev-cpp/gtkglextmm/gtkglextmm-1.2.0.ebuild :
Better version at https://bugs.gentoo.org/show_bug.cgi?id=125077, many thanks to r_meyer. _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Last edited by Matteo Azzali on Wed Mar 29, 2006 10:10 pm; edited 10 times in total |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Sun Mar 05, 2006 1:28 pm Post subject: |
|
|
/usr/local/portage/media-gfx/sharpconstruct/sharpconstruct-0.11.ebuild
Code: |
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/sharpconstruct/sharpconstruct-0.11.ebuild,v 1.3 2005/12/24 23:37:10 mattepiu Exp $
inherit gnome2 eutils
DESCRIPTION="3D Sculpting Application"
HOMEPAGE="http://sharp3d.sourceforge.net/mediawiki/index.php/Main_Page"
SRC_URI="mirror://sourceforge/sharp3d/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
>=dev-cpp/gtkglextmm-1.2.0
>=x11-libs/gtk+-2.8.0
>=dev-cpp/gtkmm-2.8.0
>=dev-cpp/libglademm-2.6.0"
src_unpack() {
unpack ${A}
cd ${S}
}
src_compile() {
./configure --prefix=/usr/ || die "failed to configure"
make || die "failed to compile"
}
src_install() {
make DESTDIR=${D} install || die "failed to install"
insinto /usr/share/icons/hicolor/64x64/apps
newins ${WORKDIR}/${P}/share/sharpconstruct/interface/icon.png sharpconstruct.png
}
|
possible dependancy on libglademm (linking_lib found , true dep, added).
Emerge, then from console do:
I'm goin to try now, bye, enjoy! _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Mon Mar 06, 2006 1:49 pm Post subject: |
|
|
Nobody tried??????
...or... better.... :-////
please at least one reporting if it's working or not.... _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
richard.xsi n00b
Joined: 22 Apr 2005 Posts: 28
|
Posted: Mon Mar 06, 2006 3:32 pm Post subject: |
|
|
Matteo Azzali wrote: | Nobody tried??????
...or... better.... :-////
please at least one reporting if it's working or not.... |
try it now.
hope it won't take too much time to compile because my laptop is hot now |
|
Back to top |
|
|
richard.xsi n00b
Joined: 22 Apr 2005 Posts: 28
|
Posted: Mon Mar 06, 2006 4:21 pm Post subject: |
|
|
works well here and i need to dig the documents to learn how to use it.
thanks for your ebuilds |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Mon Mar 06, 2006 7:06 pm Post subject: |
|
|
Thanks for the feedback. I'll restart to crawl the web for other interesting things now. _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Wed Mar 29, 2006 10:11 pm Post subject: |
|
|
Updated (and bumped) since gtkglext is now in portage and gtkglextmm has better ebuild now (thanks to r_meyer). _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
bakaohki Tux's lil' helper
Joined: 14 Jul 2005 Posts: 129 Location: Hungary
|
Posted: Thu Mar 30, 2006 8:12 pm Post subject: |
|
|
I tried Sharpconstruct a while ago, but let's face the facts: it is no Zbrush. I can box-modell a head with Wings and that will be a zillion times nicer, and as for texture import/export, and other features it has a long long way to go. Til then I'll stick with Blender and Wings but it is an app to keep an eye on. |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Fri Mar 31, 2006 9:13 pm Post subject: |
|
|
Yes, it's no Zbrush for modeling, as there aren't zspheres and other tools to models.
But is much nearer to Zbrush for detailing a model, you just create your model in blender/wings/whatever you want,
then export as .obj, load in SharpConstruct and start adding fine details.
Adaptive detailing is also in the way (in cvs right now), and there's nothing better (in OSS) for easy and fast creation of
high-res detailed model for normal maps generation (the process to create normal maps can be done in
blender with BRayBaker).
IMHO, better to concentrate on the things that are missing in the other modelers for now (mesh detailing),
other things as mesh construction can come later... _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
radagast Apprentice
Joined: 20 Mar 2004 Posts: 217 Location: sydney, .au
|
Posted: Wed May 10, 2006 12:46 pm Post subject: |
|
|
hmm.
after two years i still don't really understand portage.
i've just tried your resynthesizer ebuild and i got
"No package manifest found" |
|
Back to top |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Wed May 10, 2006 7:18 pm Post subject: |
|
|
Code: | ebuild /usr/local/portage/media-gfx/resynthesizer/resynthesizer-0.14.ebuild digest |
|
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Wed May 10, 2006 7:49 pm Post subject: |
|
|
radagast wrote: | hmm.
after two years i still don't really understand portage.
i've just tried your resynthesizer ebuild and i got
"No package manifest found" |
You should search some "portage overlay" howto: portage is easy but you need to know some things.... _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
radagast Apprentice
Joined: 20 Mar 2004 Posts: 217 Location: sydney, .au
|
Posted: Wed May 10, 2006 10:03 pm Post subject: |
|
|
01mf02 wrote: | Code: | ebuild /usr/local/portage/media-gfx/resynthesizer/resynthesizer-0.14.ebuild digest |
|
that was it, thanks.
the ebuild seems good now, but i think the package is broken. maybe it's an AMD64 thing. i'll see if i can get anywhere with the author's source...
Code: | /usr/include/pango-1.0/pango/pangocairo.h:62: error: variable or field `pango_cairo_update_context' declared void
/usr/include/pango-1.0/pango/pangocairo.h:62: error: `cairo_t' was not declared in this scope
/usr/include/pango-1.0/pango/pangocairo.h:62: error: `cr' was not declared in this scope
/usr/include/pango-1.0/pango/pangocairo.h:63: error: expected primary-expression before '*' token
/usr/include/pango-1.0/pango/pangocairo.h:63: error: `context' was not declared in this scope
/usr/include/pango-1.0/pango/pangocairo.h:63: error: initializer expression list treated as compound expression
/usr/include/pango-1.0/pango/pangocairo.h:66: error: expected `,' or `...' before '*' token
/usr/include/pango-1.0/pango/pangocairo.h:66: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
/usr/include/pango-1.0/pango/pangocairo.h:67: error: expected init-declarator before '*' token
/usr/include/pango-1.0/pango/pangocairo.h:67: error: expected `,' or `;' before '*' token
< that error repeated eight more times >
In file included from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from resynth.cc:28:
/usr/include/gtk-2.0/gdk/gdkcairo.h:29: error: expected constructor, destructor, or type conversion before '*' token
/usr/include/gtk-2.0/gdk/gdkcairo.h:29: error: expected `,' or `;' before '*' token
/usr/include/gtk-2.0/gdk/gdkcairo.h:31: error: variable or field `gdk_cairo_set_source_color' declared void
/usr/include/gtk-2.0/gdk/gdkcairo.h:31: error: `cairo_t' was not declared in this scope
/usr/include/gtk-2.0/gdk/gdkcairo.h:31: error: `cr' was not declared in this scope/usr/include/gtk-2.0/gdk/gdkcairo.h:32: error: expected primary-expression before '*' token
< a very similar error repeated three more times >
/usr/include/gtk-2.0/gdk/gdkcairo.h:41: error: `region' was not declared in this scope
/usr/include/gtk-2.0/gdk/gdkcairo.h:41: error: initializer expression list treated as compound expression
In file included from /usr/include/gtk-2.0/gdk/gdk.h:35,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from resynth.cc:28:
/usr/include/gtk-2.0/gdk/gdkdrawable.h:196: error: ISO C++ forbids declaration of `cairo_surface_t' with no type
/usr/include/gtk-2.0/gdk/gdkdrawable.h:196: error: expected `;' before '*' token
In file included from /usr/include/gtk-2.0/gdk/gdk.h:50,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from resynth.cc:28:
/usr/include/gtk-2.0/gdk/gdkscreen.h:51: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
/usr/include/gtk-2.0/gdk/gdkscreen.h:51: error: expected `;' before '*' token
/usr/include/gtk-2.0/gdk/gdkscreen.h:106: error: expected `,' or `...' before '*' token
/usr/include/gtk-2.0/gdk/gdkscreen.h:106: error: ISO C++ forbids declaration of `cairo_font_options_t' with no type
/usr/include/gtk-2.0/gdk/gdkscreen.h:107: error: expected init-declarator before '*' token
/usr/include/gtk-2.0/gdk/gdkscreen.h:107: error: expected `,' or `;' before '*' token
resynth.cc:260: warning: 'void click_func(GtkWidget*, void*)' defined but not usedresynth.cc:265: warning: 'gint delete_func(GtkWidget*, GdkEvent*, void*)' defined but not used
make: *** [resynth] Error 1
!!! ERROR: media-gfx/resynthesizer-0.14 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
|
<EDIT>
It didn't compile from the tar package either (some gtk - cairo problem?) i had to do this
Code: |
>ln -s /usr/include/cairo/cairo.h /usr/include/cairo.h
>ln -s /usr/include/cairo/cairo-features.h /usr/include/cairo-features.h
|
it still wouldn't compile - i got a lot of "resynth.c:1169: error: structure has no member named `id'"
but your ebuild worked, and resynthesize has appeared in my Script-Fu, and it mostly works.
so I thankyou very much. |
|
Back to top |
|
|
Matteo Azzali Retired Dev
Joined: 23 Sep 2004 Posts: 1133
|
Posted: Thu May 11, 2006 8:13 am Post subject: |
|
|
It seesms that your system has issues with cairo include files, you might do a
Code: | equery b /usr/include/pango-1.0/pango/pangocairo.h |
to check exactly what package is givin issue.
Should be pango or cairo.Are you using XGL or some other portage overlay that may change cairo?
Here it works fine but it's x86,maybe I should filter out AMD64...... Someone else tested with an AMD64 arch? _________________ Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/ |
|
Back to top |
|
|
radagast Apprentice
Joined: 20 Mar 2004 Posts: 217 Location: sydney, .au
|
Posted: Thu May 11, 2006 9:05 am Post subject: |
|
|
Matteo Azzali wrote: |
Here it works fine but it's x86,maybe I should filter out AMD64...... Someone else tested with an AMD64 arch? |
yeah...
i equeried all the filed causing errors, the packages are pango-1.10.2 and gtk+-2.8.12
i already suspected gtk+, so i had just upgraded it from 2.8.8, (as well as emul-linux-x86-gtklibs just in case)
neither made any difference.
the only similar problem i've found in these forums is here: https://forums.gentoo.org/viewtopic-t-410066-highlight-cairo+gdkcolor.html
and it is an AMD64 system.
i reckon you could make it ~amd64. it compiles OK, three out of four functions work but 'smart enlarge' has crashed the Gimp two times out of three. |
|
Back to top |
|
|
Genjix Apprentice
Joined: 23 Jun 2005 Posts: 163
|
Posted: Fri Jun 30, 2006 7:21 pm Post subject: |
|
|
thanks! found this while trying to get gtkglextmm to work to compile this very app. |
|
Back to top |
|
|
System_Failure n00b
Joined: 09 Dec 2002 Posts: 63 Location: /home/System_Failure/
|
Posted: Tue Feb 27, 2007 10:34 pm Post subject: |
|
|
Genjix wrote: | thanks! found this while trying to get gtkglextmm to work to compile this very app. |
same, ty ty _________________ "I like beaches." |
|
Back to top |
|
|
|