下载并构建 O3D

下载并构建 O3D

我正在尝试将一个名为 O3D 的程序安装到我的电脑中,具体方法如下O3D wiki 上的说明

我尝试将项目下载到我的目录但提示给了我这个答案:

gclient is not recognized as an internal or external command, operable or batch file

以下是 Google 提供的分步说明:

检查代码

gclient config 步骤只需运行一次即可设置您的工作目录。它会.gclient在您的工作目录中创建一个文件,该文件标识要从存储库中提取的相应结构。gclient sync 步骤会创建多个子目录。如果要在将来更新您的树,您只需从工作目录中的任何位置运行 gclient sync。

创建一个目录来保存您的源代码。我们将$O3D_ROOT在下面调用它。
重要提示:确保完整目录路径没有空格。

在 shell 窗口中,执行以下命令:

cd $O3D_ROOT
gclient config http://src.chromium.org/svn/trunk/o3d

要下载初始代码,请按照如下所述更新您的结帐。

cd $O3D_ROOT
gclient sync

我尝试构建时出现错误:

Error   1   error C2143: syntax error : missing ')' before '__stdcall'  c:\$o3d_root\base\win\i18n.cc   51  base
Error   2   error C2059: syntax error : ')' c:\$o3d_root\base\win\i18n.cc   51  base
Error   3   error C2065: 'GetPreferredUILanguages_Fn' : undeclared identifier   c:\$o3d_root\base\win\i18n.cc   53  base
Error   4   error C2146: syntax error : missing ';' before identifier 'get_preferred_ui_languages'  c:\$o3d_root\base\win\i18n.cc   53  base
Error   5   error C2065: 'get_preferred_ui_languages' : undeclared identifier   c:\$o3d_root\base\win\i18n.cc   53  base
Error   6   error C2061: syntax error : identifier 'GetPreferredUILanguages_Fn' c:\$o3d_root\base\win\i18n.cc   54  base
Error   7   error C2065: 'get_preferred_ui_languages' : undeclared identifier   c:\$o3d_root\base\win\i18n.cc   56  base
Error   8   error C3861: 'get_preferred_ui_languages': identifier not found c:\$o3d_root\base\win\i18n.cc   60  base
Error   9   error C3861: 'get_preferred_ui_languages': identifier not found c:\$o3d_root\base\win\i18n.cc   64  base
Error   10  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\stream_bank_d3d9.cc  1   o3dCorePlatform
Error   11  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\effect_d3d9.cc   1   o3dCorePlatform
Error   12  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\utils_d3d9.cc    1   o3dCorePlatform
Error   13  error C2065: 'PKEY_AppUserModel_ID' : undeclared identifier c:\$o3d_root\base\win\win_util.cc   116 base
Error   14  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\buffer_d3d9.cc   1   o3dCorePlatform
Error   15  fatal error LNK1104: cannot open file '..\..\build\debug\lib\base.lib'  cactions    cactions
Error   16  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\utils_d3d9.cc    120 o3dCorePlatform
Error   17  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\renderer_d3d9.cc 1   o3dCorePlatform
Error   18  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\buffer_d3d9.cc   222 o3dCorePlatform
Error   19  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\install_check.cc 1   o3dCorePlatform
Error   20  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\stream_bank_d3d9.cc  186 o3dCorePlatform
Error   21  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\texture_d3d9.cc  1   o3dCorePlatform
Error   22  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\effect_d3d9.cc   1226    o3dCorePlatform
Error   23  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\param_cache_d3d9.cc  1   o3dCorePlatform
Error   24  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\install_check.cc 259 o3dCorePlatform
Error   25  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\render_surface_d3d9.cc   1   o3dCorePlatform
Error   26  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\renderer_d3d9.cc 1755    o3dCorePlatform
Error   27  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\primitive_d3d9.cc    1   o3dCorePlatform
Error   28  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\texture_d3d9.cc  999 o3dCorePlatform
Error   29  error C2471: cannot update program database 'c:\$o3d_root\o3d\build\debug\obj\o3dcoreplatform\o3dcoreplatform\vc80.pdb' c:\$o3d_root\o3d\core\win\d3d9\sampler_d3d9.cc  1   o3dCorePlatform
Error   30  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\param_cache_d3d9.cc  84  o3dCorePlatform
Error   31  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\render_surface_d3d9.cc   154 o3dCorePlatform
Error   32  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\primitive_d3d9.cc    232 o3dCorePlatform
Error   33  fatal error C1903: unable to recover from previous error(s); stopping compilation   c:\$o3d_root\o3d\core\win\d3d9\sampler_d3d9.cc  203 o3dCorePlatform
Error   34  fatal error LNK1104: cannot open file '..\build\debug\lib\o3dcoreplatform.lib'  standalone  standalone
Error   35  fatal error LNK1104: cannot open file '..\build\debug\lib\o3dcoreplatform.lib'  o3dConverter    o3dConverter
Error   36  fatal error LNK1104: cannot open file '..\build\debug\lib\o3dcoreplatform.lib'  npo3dautoplugin npo3dautoplugin
Error   37  fatal error LNK1104: cannot open file '..\build\debug\lib\o3dcoreplatform.lib'  unit_tests  unit_tests
Error   38  error PRJ0019: A tool returned an error code from "convert_background, and also convert_character, and also convert_beach_low_poly, and also convert_beachdemo, and also convert_dome1, and also convert_dome2, and also convert_dome3, and also convert_dome4, and also convert_kitty_151_idle_stand05_cff1, and also convert_part1, and also convert_part2, and also convert_part3, and also convert_seven_shapes, and also convert_seven_shapes_webgl, and also convert_stencil_frame, and also convert_teapot, and also convert_teapot_webgl, and also convert_yard, and also convert_yard_webgl, and also convert_agra_rug, and also convert_asimi_rug, and also convert_camden_chair, and also convert_elements_bookshelf, and also convert_ferrara_rug, and also convert_house_roofless, and also convert_lounge_chair, and also convert_lounge_chaise, and also convert_lounge_sofa, and also convert_lounge_storage_ottoman, and also convert_madison_dining_table, and also convert_miles_side_chair, and also convert_pullman_bar_stool, and also convert_puzzle_tv_stand, and also convert_stow_leather_ottoman, and also convert_tivoli_dining_table, and also convert_tivoli_miles_dining_set, and also convert_troy_chair, and also convert_troy_ottoman, and also convert_troy_sofa, and also convert_troy_storage_ottoman, and also convert_troy_twin_sleeper, and also convert_all_actors, and also convert_map1, and also convert_cube, and also convert_cube_webgl" convert_samples convert_samples
Error   39  error PRJ0019: A tool returned an error code from "Copying ../samples/assets/teapot/shaders/shader0.fx to C:\$o3d_root\o3d\build\Debug/samples/assets/teapot/shaders\shader0.fx"    copy_samples    copy_samples
Error   40  error LGHT0099 : The file with id 'pu.GoogleNpapiDll.dll' and name 'npo3d.dll|npo3dautoplugin.dll' could not be found with source path: 'C:/$o3d_root/o3d/build/Debug/npo3dautoplugin.dll'. c:\$o3d_root\o3d\installer\win\o3d.wxs  76  installer ((o3d)\(installer)\(win)\installer)
Error   41  fatal error LGHT0005: The system cannot find the file specified: C:/$o3d_root/o3d/build/Debug/cactions.dll  light.exe   installer ((o3d)\(installer)\(win)\installer)
Error   42  error PRJ0019: A tool returned an error code from "Linking installer from c:\$o3d_root\o3d\installer\win\o3d.wixobj"    installer   installer ((o3d)\(installer)\(win)\installer)

相关内容