Hi, all. I'm uploading my ebuilds for G3D Viewer. This first one is the main library, libg3d. I've been chatting via e-mail with the upstream author, and had some bugs fixed by them as a result - he's very into this being in Gentoo :). AFAIK, this is the only program available in F/OSS that allows viewing of many 3D object file formats (like 3dmf). I've tested the ebuilds, and they install and run well - however, there are a fre GTK warnings on my box, which I've sent to upstream for removal. Probably gone in the 3.X release. Let me know if these ebuilds blow up your box, or are poor style. Thanks.
Created attachment 74895 [details] libg3d-0.0.2.ebuild
g3dviewer runs fine but I get the following error on the terminal: ----------------------- LeoCAD: failed to read '/usr/local/share/leocad/pieces.idx' ** (g3dviewer:18364): WARNING **: LeoCAD: failed to load library (g3dviewer:18364): Gtk-CRITICAL **: gtk_pixmap_new: assertion `val != NULL' failed (g3dviewer:18364): Gtk-CRITICAL **: gtk_box_pack_start: assertion `GTK_IS_WIDGET (child)' failed ----------------------- Don't know about the GTK stuff but the leocad issue is a libg3d bug. In 'plugins/import/imp_leocad.c' line 28-30: -------------------------------- libdir = g_getenv("LEOCAD_LIB"); if(libdir == NULL) libdir = "/usr/local/share/leocad"; ------------------------------- But LEOCAD_LIB is not defined anywhere in the libg3d package. There's still the chance that LEOCAD_LIB is defined in a system LeoCAD header (i.e. /usr/include/leocad.h), but imp_leocad.c makes the following includes: #include <g3d/types.h> #include <g3d/context.h> #include <g3d/read.h> #include <g3d/vector.h> #include <g3d/matrix.h> #include "imp_leocad_library.h" None of which make further leocad includes. I'm too lazy to download LeoCAD and see if LEOCAD_LIB is defined in it's headers so I'll stop now :)
Oops. Ignore my stupidity. It's looking for an environment variable not a #define.
Created attachment 91394 [details] libg3d-0.0.3.ebuild
This is an ancient 3D model viewer. Features were added until 2006 with some bug fixes after until 2009 but was never tagged out of Alpha status. 3D model packages have come along way since then (most notably blender IMO) making this package pretty much obsolete.