Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
freewrl
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Wed Dec 03, 2003 2:48 pm    Post subject: freewrl Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Tue Mar 09, 2004 10:37 am    Post subject: Reply with quote

There are no more freewrl users?
ok. Now the ebuild works and you can download it from my homepage:
http://denics.free.fr
or
https://bugs.gentoo.org/attachment.cgi?id=27075&action=view
cheers,
Denis
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Fri Apr 23, 2004 11:34 am    Post subject: Reply with quote

New FreeWRL ebuild, FreeWRL-1.06:

http://denics.free.fr
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Sat Apr 24, 2004 1:41 pm    Post subject: Reply with quote

I see that the link doesn't work, now is ok, sorry
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Mon Sep 27, 2004 11:19 am    Post subject: Reply with quote

new version
freewrl-1.08_pre2
at http://denics.free.fr

I need test and any help is welcome!

ciao
Back to top
View user's profile Send private message
discowombat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 106
Location: The Cornfields

PostPosted: Thu Sep 30, 2004 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Fri Oct 01, 2004 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
discowombat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 106
Location: The Cornfields

PostPosted: Fri Oct 01, 2004 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Fri Feb 11, 2005 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
TheJackal
n00b
n00b


Joined: 29 Jul 2003
Posts: 73
Location: In front of the keyboard :)

PostPosted: Fri Feb 11, 2005 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Sat Feb 12, 2005 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Mon Feb 14, 2005 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Mon Feb 14, 2005 3:50 pm    Post subject: Reply with quote

Solved!
you can download from http://denics.free.fr/various/ebuilds/FreeWRL-1.10-r1.ebuild.tar.bz2 or http://denics.free.fr/various/ebuilds/FreeWRL-dev-1.11_pre1.ebuild.tar.bz2 the ebuilds for FreeWRL 1.10 and FreeWRL 1.11_pre1.
Ciao,

Denis

PS the problem was a Makefile file with a link to a wrong directory. Now everything seems working.
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Mon Feb 14, 2005 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Mon Feb 14, 2005 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
discowombat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 106
Location: The Cornfields

PostPosted: Tue Feb 15, 2005 4:38 am    Post subject: Reply with quote

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
Code:

 !media-glx/freewrl

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Tue Feb 15, 2005 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Tue Feb 15, 2005 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu Feb 17, 2005 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Sat Feb 19, 2005 12:17 am    Post subject: Reply with quote

Hi all.
the good location is:

http://denics.free.fr/various/ebuilds/

there is a stable and a development version.

Cheers,
Denis
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Mon Feb 21, 2005 10:34 am    Post subject: Reply with quote

Works - thank you!
_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Sun Apr 03, 2005 9:19 pm    Post subject: Reply with quote

New Devel release:
1.11_pre4
always available at http://denics.free.fr/various/ebuilds/
enjoy,
Dnix
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Apr 03, 2005 9:46 pm    Post subject: Reply with quote

Moved from Portage & Programming.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Tue Apr 19, 2005 9:06 am    Post subject: Reply with quote

A new release is done! test it from
https://bugs.gentoo.org/show_bug.cgi?id=88135
or
http://denics.free.fr/various/ebuilds/

ciao ciao,
Denis
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Thu Apr 28, 2005 8:39 am    Post subject: Reply with quote

Other great release!

always available at:
https://bugs.gentoo.org/show_bug.cgi?id=88135
or
http://denics.free.fr/various/ebuilds/

FreeWRL-1.12

ciao,
Denix
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum