There cannot exist a howto to compile these sources, because it depends on
the cvs sources, and cvs files are always changing. Anyway, I did compile
the whole project under msvc.net 2003 (both under win XP, and win 2k), 2
weeks ago, and I can testify that it works well, here are a few guidelines :
- download glut for windows from
http://www.xmission.com/~nate/glut.html, and unzip it
- copy glut.h to
"%VISUAL_DOT_NET_2003_DIRECTORY%\Vc7\PlatformSDK\Include\GL"
- copy glut32.dll to "%WINDOWS_DIRECTORY\System32"
- download the openAL sdk for windows at
http://developer.creative.com/landing.asp?cat=1&sbcat=31&top=38, and install
it.
- create a directory "AL" in
"%VISUAL_DOT_NET_2003_DIRECTORY%\Vc7\PlatformSDK\Include\", copy the files
you find in "%OPENAL_DIRECTORY%\Include" into this new directory, then you
should find 8 files (al.h, alc.h, alctypes.h, altypes.h, alu.h, alut.h,
aluttypes.h, and alutypes.h) in
"%VISUAL_DOT_NET_2003_DIRECTORY%\Vc7\PlatformSDK\Include\AL"
- copy the dll files you find in "%OPENAL_DIRECTORY%\dll" in
"%WINDOWS_DIRECTORY\System32" (there are 2 files : OpenAL32.dll, and
wrap_oal.dll)
- download the file "FG-ProjectFiles-msvc71.zip" at
ftp://ftp.ihg.uni-duisburg.de/FlightGear/Win32/MSVC/ (careful, this file
only works under msvc.net 2003, not 2002), unzip it
- download the version of pThread for windows indicated in the
"FG-ProjectFiles-msvc71" newly created directory (should be
"pthreads-snap-2004-06-22", so you must not download the latest version but
an older one) at http://sources.redhat.com/pthreads-win32/, unzip it. In
explorer, drag the newly created directory "pthreads-snap-2004-06-22", and
drop it on the directory "FG-ProjectFiles-msvc71\pthreads-snap-2004-06-22"
(pressing "Ctrl" key at the same time to copy the files, its safer than just
to move them).
- copy "pthreadVCd.dll" (that you can now find in
"FG-ProjectFiles-msvc71\pthreads-snap-2004-06-22"), in
"%WINDOWS_DIRECTORY\System32"
- download the cvs version (tarballs are ok) of flightgear, plib,
and simgear at (http://www.flightgear.org/Downloads/source.html,
http://plib.sourceforge.net/download.html, and
http://www.simgear.org/downloads.html), unzip them (you can use "7-zip",
http://www.7-zip.org/, to unzip ".tgz", or ".tar.gz" files).
- drag, and drop (copying them, it's safer...) these 3 newly created
directories onto there respective counterpart in
"FG-ProjectFiles-msvc71\FlightGear\cvs"
- unzip "zlib-1.1.4.tar.gz" that you find in
"FG-ProjectFiles-msvc71\FlightGear\cvs\SimGear\src-libs", and drag and drop
this new "zlib-1.1.4" directory to
"FG-ProjectFiles-msvc71\FlightGear\zlib-1.1.4"
Now we have to modify the project, and the code itself, because several
things changed since "FG-ProjectFiles-msvc71.zip" was made :
- open the solution named "FlightGear-2.sln" in
"FG-ProjectFiles-msvc71\FlightGear\cvs\FlightGear"
- find the files dme.cxx, dme.hxx, navcom.cxx, navcom.hxx,
radiostack.cxx, radiostack.hxx in project "FlightGear", directory
"Lib_Cockpit" in solutions explorer UNDER MSVC, and delete them from the
project : they do not exist anymore in the latest cvs versions of FlightGear
find flightgear.ico, and flightgear.rc in project "FlightGear", in
solutions explorer UNDER MSVC, and delete them from the project
- find the files jpgfactory.cxx, and jpgfactory.hxx in project
"SimGear", "directory Lib_sgscreen" in solutions explorer UNDER MSVC, and
delete them from the project
- add the file "ssgAnimTransform.cxx" to project "ssg" in solutions
explorer UNDER MSVC
- delete the projects magik_demo, tux_examples, fgadmin, and fgrun
from the solution
- open "glut.h" that you find in
"%VISUAL_DOT_NET_2003_DIRECTORY%\Vc7\PlatformSDK\Include\GL", find "_CRTIMP
void __cdecl exit(int);", and replace it with
#if _MSC_VER >= 1200
_CRTIMP __declspec(noreturn) void __cdecl
exit(int);
#else
_CRTIMP void __cdecl exit(int);
#endif
Hope it helps...
Antoine.
PS : mail me back if you think something is strange...
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de Andy
messier
Envoy� : lundi 20 d�cembre 2004 20:01
� : [email protected]
Objet : [Flightgear-devel] Compiling with Visual Studio 2003.net
Hey All,
Are there step-by-step instructions on how to build the FlightGear
source using Visual Studio? I've been fighting with this build all
weekend, and am getting nowhere. I finally got all of the libraries
and headers in the right places, and now it returns thousands of
"invalid external symbol" errors. Are the Microsoft build files in
there legit, or is this just someone's wishful thinking?
Thanks,
Drew
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d