Board index FlightGear Support Compiling

Can't fetch openscenegraph (Scripted compilation linux)  Topic is solved

Building FlightGear from source, and in the need for help?

Can't fetch openscenegraph (Scripted compilation linux)

Postby Trez » Sun Apr 28, 2013 2:23 am

Using the info displayed here I started compiling and then when i got to OSG:
Code: Select all
****************************************
**************** OSG *******************
****************************************
svn: E175002: Unable to connect to a repository at URL 'http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1'
svn: E175002: The OPTIONS request returned invalid XML in the response: XML parse error at line 1: Extra content at the end of the document
 (http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1)
"MYNAME"@Ubuntubook:~/fgfs$

I've tried it 3-5 times today and yesterday with no luck. It worked before on Linux Mint 14 Cinnamon, but i installed Ubuntu 13.04 (which is great btw) yesterday and i get this problem. I haven't compiled git for a month now so that might be the problem. It seems they've changed the link to the download, when i opened the link it suggested the page was removed.

-Trez
User avatar
Trez
 
Posts: 437
Joined: Thu Jul 14, 2011 10:50 am
Location: Netherlands
Callsign: Trez
Version: 2.8 GIT
OS: OSX10.8, Mint 14

Re: Can't fetch openscenegraph (Scripted compilation linux)  

Postby Maerchenprinz » Sun Apr 28, 2013 4:43 am

Hey Trez!

The svn repository's address has changed. Simply open the script with a text editor and replace the lines:

Code: Select all
OSG_STABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"

and
Code: Select all
OSG_UNSTABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"



with the right address:
Code: Select all
OSG_STABLE_REVISION="http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1/"

and
Code: Select all
OSG_UNSTABLE_REVISION="http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1/"


Good luck! :)
Ciao,
Adrian
User avatar
Maerchenprinz
 
Posts: 136
Joined: Thu Mar 15, 2007 5:24 pm
Location: Bochum, it's better, much better than you think!
Callsign: Adrian

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby jam007 » Sun Apr 28, 2013 6:03 am

Added a note on the wiki page about this.
Should be removed when the script is updated.
jam007
 
Posts: 477
Joined: Sun Dec 16, 2012 10:04 am
Location: Uppsala, Sweden
Version: 2017.3.1
OS: Ubuntu 16.04

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby Trez » Sun Apr 28, 2013 11:16 am

Thanks! It works now. Off topic: is there any way i can compile without downloading all the aircraft? It's allot of diskspace.
User avatar
Trez
 
Posts: 437
Joined: Thu Jul 14, 2011 10:50 am
Location: Netherlands
Callsign: Trez
Version: 2.8 GIT
OS: OSX10.8, Mint 14

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby Hooray » Sun Apr 28, 2013 1:57 pm

you should probably send a heads-up to brisa or one of the fgmeta maintainers, so that the script can be updated accordingly.
Regarding the size of FGDATA: Splitting it to maintain aircraft in a separate repo is a long-standing feature request: http://wiki.flightgear.org/FlightGear_G ... ing_fgdata

http://www.mail-archive.com/search?q=sp ... eforge.net
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11274
Joined: Tue Mar 25, 2008 8:40 am

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby Soitanen » Sun Apr 28, 2013 2:16 pm

I'm using newest version of OSG:
Code: Select all
OSG_UNSTABLE_REVISION="http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.1.5/"

It gives me little gain in FPS.
Boeing 737-300. Reworked cockpit, FDM, autopilot and much more. WIP.
Boeing 737-800. WIP. Canvas PFD and ND.
Antonov An-24B. Made from scratch. Very good FDM. 3D model by Adrian. WIP.
Project Russia (some cities, based on OSM with custom objects).
Soitanen
 
Posts: 488
Joined: Sat Jun 16, 2012 6:50 am
Location: Saint-Petersburg, Russia
Version: git
OS: Linux Mint 17

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby TrueNorthist » Tue Apr 30, 2013 11:36 pm

Update below*

Well, I had the same problem and replaced the lines above but now I get:
Code: Select all
svn: E155000: '/home/truenorthist/fgfs/OpenSceneGraph' is already a working copy for a different URL
and it quits right there.
What have I done? Also, I appear to have several versions of the script listed in my /fgfs folder. Ranges from "download_and_compile.sh" to "download_and_compile.sh.1" (and 2, 3 and 4) Is this normal, or have I somehow wrecked something?

Edit: I realised what I did wrong and tried updating instead and it worked fine. Thanks for the fix. I am still wondering about the extra versions of the script though...
Flying on fumes
User avatar
TrueNorthist
 
Posts: 155
Joined: Mon Dec 03, 2012 2:36 pm
Location: B.C. Canada
Callsign: C-CYCW
Version: 3.7 + 3.4
OS: 10/Ubu14.04

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby callahanp » Sat May 11, 2013 3:19 am

I'll send three patches off to Francesco later this weekend after I've had a chance to test them.
It looks like fgmeta on gitorious.org/fg has not been kept up to date. It currently has version 1.9-4

Francesco's currently at script version 1.9-10. This is known to work on ubuntu12.10. I'm currently trying it for the first time on 13.04.

wget http://assistenza.larasrl.net/brisa/fgfs/download_and_compile.sh

Here's the patches I plan to test late Sunday, 12-May.

patch_1.9-10-01-options_c_and_w_bugfix.patch

The order of the options is wrong. the c and w options are not quite right.
you can use the script as iswithout them and everyting will be ok.
fixing the order makes them work.


patch_1.9-10-02_plib_svn_sourceforge_issue_fix.patch

sourceforge ocassionally will give error messages when downloading plib. Adding a / at the end of the plib url fixes this.

patch_1.9-10-03_osg_svn_url_change.patch

http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1/ is the correct url for OpenSceneGraph


--- download_and_compile.sh 2013-03-20 22:16:58.465911078 -0400
+++ download_and_compile-01-options_c_and_w_bugfix.sh 2013-03-20 22:18:34.313908801 -0400
@@ -52,7 +52,7 @@
WITH_EVENT_INPUT=""
WITH_OPENRTI=""

-while getopts "suhcgeixvw:p:a:d:r:j:O:" OPTION
+while getopts "suhgeixvwc:p:a:d:r:j:O:" OPTION
do
case $OPTION in
s)
@@ -192,6 +192,9 @@
echo "* -O X Add -OX to the make compilation default=None"
echo "* -r y|n y=reconfigure programs before compiling them n=do not reconfigure default=y"
echo "* -s compile only last stable known versions default=y"
+ echo "* -w cmake verbose option"
+ echo "* -x set -x bash option"
+ echo "* -v set -v bash option"

exit
fi

--- download_and_compile.sh 2013-03-21 18:18:40.261517454 -0400
+++ download_and_compile-02_plib_svn_sourceforge_issue_fix.sh 2013-03-21 18:19:57.341517604 -0400
@@ -370,7 +370,7 @@

cd "$CBD"

-#svn co http://plib.svn.sourceforge.net/svnroot/plib/trunk plib
+#svn co http://plib.svn.sourceforge.net/svnroot/plib/trunk/ plib

if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="PLIB"' ]]
then
@@ -401,7 +401,7 @@
cd -
else
echo -n "DOWNLOADING FROM http://plib.svn.sourceforge.net ..." >> $LOGFILE
- svn $PLIB_STABLE_REVISION_ co http://plib.svn.sourceforge.net/svnroot/plib/trunk plib
+ svn $PLIB_STABLE_REVISION_ co http://plib.svn.sourceforge.net/svnroot/plib/trunk/ plib
#cat plib/src/util/ul.h | sed s/"PLIB_TINY_VERSION 5"/"PLIB_TINY_VERSION 6"/g > ul.h-v1.8.6
#mv ul.h-v1.8.6 plib/src/util/ul.h
echo " OK" >> $LOGFILE



--- download_and_compile.sh 2013-05-10 22:55:31.059287572 -0400
+++ download_and_compile-1.9-10-osg_svn_url_change.sh 2013-05-10 22:58:36.767287931 -0400
@@ -140,7 +140,7 @@
#######################################################
# Last stable revision: currently FlightGear 2.4.0 with 3.0.1
PLIB_STABLE_REVISION="2172"
-OSG_STABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"
+OSG_STABLE_REVISION="http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1/"

# common stable branch for flightgear, simgear and fgdata
FGSG_STABLE_GIT_BRANCH="release/2.8.0"
@@ -164,7 +164,7 @@
FGCOMGUI_STABLE_REVISION="46"

# Current developer revision: latest FlightGear GIT (2.5.0) with OSG 3.0.1
-OSG_UNSTABLE_REVISION="http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1"
+OSG_UNSTABLE_REVISION="http://svn.openscenegraph.org/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1/"

#######################################################
# set script to stop if an error occours
callahanp
 
Posts: 7
Joined: Sat May 11, 2013 2:40 am
Callsign: pac1

Re: Can't fetch openscenegraph (Scripted compilation linux)

Postby pommesschranke » Fri Jun 28, 2013 10:29 am

TrueNorthist wrote in Tue Apr 30, 2013 11:36 pm: I am still wondering about the extra versions of the script though...


wget ist creating those filenames instead of overwriting the exisitng file.
pommesschranke
 
Posts: 1102
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests