0

While configuring to work on firebreath plugin in Windows 7, I got errors at this particular command. This configuration is setup on seeing the video on YT.

All other commands where working. I struck on this particular step.

C:\firebreath\TutorialTestPlugin\firebreath>prep2010 . build
Using projects in: "C:\firebreath\TutorialTestPlugin\firebreath"
Generating build files in: "C:\firebreath\TutorialTestPlugin\firebreath\build"
NOTE: The build files in "C:\firebreath\TutorialTestPlugin\firebreath\build" sho
uld *NEVER* be modified directly.
When needed, make project changes in cmake files and re-run this script.
  Project-specific cmake files are found in [plugin dir]\CMakeLists.txt and
  [plugin dir]\Win\projectDef.cmake.
Note that parameters for cmake should be enclosed in double quotes, e.g. "-DVERB
OSE=1"
CMAKE parameters:

C:\firebreath\TutorialTestPlugin\firebreath\build>cmake -G "Visual Studio 10" -D
FB_PROJECTS_DIR="C:\firebreath\TutorialTestPlugin\firebreath"  "C:\firebreath\Tu
torialTestPlugin\firebreath"
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Visual Studio dir: C:/Program Files/Microsoft Visual Studio 10.0
-- Found ATL include dir: C:/WinDDK/7600.16385.1/inc/atl71
-- Found ATL lib dir: C:/WinDDK/7600.16385.1/lib/ATL/i386
-- Found MFC include dir: C:/WinDDK/7600.16385.1/inc/mfc42
-- Balanced size/speed optimization
project dir: C:/firebreath/TutorialTestPlugin/firebreath
C:/firebreath/TutorialTestPlugin/firebreath/addnewlines/ does not seem to be a F
ireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/BSD.html/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/build/ does not seem to be a FireBre
ath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/cmake/ does not seem to be a FireBre
ath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/CMakeLists.txt/ does not seem to be
a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/common.cmd/ does not seem to be a Fi
reBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/common.sh/ does not seem to be a Fir
eBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/Doxyfile/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/doxygen/ does not seem to be a FireB
reath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/examples/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/fbgen/ does not seem to be a FireBre
ath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/fbgen.py/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/fixtabs/ does not seem to be a FireB
reath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/gen_templates/ does not seem to be a
 FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/Installer/ does not seem to be a Fir
eBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/LGPL.html/ does not seem to be a Fir
eBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2005.cmd/ does not seem to be a
FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2008.cmd/ does not seem to be a
FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2008x64.cmd/ does not seem to be
 a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2010.cmd/ does not seem to be a
FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2010x64.cmd/ does not seem to be
 a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2012.cmd/ does not seem to be a
FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2012x64.cmd/ does not seem to be
 a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2013.cmd/ does not seem to be a
FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prep2013x64.cmd/ does not seem to be
 a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prepcodeblocks.sh/ does not seem to
be a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prepeclipse.sh/ does not seem to be
a FireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prepmac.sh/ does not seem to be a Fi
reBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/prepmake.sh/ does not seem to be a F
ireBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/projects/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/README.md/ does not seem to be a Fir
eBreath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/runctags/ does not seem to be a Fire
Breath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/src/ does not seem to be a FireBreat
h Plugin
C:/firebreath/TutorialTestPlugin/firebreath/tests/ does not seem to be a FireBre
ath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/version/ does not seem to be a FireB
reath Plugin
C:/firebreath/TutorialTestPlugin/firebreath/winprep.cmd/ does not seem to be a F
ireBreath Plugin
No projects found in /.
CMake Error at CMakeLists.txt:170 (MESSAGE):
  To build examples, run 'prep<ver> examples'


-- Configuring incomplete, errors occurred!
4

2 回答 2

2

这是因为 prep2010 的第一个参数应该是您的插件项目所在的路径。如果您没有将它们从项目/目录中移动(您应该这样做),那么您可以执行以下任一操作:

C:\firebreath\TutorialTestPlugin\firebreath>prep2010 projects build

或者如果您的插件项目名为“MyTestPlugin”,那么您可以这样做:

C:\firebreath\TutorialTestPlugin\firebreath>prep2010 projects\MyTestPlugin build

如果您有多个项目并且想要一起构建它们,基本上第一个是理想的,因为它将为每个项目使用相同的静态项目构建,这可以加快编译时间。这很少见,所以我最常使用第二种语法。

当然,对我来说,您拥有的目录结构毫无意义。前段时间我写了一篇关于我认为插件项目的最佳结构的博客文章,但这里有一个例子,我可以在你的案例中放置一些东西:

  • C:\plugin_projects\firebreath - FireBreath 代码库
  • C:\plugin_projects\TutorialTestPlugin - 运行 fbgen 后从 \projects 移动
  • C:\plugin_projects\ttp_build - 上述项目的构建目录

然后,您将像这样运行准备脚本:

C:\plugin_projects>firebreath\prep2010 TutorialTestPlugin ttp_build

并且您的一次性构建文件将在 ttp_build 中,您的项目文件在 TutorialTestPlugin 中,并且您的所有 firebreath 文件都在 firebreath 目录中保持不变。

这只是一个例子;你可以随心所欲地做。我经常将 firebreath 添加为 git 子模块,因此我实际运行firebreath\prep2010 . build,但您需要找到您喜欢的内容。

于 2013-08-15T15:29:11.667 回答
0

你可以试试这个

firebreath\prep2012.cmd .. 构建

于 2014-01-31T18:57:49.573 回答