Am 10.07.2012 15:27, schrieb HB-GRAL:
The last weeks Geoff McLane and me forked fgcom temporary at gitorious
(http://www.gitorious.org/fgcom) and made some significant changes.
Origin source is still available at http://sourceforge.net/projects/fgcom/
Schön wieder Fortschritte bei fgcom zu sehen. Und schön CMake + Git zu
sehen ;-). Habt ihr auch mal Holger Wirtz kontaktiert? Wäre vielleicht
ganz gut. Er ist beim LinuxTag in Berlin immer mit dabei - hat aber
ansonsten wohl viel anderes zu tun.
- In CMakeLists you can see that is possible now to set paths to
positions and frequencies files with:
-DSPECIAL_FREQUENCIES_FILE="fgcom-data/special_frequencies.txt"
-DDEFAULT_POSITIONS_FILE="fgcom-data/positions.txt"
Super wäre es, wenn diese auch als CMake Optionen von außen gesetzt
werden können - damit man das an sein System anpassen kann, ohne an den
Sourcen zu schrauben. Siehe Patch im Anhang.
Ansonsten habe ich für Linux noch die "pthread" Library hinzufügen
müssen. Eine saubere Lösung wäre wohl das irgendwie zu detektieren -
ggf. mal in die FG CMake Files reinschauen, und irgendwie abkupfern.
Mit dem Patch im Anhang hat es bei mir direkt funktioniert und fgcom
läuft einwandfrei. Das alte fgcom konnte ich nur auf meinem alten
Rechner laufen lassen (lansgsamer single core) - auf meiner modernen
6core Maschine lief das alte fgcom irgendwie nicht.
Gruß,
Thorsten
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d599aae..63fd5dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -298,8 +298,11 @@ add_definitions( -DSVN_REV="261" )
add_definitions( -DLIBVER="SVN 261" )
# for now follow like in OSX, in fgcom-data in the 'install' directory
-add_definitions( -DSPECIAL_FREQUENCIES_FILE="fgcom-data/special_frequencies.txt" )
-add_definitions( -DDEFAULT_POSITIONS_FILE="fgcom-data/positions.txt" )
+option( SPECIAL_FREQUENCIES_FILE "Path to 'special frequencies' file." "/usr/share/fgcom/special_frequencies.txt" )
+option( DEFAULT_POSITIONS_FILE "Path to 'default positions' file." "/usr/share/fgcom/positions.txt" )
+add_definitions( -DSPECIAL_FREQUENCIES_FILE="${SPECIAL_FREQUENCIES_FILE}" )
+add_definitions( -DDEFAULT_POSITIONS_FILE="${DEFAULT_POSITIONS_FILE}" )
+
if(ADD_DEBUG_OUTPUT)
add_definitions( -DDEBUG )
@@ -358,6 +361,7 @@ else(WIN32)
# DYNLIB=libiaxclient.dylib
else(APPLE)
if(UNIX)
+ set( win_LIBS pthread )
# CFLAGS:= $(CFLAGS) -Iportaudio/src/os/unix
# DYNCFLAGS=-fPIC
# DYNLIB=libiaxclient.so
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel