320
edits
Line 626: | Line 626: | ||
../fgmeta/download_and_compile.sh -pn -j4 | ../fgmeta/download_and_compile.sh -pn -j4 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====Raspberry Pi OS 64-bit==== | |||
OSG will need patched, [[Howto:Build_and_run_FlightGear_on_Raspberry_Pi_4#Patching|OSG patch]]. If source files and folders were used for Raspbian 32-bit, delete the build and install folders. | |||
FlightGear may fail to compile with the below error: | |||
<syntaxhighlight> | |||
/usr/bin/ld: ../../3rdparty/sqlite3/libfgsqlite3.a(sqlite3.c.o): in function `sqlite3_column_name16': | |||
/media/pi/ea5ced60-d2bc-44fc-adb8-5781729826a1/flightgear/dnc-managed/flightgear/3rdparty/sqlite3/sqlite3.c:76778:(.text+0x16470): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `sqlite3_value_text16' defined in .text section in ../../3rdparty/sqlite3/libfgsqlite3.a(sqlite3.c.o) | |||
/usr/bin/ld: /media/pi/ea5ced60-d2bc-44fc-adb8-5781729826a1/flightgear/dnc-managed/flightgear/3rdparty/sqlite3/sqlite3.c:76778: | |||
collect2: error: ld returned 1 exit status | |||
</syntaxhighlight> | |||
The fix is to edit this file; <code>/flightgear/dnc-managed/flightgear/3rdparty/sqlite3/CMakeLists.txt</code>. Within CMakeLists.txt, change <code>fpic</code> to <code>fPIC</code> | |||
===Raspbian=== | ===Raspbian=== |
edits