View previous topic :: View next topic |
Author |
Message |
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Wed Dec 03, 2003 2:48 pm Post subject: freewrl |
|
|
Hi all,
I'm doing a ebuild for freewrl.
Now it work for the normal installation but I'm unable to install the plugin in the right gentoo directory.
Code: |
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="VRML2 and X3D compliant browser"
HOMEPAGE="http://freewrl.sourceforge.net/"
SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/freewrl/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="opengl doc mozilla"
DEPEND="virtual/x11
virtual/jdk
>=dev-java/saxon-7.5
>=dev-lang/perl-5.004
>=dev-perl/Digest-MD5-2.09
>=dev-perl/HTML-Parser-2.25
>=dev-perl/MIME-Base64-2.11
>=dev-perl/URI-1.04
>=dev-perl/libnet-1.0607
>=dev-perl/libwww-perl-5.47
opengl? ( virtual/opengl virtual/glut )
mozilla? ( net-www/mozilla )"
S=${WORKDIR}/${P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}+gentoo_pd.diff
}
src_compile() {
perl Makefile.PL
cd ${S}/Plugin
make
cd ${S}/java
make
}
src_install() {
make DESTDIR=${D} install
# Install mozilla plugin
#cp -a ${S}/Plugin/netscape/_lib/npfreewrl.so ${D}/usr/lib/nsbrowser/plugins/
#cp -a ${S}/java/classes/vrml.jar ${D}/usr/lib/nsbrowser/plugins/
}
|
and here the diff patch
Code: |
--- vrml.conf_save 2003-12-02 16:26:15.000000000 +0000
+++ vrml.conf 2003-12-02 16:39:15.000000000 +0000
@@ -41,7 +41,7 @@
# location of the gcc bounds checking library libcheck.a
- LIBCHECK_INST => '/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2',
+ LIBCHECK_INST => '/usr/lib/gcc-lib/i686-pc-linux-gnu/',
############################################################################
# Main defines for OpenGL, libjpeg, libpng, and freetype
@@ -65,7 +65,7 @@
############################################################################
# Saxon location - required for x3d running.
- SAXON_LOC => '/usr/local/src/saxon/saxon.jar',
+ SAXON_LOC => '/usr/share/saxon/lib/saxon7.jar',
############################################################################
# Netscape/Mozilla installation
@@ -78,20 +78,20 @@
# NETSCAPE_PLUGINS is used to determine where the plugin will
# be installed if this is your browser.
- NETSCAPE_INST => '/opt/netscape/plugins',
- NETSCAPE_CLASSES => '/opt/netscape/plugins',
- NETSCAPE_PLUGINS => '/opt/netscape/plugins',
+ NETSCAPE_INST => '/usr/lib/nsbrowser/plugins',
+ NETSCAPE_CLASSES => '/usr/lib/nsbrowser/plugins',
+ NETSCAPE_PLUGINS => '/usr/lib/nsbrowser/plugins',
############################################################################
# Java installation (Sun's Java 2 SDK Standard Edition 1.4.0)
# If Java is not installed, leave JAVA_INST empty e.g.
# JAVA_INST => ''
- JAVA_INST => '/usr/java/j2sdk1.4.0',
- JAVA_INC => '-I/usr/java/j2sdk1.4.0/include -I/usr/java/j2sdk1.4.0/include/linux',
+ JAVA_INST => '/opt/java/',
+ JAVA_INC => '-I/opt/java/include -I/opt/java/include/linux',
############################################################################
# LDFLAGS. Set linker flags here.
- LDFLAGS => '-shared -L/usr/local/lib',
+ LDFLAGS => '-shared -L/usr/lib',
);
--- Makefile.PL_save 2003-12-02 18:00:09.171818688 +0000
+++ Makefile.PL 2003-12-02 18:07:00.688258680 +0000
@@ -259,33 +259,6 @@
qq{\t\$(PERL) VRMLC.pm\n}
));
- if ($VRML::Config::vrml_config{NETSCAPE_INST}) {
- push(@postamble, join(
- "\n",
- qq{\# --- Mozilla/Netscape Plugin:\n},
- qq{install ::},
- qq{\t\@cd Plugin && \$(MAKE) install\n}
- ));
- }
-
- if ($VRML::Config::vrml_config{JAVA_INST} && $VRML::Config::vrml_config{NETSCAPE_CLASSES}) {
- push(@postamble, join(
- "\n",
- qq{\# --- Java Archive\n},
- qq{install ::},
- qq{\t\@cd java && \$(MAKE) install\n}
- ));
- }
-
- push(@postamble, join(
- "\n",
- qq{\# copy fonts, x3d, libjs.so over\n},
- qq{install ::},
- qq{\tcp -r fonts $vrmlinstdir\n},
- qq{\tcp -r x3d $vrmlinstdir\n},
- qq{\tcp JS/$jsobjdir/libjs.so $VRML::Config::vrml_config{LIBJS_INST}\n}
- ));
-
push(@postamble, join(
"\n",
qq{clean ::},
|
Help
Dnix |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Sat Apr 24, 2004 1:41 pm Post subject: |
|
|
I see that the link doesn't work, now is ok, sorry |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Mon Sep 27, 2004 11:19 am Post subject: |
|
|
new version
freewrl-1.08_pre2
at http://denics.free.fr
I need test and any help is welcome!
ciao |
|
Back to top |
|
|
discowombat Tux's lil' helper
Joined: 19 Sep 2003 Posts: 106 Location: The Cornfields
|
Posted: Thu Sep 30, 2004 11:43 pm Post subject: |
|
|
Code: |
make[1]: Entering directory `/var/tmp/portage/freewrl-1.08_pre2/work/FreeWRL-1.08-pre2/CFuncs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/freewrl-1.08_pre2/work/FreeWRL-1.08-pre2/CFuncs'
make[1]: Entering directory `/var/tmp/portage/freewrl-1.08_pre2/work/FreeWRL-1.08-pre2/JS'
gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/usr/lib/perl5/5.8.4/i686-linux/CORE" JS.c
Running Mkbootstrap for VRML::JS ()
chmod 644 JS.bs
rm -f blib/arch/auto/VRML/JS/JS.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib JS.o -shared -L/usr/lib -LJS/js/src/Linux_All_OPT.OBJ -Lblib/arch/auto/VRML/VRMLFunc/ -o blib/arch/auto/VRML/JS/JS.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot openoutput file blib/arch/auto/VRML/JS/JS.so: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/VRML/JS/JS.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/freewrl-1.08_pre2/work/FreeWRL-1.08-pre2/JS'
make: *** [subdirs] Error 2
!!! ERROR: media-gfx/freewrl-1.08_pre2 failed.
!!! Function src_install, Line 84, Exitcode 2
!!! make install failed
|
I got the same error message with 1.06 from portage too. Any ideas? Let me know if more info would be useful. _________________ One by one the penguins steal my sanity |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Fri Oct 01, 2004 10:24 am Post subject: |
|
|
what are you java and saxon dir?
must be (I hope to solve this problem) something like:
java: /opt/java a link to your java directory
saxon: /usr/share/saxon/
hope this works,
cheers,
Denis |
|
Back to top |
|
|
discowombat Tux's lil' helper
Joined: 19 Sep 2003 Posts: 106 Location: The Cornfields
|
Posted: Fri Oct 01, 2004 3:10 pm Post subject: |
|
|
I added
Code: |
0 lrwxrwxrwx 1 root root 22 Oct 1 10:57 /opt/java -> /opt/sun-jdk-1.4.2.05/
0 lrwxrwxrwx 1 root root 21 Oct 1 10:57 /usr/share/saxon -> /usr/share/saxon-bin/
|
but it died in the same place. I have also tried emerging it with USE="-mozilla" and it made no difference.
maybe this will help towards fixing the /opt/java depencency... if java is installed properly the environment variable $JDK_HOME will point to where java is installed. _________________ One by one the penguins steal my sanity |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Fri Feb 11, 2005 9:56 am Post subject: |
|
|
Doesn't work for, either.
Code: | >>> Test phase [not enabled]: media-gfx/freewrl-1.06
>>> Install freewrl-1.06 into /var/tmp/portage/freewrl-1.06/image/ category media-gfx
make[1]: Entering directory `/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/CFuncs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/CFuncs'
make[1]: Entering directory `/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/JS'
gcc -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=pentium4 -O2 -pipe -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/usr/lib/perl5/5.8.5/i686-linux/CORE" JS.c
Running Mkbootstrap for VRML::JS ()
chmod 644 JS.bs
rm -f blib/arch/auto/VRML/JS/JS.so
LD_RUN_PATH="" gcc -shared -L/usr/local/lib JS.o -shared -L/usr/lib -LJS/js/src/Linux_All_OPT.OBJ -Lblib/arch/auto/VRML/VRMLFunc/ -o blib/arch/auto/VRML/JS/JS.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file blib/arch/auto/VRML/JS/JS.so: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/VRML/JS/JS.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/JS'
make: *** [subdirs] Error 2
|
_________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
TheJackal n00b
Joined: 29 Jul 2003 Posts: 73 Location: In front of the keyboard :)
|
Posted: Fri Feb 11, 2005 11:00 pm Post subject: |
|
|
Exactly the same problem for me! I've even tried the 1.10 ebuild from the offical website and I still get the same problem... _________________ "Expect nothing. That way you will be ready for anything - Virginia Viadura"
Black Mesa Research Facility |
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Sat Feb 12, 2005 7:53 am Post subject: |
|
|
The strange things is that blib/arch/auto/VRML/JS/JS.so seems to be there... _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Mon Feb 14, 2005 11:00 am Post subject: |
|
|
Hi all,
I'm working with J. Stewart, the FreeWRL developer, to solve this problem...
Everything happened because we have not the right permission to delete the file, and the makefile want to destroy it... we don't know why...
I hope in some days to solve this problem, please be patient and you can also try the new 1.11_pre1
Ciao,
Denis |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Feb 14, 2005 4:45 pm Post subject: |
|
|
Thanks, I'll check it out tomorrow. Is it going into the regular portage tree? _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Mon Feb 14, 2005 5:50 pm Post subject: |
|
|
Yes, but I don't know when. I got a reply from the mantainer but still the old version on portage. I've installed both stable and dev on 8 differents gentoo machines without errors.
Ciao,
Denis |
|
Back to top |
|
|
discowombat Tux's lil' helper
Joined: 19 Sep 2003 Posts: 106 Location: The Cornfields
|
Posted: Tue Feb 15, 2005 4:38 am Post subject: |
|
|
ok, i have a couple potential fixes here from the dev ebuild i downloaded from your link...
I got a
Code: |
gcc FreeWRL_Message.o -Wall -o FreeWRL_Message -L/usr/lib -L/usr/X11R6/lib -lGL -lGLU -lXext -lX11 -lfreetype -lz -ljpeg -lpng -L../JS/js/src/Linux_All_OPT.OBJ -LJS/js/src/Linux_All_OPT.OBJ -Lblib/arch/auto/VRML/VRMLFunc/ -ljs -lXaw3d
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXaw3d
collect2: ld returned 1 exit status
make[1]: *** [main] Error 1
make[1]: Leaving directory `/var/tmp/portage/freewrl-dev-1.11_pre1/work/FreeWRL-1.11-pre1/FreeWRL_Message'
make: *** [all] Error 2
!!! ERROR: media-gfx/freewrl-dev-1.11_pre1 failed.
!!! Function src_compile, Line 113, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
|
when i tried to compile. Seeing the -lXaw3d error, though, i was able to resolve this by emerging Xaw3d. So it looks like you need to add x11-libs/Xaw3d to your DEPEND in the ebuild.
Also i noticed a simple little typo... the last line of your DEPEND reads
and it should be media-gfx not media-glx.
not sure if that would cause an error, just something i noticed.
Finally, this is more of a feature request than a bug, but could you add the option to use another browser such as firefox? In order to emerge freewrl w/o mozilla I took out the depend line for it and changed the appropriate line to read
Code: |
echo "BROWSER => '/usr/bin/firefox'," >> vrml.conf
|
The plugin seemed to work just fine for me in firefox once it was emerged.
If you decided to add this functionality, you could just add another use flag for firefox and add an else if for it in the section containing the line i just mentioned.
Glad to see it finally compiles nicely! I haven't played with freewrl in a while and it's good to see it improve. _________________ One by one the penguins steal my sanity |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Tue Feb 15, 2005 10:26 am Post subject: |
|
|
Ops, sorry for the mistake
I've fixed the problem now and I'm working to support others browser. But I think I need to put an einfo asking to define the variable BROWSER in /etc/profile
enjoy,
Denis |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
Posted: Tue Feb 15, 2005 2:56 pm Post subject: |
|
|
Ok, now if you have the variable BROWSER in your system freewrl use yuor browser cool no?
no more depending from mozilla, now you can choose a minimal install (without examples and plugins) or a normal install!
ciao ciao, and thanks for your help!
denix |
|
Back to top |
|
|
flickerfly l33t
Joined: 08 Nov 2002 Posts: 677 Location: Lanham, MD
|
Posted: Thu Feb 17, 2005 4:57 pm Post subject: |
|
|
I'd like the update, but it seems to not be available. Location change?
Code: |
# wget http://denics.free.fr/various/ebuilds/FreeWRL-1.10-r1.ebuild.tar.bz2
--11:57:16-- http://denics.free.fr/various/ebuilds/FreeWRL-1.10-r1.ebuild.tar.bz2
=> `FreeWRL-1.10-r1.ebuild.tar.bz2'
Resolving denics.free.fr... 212.27.40.202
Connecting to denics.free.fr[212.27.40.202]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
11:57:16 ERROR 404: Not Found. |
_________________ An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
frilled Retired Dev
Joined: 15 Mar 2004 Posts: 386 Location: Atlantis, inner city ring
|
Posted: Mon Feb 21, 2005 10:34 am Post subject: |
|
|
Works - thank you! _________________ "Failure is not an option!"
"Sir, we are out of further options." |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Apr 03, 2005 9:46 pm Post subject: |
|
|
Moved from Portage & Programming. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
dnix Apprentice
Joined: 17 Jun 2003 Posts: 271 Location: Italy
|
|
Back to top |
|
|
|