Board index FlightGear Support Compiling

many Compiling Problem

Building FlightGear from source, and in the need for help?

many Compiling Problem

Postby foxhound » Thu Feb 24, 2011 12:51 pm

Hi

I run on Windows 7 with Visual Studio 2010.
I tried to Compile Flightgear 2.0 on Visual Studio then I get these compile errors:
Code: Select all
1>------ Build started: Project: SimGear, Configuration: Release Win32 ------
1>Build started 20.02.2011 23:07:05.
1>InitializeBuildStatus:
1>  Creating "Win32\Release\SimGear.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>CustomBuild:
1>  All outputs are up-to-date.
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>Lib:
1>  All outputs are up-to-date.
1>  SimGear.vcxproj -> E:\Flightgear\simgear\projects\VC90\Win32\Release\SimGear.lib
1>FinalizeBuildStatus:
1>  Deleting file "Win32\Release\SimGear.unsuccessfulbuild".
1>  Touching "Win32\Release\SimGear.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.42
2>------ Build started: Project: terrasync, Configuration: Release Win32 ------
2>Build started 20.02.2011 23:07:06.
2>InitializeBuildStatus:
2>  Touching "Win32\Release\terrasync.unsuccessfulbuild".
2>ClCompile:
2>  All outputs are up-to-date.
3>------ Build started: Project: FlightGear, Configuration: Release Win32 ------
3>Build started 20.02.2011 23:07:07.
3>InitializeBuildStatus:
3>  Touching "Win32\Release\FlightGear.unsuccessfulbuild".
3>CustomBuild:
3>  All outputs are up-to-date.
2>LINK : fatal error LNK1181: cannot open input file 'libsvn_client-1.lib'
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:01.54
4>------ Build started: Project: fgviewer, Configuration: Release Win32 ------
4>Build started 20.02.2011 23:07:08.
4>InitializeBuildStatus:
4>  Touching "Win32\Release\fgviewer.unsuccessfulbuild".
4>ClCompile:
4>  All outputs are up-to-date.
3>ClCompile:
3>  All outputs are up-to-date.
3>  All outputs are up-to-date.
3>  All outputs are up-to-date.
3>  All outputs are up-to-date.
3>ResourceCompile:
3>  All outputs are up-to-date.
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\Flightgear\flightgear\projects\VC90\Win32\Release\FlightGear.exe) does not match the Linker's OutputFile property value (E:\Flightgear\flightgear\projects\VC90\Win32\Release\fgfs.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(FlightGear) does not match the Linker's OutputFile property value (fgfs). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
4>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in SimGear.lib(props_io.obj)
4>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char> >(char const *,int,int)" (??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z) already defined in SimGear.lib(props_io.obj)
4>E:\Flightgear\flightgear\projects\VC90\Win32\Release\fgviewer.exe : fatal error LNK1169: one or more multiply defined symbols found
4>
4>Build FAILED.
4>
4>Time Elapsed 00:00:17.21
5>------ Build started: Project: fgadmin, Configuration: Release Win32 ------
5>Build started 20.02.2011 23:07:26.
5>InitializeBuildStatus:
5>  Touching "Win32\Release\fgadmin.unsuccessfulbuild".
5>ClCompile:
5>  All outputs are up-to-date.
5>  All outputs are up-to-date.
5>ResourceCompile:
5>  All outputs are up-to-date.
5>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
5>fgadmin_funcs.obj : error LNK2019: unresolved external symbol "public: void __thiscall Fl_Window::cursor(enum Fl_Cursor,unsigned int,unsigned int)" (?cursor@Fl_Window@@QAEXW4Fl_Cursor@@II@Z) referenced in function "private: void __thiscall FGAdminUI::install_selected(void)" (?install_selected@FGAdminUI@@AAEXXZ)
5>main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Fl_Preferences::~Fl_Preferences(void)" (??1Fl_Preferences@@UAE@XZ) referenced in function _main
5>E:\Flightgear\flightgear\projects\VC90\Win32\Release\fgadmin.exe : fatal error LNK1120: 2 unresolved externals
5>
5>Build FAILED.
5>
5>Time Elapsed 00:00:02.40
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in ATCVoice.obj
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::close(void)" (?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in ATCVoice.obj
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::basic_ifstream<char,struct std::char_traits<char> >(char const *,int,int)" (??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z) already defined in uiuc_flapdata.obj
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in FGOutput.obj
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: void __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::close(void)" (?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in FGOutput.obj
3>osgDB.lib(osg62-osgDB.dll) : error LNK2005: "public: __thiscall std::basic_ofstream<char,struct std::char_traits<char> >::basic_ofstream<char,struct std::char_traits<char> >(char const *,int,int)" (??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z) already defined in FGInitialCondition.obj
3>LIBCMT.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(_file.obj) : error LNK2005: __lock_file already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(_file.obj) : error LNK2005: __unlock_file already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
3>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
3>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
3>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
3>LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in MSVCRT.lib(crtexe.obj)
3>LIBCMT.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVCRT.lib(MSVCR100.dll)
3>LIBCMT.lib(lconv.obj) : error LNK2005: _localeconv already defined in MSVCRT.lib(MSVCR100.dll)
3>LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
3>
3>Build FAILED.
3>
3>Time Elapsed 00:00:29.08
========== Build: 1 succeeded, 4 failed, 7 up-to-date, 0 skipped ==========



I tried to use the solution from msdn but nothing work.

and I used this site http://wiki.flightgear.org/index.php/Building_FlightGear_-_Windows to build Flightgear,
and the vc90 project file because I have a little Problem with cmake generating the vc100 project.

Please help I need it for a project for the university.



thx.
foxhound
 
Posts: 1
Joined: Thu Feb 24, 2011 12:35 pm

Re: many Compiling Problem

Postby manosur » Wed Nov 16, 2011 12:12 pm

Hi
Could you compile FG finally or not yet?
manosur
 
Posts: 15
Joined: Wed Oct 05, 2011 3:22 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 0 guests