ThorstenB
51a17a7a0f
Suppress unnecessary "failed alias" warnings
...
when requested alias matches existing alias anyway (identical aliases can
be created on repeated sim resets)
2012-07-07 16:05:02 +02:00
ThorstenB
edcbfb52eb
Add SimGear RPM package spec file.
...
Example for Linux package builders.
2012-07-02 21:51:40 +02:00
ThorstenB
3fa835d74c
Bump version to 2.8.0
...
since "next" is already frozen for 2.8 and is prepared for building the
first release candidate.
For details on versions see http://wiki.flightgear.org/Release_plan
2012-06-26 23:17:07 +02:00
ThorstenB
035ff3e1ea
Update README/INSTALL documentation.
2012-06-26 22:43:48 +02:00
ThorstenB
a781eea10e
#744 : Raise warning level when reporting missing svn library.
...
Status message are almost invisible - use warning message instead, so
builders/packagers actually notice a missing dependency.
Also add some useful hints.
2012-06-24 20:04:26 +02:00
ThorstenB
8e42e5bdba
Fix error handling in SGSampleGroup::stop
...
Move error check to correct location: needs to be done immediately after
the alSourceStop call - and only if it was called at all.
2012-06-24 19:18:47 +02:00
ThorstenB
9720f8ca16
Patch clean-up
2012-06-19 22:15:33 +02:00
ThorstenB
3f6f34e7e1
Drop obsolete TODO
2012-06-08 13:53:15 +02:00
ThorstenB
eff1541ba3
Add INSTALL and README.cmake files.
2012-06-08 13:20:03 +02:00
ThorstenB
e69d1b5a82
#767 related: fix sound resource management
...
Use _smgr->release_buffer instead of direct alDeleteBuffers.
2012-05-12 23:35:10 +02:00
ThorstenB
6129de31f0
Fix C compiler warning.
...
"no-overloaded-virtual" warnings are a CXX-compiler feature
2012-05-05 09:46:11 +02:00
ThorstenB
0908f86714
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 01:41:45 +02:00
ThorstenB
31ed79fe43
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 00:30:16 +02:00
ThorstenB
1af2ad12bf
openSUSE "more architectures" patch
...
(Alpha anyone? ;-) )
2012-05-05 00:18:26 +02:00
ThorstenB
44db6d9e44
Move vector property templates to separate header file.
...
Fixes the "weirdness" with MSVC complaining about incomplete class specs,
since forward declarations (SGMathFwd.hxx) are used in props.hxx only.
Only the few extended (vector) property templates require including the
full SGMath.hxx (with MSVC) - and these are used in few places.
2012-05-05 00:07:07 +02:00
ThorstenB
6e662fe4d6
Ganael Laplanche: fix include dependencies for FreeBSD support
2012-05-04 23:24:10 +02:00
ThorstenB
067ff4f8ed
Fix signed vs unsigned compiler warnings
2012-05-04 23:13:54 +02:00
ThorstenB
ab7d2a4bcc
Allow "texture-path" XML entries to be present but empty.
...
This had worked with previous FG versions and is used by many models -
so it shouldn't be treated as an error now.
2012-04-30 18:29:44 +02:00
ThorstenB
dd54f6938e
#717 : Disabling advanced weather crashes the sim
...
Protect from a NULL-pointer segfault in SGCloudField::removeCloudFromTree
when disabling advanced weather (may just fix a symptom).
2012-04-25 21:08:37 +02:00
ThorstenB
9a113bdb44
Revert "Add virtual destructor to SGReferenced."
...
As suggested by Mathias, will use different solution.
This reverts commit 4abcf3215f .
2012-04-23 19:41:09 +02:00
ThorstenB
4abcf3215f
Add virtual destructor to SGReferenced.
2012-04-21 20:50:07 +02:00
ThorstenB
77909577e4
Error messages when installing property aliases fails.
2012-04-05 20:03:07 +02:00
ThorstenB
1a835a2e1b
performance monitor: start measurement interval with a fresh timestamp.
2012-04-05 19:30:00 +02:00
ThorstenB
2fed46e222
performance monitor improvement
...
Record cumulative time consumed (all time) and current total time (current
measurement only) for subsystems.
2012-04-02 20:47:27 +02:00
ThorstenB
9ad070871a
Use observer_ptr::lock for thread-safe pointer retrieval.
...
Also revert to using ref_ptr for the top-level EffectMap, since it holds
elements no one else references (and don't affect memory much).
2012-04-02 20:47:27 +02:00
ThorstenB
2b62411a78
Remove dead code.
2012-03-28 22:55:40 +02:00
ThorstenB
6fa4c7e138
Add file name to error message.
2012-03-28 22:54:27 +02:00
ThorstenB
ece38a6dbf
Fix growing memory consumption issues
...
References in simgear's cache maps prevented effects, textures, clouds,
trees and lights from being unloaded at run-time (ref-counter could never
reach 0). Changed cache maps to use OSG 'observer' pointers instead, so
reference counters aren't influenced, though cache maps still hold an
(observing) pointer. Also take care when finding a cache entry with empty
content (i.e. texture was unloaded).
2012-03-28 22:53:30 +02:00
ThorstenB
ac29faf3bb
osg::Uniform::get does not return a value on error.
...
Fixes "usage of uninitialized data" errors reported by valgrind.
2012-03-26 21:00:10 +02:00
ThorstenB
b55e9df70a
Don't crash when "avionics == NULL".
2012-03-22 23:54:01 +01:00
ThorstenB
0b8bfd9ed8
More checks/error messages for missing files,
...
checking return value of findDataFile.
2012-03-17 10:15:31 +01:00
ThorstenB
eff0c610e2
More consistent indentation.
2012-03-17 10:02:43 +01:00
ThorstenB
ca97e67511
Avoid segfault when a texture file is missing.
...
Always check the return value of "findDataFile". If it's empty, always
provide the _original_ path being searched in an error message. Otherwise
we eventually just get useless 'Can't find file "".' error messages
(and also a segfault here, since osgDB::readImageFile("") returns NULL).
2012-03-17 10:02:13 +01:00
ThorstenB
13f96cdcc9
Dir::tempDir not working on some systems.
...
Only worked when TMPDIR environment variable had a trailing slash (i.e.
"/tmp/" worked, but not "/tmp").
(Problem shown by simgear's "test suite". It's good to have tests!)
2012-03-03 17:06:51 +01:00
ThorstenB
811147d08e
Fix string comparison
2012-02-28 08:39:19 +01:00
ThorstenB
4bf4091ef7
Remove obsolete comment...
2012-02-24 22:47:18 +01:00
ThorstenB
b7fa1d4f02
#537 linker issues due to clock_gettime/librt dependencies
...
Simplify dependency check and make it work for Debian.
2012-02-24 22:20:37 +01:00
ThorstenB
f1c2afacc4
Revert "Try to fix MSVC template instantiation issue with SGVec dependencies."
...
This reverts commit 8aed0e75df .
2012-02-24 22:00:58 +01:00
ThorstenB
8aed0e75df
Try to fix MSVC template instantiation issue with SGVec dependencies.
2012-02-24 21:47:00 +01:00
ThorstenB
2a9d39f201
Allow (ab)using findDataFile to also search directories again.
2012-02-19 14:39:19 +01:00
ThorstenB
ae0b8eb3b3
Make tsync part of libSimGearCore when building shared libraries
2012-02-19 14:39:19 +01:00
ThorstenB
37457fcb33
Remove obsolete ignore pattern for automake generated headers.
2012-02-17 23:46:06 +01:00
ThorstenB
811f156ad1
#658 : better bugfix for findDataFile issue
...
Fixes the more basic probelm of "SGModelLib::findDataFile" resolving an
empty file name to the fgdata (directory) path. findData_File_ should
never return a _directory_ path, only valid _file_ names.
2012-02-11 10:55:13 +01:00
ThorstenB
2a0e9d31e1
#658 : avoid crash when Textures.high is missing
...
Don't resolve the empty file name, which would result in the fgdata
directory path (instead of a path to a file). Eventually this resulted in
a segfault, partly due to a bug in "osgDB::readImageFile", which reports
"success" when given a directory (instead of a file) path, though it
doesn't return a valid image object.
2012-02-11 10:00:03 +01:00
ThorstenB
5eb9acd8b6
Olaf Flebbe: Avoid infinite recursion in simgear::Dir::create
...
when using it with a relative path.
2012-02-10 22:42:27 +01:00
ThorstenB
9d20de068c
Move JPEG dependency
...
Alas, JPEG_FACTORY is in SimGearScene, not SimGearCore...
2012-01-29 14:39:48 +01:00
ThorstenB
96c2e4d3ab
Correct dependency of shared simgear libraries with enabled JPEG_FACTORY.
2012-01-29 14:28:49 +01:00
ThorstenB
21f2e1f250
#599 : Don't crash when a path does not exist.
2012-01-13 19:58:45 +01:00
ThorstenB
cee8c5b5c7
#199 : ADd method to return the absolute (real) path.
2012-01-12 21:44:15 +01:00
ThorstenB
423eba3733
Alas. Fix #pragma magic for GCC <= 4.5.
...
push/pop was introduced for GCC4.6 only - so avoid it.
Also, properly fix the fgets warning.
2012-01-09 22:18:17 +01:00
ThorstenB
49a23fdc2e
Fix final simgear GCC warnings.
2012-01-09 21:51:09 +01:00
ThorstenB
fddac2443d
More #pragma magic.
...
Same magic as for SGSphere.
2012-01-09 21:49:34 +01:00
ThorstenB
182037ad67
Slightly better error message for invalid taxiway signs.
2012-01-09 20:27:27 +01:00
ThorstenB
5923956045
#587 : don't crash on negative sizes
2012-01-09 20:21:28 +01:00
ThorstenB
a89b9f6158
#581 , invalid gcc pragma syntax
...
Thanks to Olaf Flebbe.
2012-01-09 20:19:26 +01:00
ThorstenB
68625e48b9
Fix compiler warning / test issue.
2012-01-02 23:04:40 +01:00
ThorstenB
f97ced2240
Add version suffix when building shared objects
2011-12-29 14:45:29 +01:00
ThorstenB
54db2e0ab1
#479 : avoid issues due to trailing path separators
...
Cut trailing separators when converting from string to sgpath.
Also, SGPath::fix does NOT replace ":". It only replaces "\" with "/",
so the "i!=1" check for Windows made no sense (rule #9 : never believe
a source code comment).
2011-12-18 17:04:31 +01:00
ThorstenB
b261836f71
#512 : fix compatibility issue with boost 1.48.0
...
Thanks to handigehansje.
2011-12-18 14:06:27 +01:00
ThorstenB
cfdf992600
Improve logging classes.
...
Replace SG_GENERAL by more specific log classes in many places.
2011-12-11 13:57:54 +01:00
ThorstenB
97fcf48caa
fix sound buffer resource leak
...
Openal doesn't remove buffers unless they were disconnected form
their source.
2011-12-04 21:25:42 +01:00
ThorstenB
e17b3a753e
sound: fix "source" resource leak
...
Sound resources were eaten up when a sample could not be loaded.
Restores sound for aircraft attempting to use stereo files for sound effects.
However, when loading fails, sound code still tries to load the same file
again and again (always resulting in the same "stereo files not supported"
error), which slows down simulation.
2011-12-04 20:16:36 +01:00
ThorstenB
865b0a3e56
sound manager: report a few more errors
2011-12-04 17:10:58 +01:00
ThorstenB
6780a0c8d4
Fixed lib64 auto-detection (again)
...
Reverting the "LIB_SUFFIX" change.
Assuming recent change was unintentional (otherwise let me know James! :) ).
2011-11-30 19:50:09 +01:00
ThorstenB
7a52c2fa71
cmake: add option to disable building tests
2011-11-26 16:39:40 +01:00
ThorstenB
ec5d067d28
CMake: Proper support for lib vs lib64 installation
...
Determine name of library installation directory, i.e. "lib" vs "lib64",
which differs between all Debian-based vs all other Linux distros.
See cmake bug #11964 , http://cmake.org/gitweb?p=cmake.git;a=commit;h=126c993d
Also provide a script for older (<=2.8.4) cmake
2011-11-25 12:06:54 +01:00
ThorstenB
5f804cb0eb
Add another subsystem group.
...
Sound subsystem wants to be the last in processing - so use a
separate group.
2011-11-20 15:50:56 +01:00
ThorstenB
338f2311d4
Merge commit 'refs/merge-requests/17' of git://gitorious.org/fg/simgear into merge-requests/17
2011-11-19 15:25:22 +01:00
ThorstenB
27a1c0288b
Separate module to monitor (subsystem-)performance.
...
Move some code from the subsystem manager to a separate module.
Add module to evaluate performance and expose statistics to properties.
2011-11-19 15:24:43 +01:00
ThorstenB
dd45be518f
Improve error messages, report file name.
2011-11-17 21:26:02 +01:00
ThorstenB
dfbdcc1bf0
Replace OpenThreads with SGThread to avoid useless OSG dependency.
...
Untangle SG subsystems by replacing direct TileCache call with callback.
2011-11-13 15:37:49 +01:00
ThorstenB
b09636f5ca
Fixed typo.
2011-11-10 22:08:23 +01:00
ThorstenB
aa0e3e3c9f
#453 : Using = as Nasal function argument crashes FG
...
Keep Nasal parser from crashing when "=" function misses a left-hand
element, i.e. when parsing "sin(=)".
(Or do people writing such terrible syntax deserve a crash? ;-) ).
2011-10-29 21:20:46 +02:00
ThorstenB
3477e1a4f5
terrasync improvements
...
Detach from console to make "Ctrl-C" work for fgfs on Linux.
Immediately start synchronization of current position when
starting at run-time.
2011-10-29 21:15:29 +02:00
ThorstenB
a4b788980c
Fix terrasync airport synchronization sequence
...
Airport A-J were skipped. Thanks to James for spotting this.
Also corrects actual sync order.
2011-10-29 21:13:12 +02:00
ThorstenB
5ede8c12ba
Make SGModelPlacement safe on reinit
...
Remove old model When init is called multiple times (i.e. reinit).
Also allow explicit removal of submodel (= init(0) ).
2011-10-11 21:28:37 +02:00
ThorstenB
2e13c1fa4b
Add convenience class for change listener callbacks.
2011-10-03 11:57:48 +02:00
ThorstenB
dc5af66748
Merge commit 'refs/merge-requests/9' of git://gitorious.org/fg/simgear into merge-requests/9
2011-08-28 14:10:11 +02:00
ThorstenB
40e177a02e
#329 : fix issue with mismatching sound volume
...
Sounds played after changing view position sometimes had incorrect volume
2011-08-27 12:00:17 +02:00
ThorstenB
36a8243f73
Support absolute paths for XML includes.
...
Use standard path resolver when searching for includes. Includes like
<foo include="/Aircraft/Instruments/myfile.xml">
are now also supported - no need for
<foo include="../../../Aircraft/Instruments/myfile.xml">.
2011-08-27 11:53:15 +02:00
ThorstenB
ee06c12374
Fix sg_dir dot-file handling
...
File dialogs never showed ".." directories for navigation, since these were
filtered by the "INCLUDE_HIDDEN" option. Only the "NO_DOT_OR_DOTDOT"
option should be used for filtering - otherwise it's impossible to show
the "."/".." directories while all other files are still hidden.
2011-08-21 14:31:08 +02:00
ThorstenB
a668e47fa1
Introduce some more logging classes.
...
The current habit of almost everything being in either SG_GENERAL or
SG_ALL really sucks :).
2011-08-11 23:45:19 +02:00
ThorstenB
469c0242d4
Improved CMake support for libsvn
...
Added missing CMake defines for SVN_CLIENT.
Don't detect libsvn without APR.
When installed, enable libsvn support by default (same as for automake).
When enabled, provide libsvn include dir to libtsync.
gitignore temporary CMake files
2011-08-04 19:28:13 +02:00
ThorstenB
6edfacbf4e
Ove Kåven: Fix property refcounting for particles
2011-08-01 19:47:19 +02:00
ThorstenB
b53c53d9d8
#232 : resurrect the "point sprites for runway lights" switch
...
Automatic GL/OSG feature detection still not working, since we don't have
a "context" - but at least the manual switch works (on start-up only).
2011-07-31 14:00:48 +02:00
ThorstenB
116c487384
Fix locale setting for Windows
2011-07-18 20:29:11 +02:00
ThorstenB
5f70abb16d
Clean solution for locale problem.
...
Changing and reverting the locale isn't thread-safe. Instead, setup the
environment to ensure the active locale sticks to default "C" locale at
any time.
2011-07-18 20:15:50 +02:00
ThorstenB
d4f5a35e87
Alert message formatting.
...
Avoid log output cluttering due to "missing animation objects".
2011-07-03 13:04:00 +02:00
ThorstenB
59a6fd1ed8
#348 : (continued) Missing sound files not reported properly
...
Avoid useless "File '' not found." messages for missing sound files.
2011-06-26 01:06:07 +02:00
ThorstenB
8c8d9e5cc4
#348 : Missing model/texture files not reported properly
...
Whenever resolving a (relative) path to an absolute path with
'findDataFile', check if the result is empty and report original
(relative) path as missing. Otherwise no or a meaningless message is
issued ("File '' not found.").
2011-06-26 00:36:19 +02:00
ThorstenB
204e483c08
Disable support of white-space path for Windows
...
Apparently enclosing white-space paths using '"' doesn't work on Windows.
2011-06-23 17:20:06 +02:00
ThorstenB
f582eb5310
Improve upate interval after failed updates.
2011-06-23 17:20:06 +02:00
ThorstenB
76fcad0a0b
Bad boundary check. Add missing parentheses.
2011-06-22 09:16:27 +02:00
ThorstenB
cc06799838
fix #353 : svn doesn't like stray path separators
2011-06-20 22:46:46 +02:00
ThorstenB
8a26c382a2
Improve error handling and avoid refresh nuisances.
...
Ignore errors due to missing (ocean-)scenery data on SVN server.
For now, only refresh scenery tiles when ocean is replaced by actual
scenery data after download.
2011-06-20 22:10:07 +02:00
ThorstenB
22198d8bd2
Improve external SVN support.
...
Support white-space paths when calling external SVN utility.
Support optional configuration of absolute path to SVN utility.
2011-06-20 22:05:37 +02:00
ThorstenB
708ae35068
Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE
...
fixes commit c782a32076 ,
(also see 38494a48d8 :) )
2011-06-14 21:49:42 +02:00
ThorstenB
50cea4f64e
Csaba Halasz: fix SGTimerQueue so tasks can remove themselves properly
...
fixes commit c033979130
2011-06-13 14:13:48 +02:00
ThorstenB
c782a32076
Introduce "PRESERVE" flag to protect properties on sim reset.
...
Some specific properties need protection and shouldn't be restored to their
original values on sim-reset.
2011-06-12 20:32:13 +02:00
ThorstenB
edc877442f
Add optional attribute condition to "copyProperties".
...
Option to only copy properties with specific attribute values.
Default is copy all (as before).
2011-06-12 13:41:38 +02:00