Board index FlightGear Support Compiling

threedconvert

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

threedconvert

Postby daveculp » Wed Jan 28, 2015 9:46 pm

I'm running FG 3.2, built on an Ubuntu 64 bit system using download_and_compile.sh. Does anyone know how I can build threedconvert using download_and_compile.sh?
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: threedconvert

Postby enrogue » Wed Jan 28, 2015 10:23 pm

Hi

If you mean the 3dconvert in flightgear/utils/Modeller, I managed to complile it manually like this:

(in flightgear/utils/Modeller)
Code: Select all
gcc -o 3dconvert 3dconvert.cxx -lplibssg -lstdc++ -lglut


hope that helps
User avatar
enrogue
 
Posts: 265
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: Ubuntu, macOS

Re: threedconvert

Postby daveculp » Thu Jan 29, 2015 12:41 am

Thanks, enrogue. The problem is that the linker can't find the libs. I see that plibssg is located at ~/FG-3.2/stable/install/plib/lib/libplibssg.a, and there is a stdc++ located at /usr/lib/x86_64-linux-gnu/libstdc++.so.6

I couldn't find glut, so I installed a freeglut package. Now I have /usr/lib/x86_64-linux-gnu/libglut.so.3.9.0

So, two dynamic libs and one static.

Oh sh$%^, now my 3dconvert.ccx went missing.

Sorry for the noise. I'll get this some day.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: threedconvert

Postby Hooray » Thu Jan 29, 2015 2:59 am

the d&c script should usually not install anything system-wide - thus, you will need to look at your startup parameters and/or the script itself to see where it installed all those libs - otherwise, gcc will not find them, which is probably what you're seeing right now - however, be aware that installing those libs system-wide may help with 3dconvert, but may confuse the d&c script or the superbuild. So, I'd usually suggest to only one method, not both in combination - or you'll end up with tons of FG specific libs all over the place, which will be hard to find/match.
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: 11949
Joined: Tue Mar 25, 2008 8:40 am

Re: threedconvert

Postby daveculp » Thu Jan 29, 2015 4:39 am

Thanks Hooray. Yes, I'm reluctant to have double copies of libraries around, lest my FG build find the wrong ones. What I'm hoping for is a switch in the build script for building the utilities. Can't find one.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: threedconvert

Postby enrogue » Thu Jan 29, 2015 8:11 am

From memory I looked for a switch & couldn't find one either - I just looked at the source for it & saw that it was a single file, so I figured it would be ok to compile it on it's own

I have the ppa from here:

https://launchpad.net/~saiarcot895/+arc ... flightgear

installed, so I think I had all the dependencies installed from that

fwiw plib is libplib1, glut is freeglut3, stdc++ is libstdc++6

I felt that as the d&c script was putting everything in it's own subdirectories & setting LD_LIBRARY_PATH that it should be fine - that overrrides normal library loads
User avatar
enrogue
 
Posts: 265
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: Ubuntu, macOS

Re: threedconvert

Postby daveculp » Fri Jan 30, 2015 3:03 am

Thanks again, enrogue. I finally got it built. For some reason I had to make a symlink in /usr/lib for libplibssg.so.1 called libplibssg.so
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest