1
0
Fork 0
Commit graph

49 commits

Author SHA1 Message Date
Ganael Laplanche
43dab178c0 Use ${FREETYPE_INCLUDE_DIRS} instead of hardcoded path 2017-03-03 21:26:44 +00:00
Erik Hofman
f61293a935 Geoff McLane:
1. The variables  SIMGEAR_CORE_LIBRARIES and
SIMGEAR_CORE_LIBRARY_DEPENDENCIES are
no longer set... hence the need to hard-code 'SimGearCore'
in the target_link_libraries()

2. And -lfreetype means the linker must know the specific
link path to it, while the variable FREETYPE_LIBRARIES
contains the fully qualified path to the library.

3. Improved the 'found glut' message to show exactly what
was found, and being used... This is due to the user possibly
also have the near binary compatible glut32.lib found, which
will fail in the link due to some freeglut extensions have been
used.

4. Adding the define -DFREEGLUT_LIB_PRAGMAS=0  is
necessary to stop the freeglut headers from using a MSVC pragma
to declare the library, which will /not/ not be found...

5. In Windows the glew library is not -lGLEW, and even if it
was, it would not be found, without adding a link_directories(
path/to/library ),
while the GLEW_LIBRARIES variable has the fully qualified path.
2017-01-08 10:23:46 +01:00
Erik Hofman
52f5d19ac5 Windows also needs dirent.h 2017-01-07 14:16:58 +01:00
Erik Hofman
167a6ec031 MSVC fix 2017-01-07 11:19:43 +01:00
James Turner
4c4fb1a6ac Make FGPanel dependency handling better 2016-12-21 10:24:40 +00:00
Erik Hofman
005d5fa766 Search for Glew and freetype 2016-12-17 12:46:54 +01:00
Erik Hofman
a10d3d8381 Add SimGearCore 2016-12-17 11:40:35 +01:00
gallaert
effca9da5e Update FGPanel:
- use OpenGL 2.0 instead of OpenGL 1.0;
- port to Raspberry Pi;
- remove PLib dependencies.
2016-12-16 19:35:44 +00:00
James Turner
e2f7585d9c Use a Cmake imported target for SimGear 2016-10-30 22:15:54 +00:00
Jeremy Bicha
25928bf614 Use CMAKE_INSTALL_BINDIR
Allow /bin install directory to be overriden. Debian for example uses this
to install FlightGear to /usr/games/ instead of /usr/bin/

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
2016-07-09 18:52:58 -04:00
James Turner
6d0c2070fd Use future-proof SGPath APIs.
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
James Turner
16814800ce Use Paths instead of strings. 2016-06-22 17:36:05 +01:00
James Turner
0da1fc574d VS2015 compatability fixes. 2016-06-01 22:58:03 +01:00
ThorstenB
ec739a17c2 Fix compiler warning
(access beyond array bounds)
2012-07-17 19:32:05 +02:00
ThorstenB
e59fabaf82 Clean-up some SGMath dependencies. 2012-05-05 00:56:29 +02:00
ThorstenB
3fb41e2168 It does. :) 2012-03-03 21:40:40 +01:00
ThorstenB
b70055a9a2 fgpanel: use same default fgdata path as fgfs
Use location configured at compile-time (Linux) or use run-time check (Mac)
(copied from fgfs/options.cxx).
2012-01-25 17:37:14 +01:00
Olaf Flebbe
0eda5eee81 virtual destructor missing (in order to silence llvm warning) 2012-01-09 21:07:18 +01:00
ThorstenB
37453e6b7c #525 related: add compiler search path for every library
Consider search path for every single library as reported/found by CMake.
Most includes sit in the same directory (so the same directory is reported
for almost all libraries), however this may not be the case for every
system or library.
2011-12-18 12:40:34 +01:00
ThorstenB
b54defea52 cmake: fix sequence of (static) library dependencies
sgmath depends on sgprops, sgprops depends on sgstructure.
Also, core libraries are enough for fgadmin.
2011-11-26 16:41:35 +01:00
James Turner
a05ea36acb Restructure GUI code, isolate PLIB in source files, to ease future refactoring and alternative GUI layers. 2011-11-19 20:25:51 +00:00
Frederic Bouvier
b5a0da1c6e std namespace missing everywhere in fgpanel 2011-11-14 08:31:00 +01:00
ThorstenB
05eade445e fgpanel: avoid lagging
Avoid lagging when data is sent at (slightly) higher rate than
fgpanel's display rate. Always read all available data - display
most recent.
2011-11-12 11:24:08 +01:00
Mathias Froehlich
d1e5dc95ca Remove automake ignores. 2011-11-01 13:53:52 +01:00
James Turner
70b4f38ebc Goodbye automake. 2011-11-01 11:15:53 +00:00
Torsten Dreyer
b8cbaa9716 fgpanel: don't call nonexisting list
obviously something other was intended here.
2011-10-27 08:31:24 +02:00
James Turner
76c388f7cb Minor CMake packaging tweaks, more to follow. 2011-10-18 12:14:20 +01:00
James Turner
b1b4b7ecf4 Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'. 2011-10-17 17:41:59 +01:00
Frederic Bouvier
c92bc96ff8 Fix win32 fgpanel build 2011-10-08 13:41:32 +02:00
ThorstenB
32a49cb689 fgpanel: improved path handling
- Allow relative paths for panels.
- Set FGROOT as resource manager base path, so absolute
  XML includes can be resolved
2011-10-08 11:28:28 +02:00
ThorstenB
be720b424a fgpanel: fixed some error handling/setup issues
- Provide error message when fgdata path is missing.
- Exit game mode when closing/aborting program (show mouse cursor etc).
- Support absolute paths for "--panel" parameter.
- Don't crash when a font is missing.
2011-09-30 22:20:00 +02:00
Mathias Froehlich
3bf8b9d91f automake: Add missing GL and z libs to fgpanel. 2011-09-24 10:03:00 +02:00
Torsten Dreyer
f9d35d3bf5 Add -lsgthreads to fgpanel's automake 2011-09-20 16:03:32 +02:00
Mathias Froehlich
549c5eccb9 cmake: Factor out common simgear dependency libs.
Factor out and use this core simgear depenency
library cmake variable.
2011-09-11 11:22:10 +02:00
Frederic Bouvier
099bfd988b fgfs and fgpanel need to be linked with the winsock library (on Windows) 2011-09-09 21:38:02 +02:00
James Turner
a5a8090d52 Cmake: Split simgear libraries into core and scene (only scene uses OSG). Fix linkage issues, and make helper binaries (yasim, terrasync) link against less stuff. 2011-09-08 13:59:40 +01:00
Mathias Froehlich
6b6238293f Revert to simgears thread support. Flightgear side.
For all source directories outside of simgear/scene,
which really depends very hard on osg, avoid using osg
classes. This should reenable the use of some basic and
scenegraph independent parts of simgear without the
the need for osg.
2011-09-06 07:31:12 +02:00
James Turner
ab96d0b966 Fix utilities linkage, add OpenThreads 2011-08-31 03:08:52 -07:00
James Turner
6c52a5ac85 Fixes for include-file flattening - condition.hxx no longer pulls in props or props_io 2011-07-30 10:47:28 +01:00
Mathias Froehlich
e3e7fb5db5 Use cmake provided variable for librt. 2011-07-24 14:38:29 +02:00
Torsten Dreyer
dcde3a9350 Try to fix cmake build for fgpanel without GLUT 2011-07-21 23:42:45 +02:00
Torsten Dreyer
8f0f67f668 Enable build of fgpanel by default in cmake 2011-07-21 15:46:29 +02:00
Torsten Dreyer
3d36577a20 Make cmake for fgpanel work under linux 2011-06-05 21:08:44 +02:00
Torsten Dreyer
7ebc68b3c7 Fix a data type mismatch 2011-06-05 17:10:04 +02:00
Torsten Dreyer
abc97adf2b Initial commit to add fgpanel to cmake build system
Most likely only works on OSX, other OSes will follow later
2011-06-05 17:04:41 +02:00
Torsten Dreyer
8d67103214 fgpanel: fix compile for OSX 2011-06-04 21:27:04 +02:00
Torsten Dreyer
5527fedc80 let fgpanel compile under vc90 2011-05-27 20:53:16 +02:00
Torsten Dreyer
d88dcba5e8 Add fgpanel to the automake build system 2011-04-14 15:33:36 +02:00
Torsten Dreyer
f44dd24462 Initial commit of the fgpanel code
fgpanel is basically the stripped down 2D-Panel code from
FlightGear. It is designed as a standalone lightweight panel
rendering engine to draw 2d panels on a lowcost computer/graphic card
without 3d acceleration at reasonablel framerates.

Patches for inclusion into the build system will follow.
2011-04-14 11:11:17 +02:00