Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

Jump to navigation Jump to search
→‎OpenRTI undefined reference errors: Option --cleanup can simpify this
m (→‎Prerequisites: Wording)
(→‎OpenRTI undefined reference errors: Option --cleanup can simpify this)
Line 636: Line 636:


=== OpenRTI undefined reference errors ===
=== OpenRTI undefined reference errors ===
Sometimes due to the way d&c build cleans up projects, linking errors might occur, this is the case with this error "libRTI-NG.so: undefined reference to xxx", sadly at this point either you need to patch the d&c script to clean OpenRTI with <code>rm -f CMakeCache.txt && rm -rf CMakeFiles/</code>, or just start from a clean environment, assuming you are in the parent project directory, you will need to issue this command to clean everything (except FGData):
 
Sometimes, due to the way <tt>download_and_compile.sh</tt> builds projects, linking errors might occur. This is the case with the error “libRTI-NG.so: undefined reference to xxx”. You might want to patch the <tt>download_and_compile.sh</tt> script to clean OpenRTI with <code>rm -f CMakeCache.txt && rm -rf CMakeFiles/</code>, or just restart the build in a clean environment. Assuming you are in the base directory from which you ran <tt>download_and_compile.sh</tt>, you can run <code>download_and_compile.sh --cleanup</code> (see [[#Cleaning built and installed files|Cleaning built and installed files]]). Alternatively, the following command could be used:
  $ rm -rf build/* install/simgear/ install/openrti/ install/flightgear/share/ install/flightgear/bin/
  $ rm -rf build/* install/simgear/ install/openrti/ install/flightgear/share/ install/flightgear/bin/


See {{forum link|t=26244|text=this thread}} for more details.
See {{forum link|t=26244|text=this thread}} for more details. Note that <tt>download_and_compile.sh</tt> didn't have the <code>--cleanup</code> option at that time!


== Options ==
== Options ==
377

edits

Navigation menu