如何在 Windows 7 上编译 ASL(基于 boost 的 Adob​​e C++ gui 库)?

发布于 2024-11-16 05:39:39 字数 1281 浏览 2 评论 0原文

所以我尝试在 Windows 7 上编译 ASL

  • 我得到 Adobe C++ 库文件、文档和示例从此处%ASL%
  • 我有下载并编译boost(在其他文件夹%boost%
  • 所以现在我已经编译了Boost(所有库),bjam,VS 2008安装(我有它在%ProgramFiles(x86)% code>)
  • 现在我尝试运行 %ASL%/tools/build.bat 但我得到了一些奇怪的行,例如

    <块引用>

    在 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ 找到编译器

    设置使用Microsoft Visual Studio 2008 x86 工具的环境。 文件名语法错误 找不到 C:\Users\Avesta\Downloads\asl_1.0.43 (1)\source_release\tools*.obj

我该怎么办?如何在Windows 7上编译ASL?

更新: 所以我尝试了 @vnm的回答(创建了一个新文件夹并一次完成他提供的每个步骤)我忘记解压TBB......解压TBB后全部编译正确=)

但有一个问题代表我 - 如何使构建结果更干净(我的意思是放入像 %ASL%\built_artifacts\msvc-10.0\debug\link-static\threading-multi 这样的文件夹中,然后你就可以了请参阅 libasl.lib,这是一条相当长的导航路径...是否有可能获得一个像 adobe/bin/ 这样的干净文件夹,其中包含诸如 libasl.lib 之类的内容,其中的 libasl_dev.liblibadobe_widgets.lib

So I am triing to compile ASL on windows 7.

  • I got Adobe C++ Library files, docs and examples from here to %ASL%
  • I have downloaded and compiled boost (in some other folder %boost%)
  • So now I have compiled Boost (all libs), bjam, VS 2008 installed (I have it in %ProgramFiles(x86)%)
  • Now I try to run %ASL%/tools/build.bat but I get some strange lines like

    Found compiler at C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\

    Setting environment for using Microsoft Visual Studio 2008 x86 tools.
    Sintax error in filename
    Can not find C:\Users\Avesta\Downloads\asl_1.0.43 (1)\source_release\tools*.obj

What shall I do? How to compile ASL on windows 7?

Update:
So I tried @vnm's answer (created a new folder and done each step provided by him one at a time) I forgot to unpack TBB... after unpacking TBB all compiled correctly=)

But one question stands for me - how to make results of build more clean (I mean thay lay into folder like %ASL%\built_artifacts\msvc-10.0\debug\link-static\threading-multi and there you see libasl.lib it is quite a long path to navigate... is it possible to get one clean folder like adobe/bin/ with stuff like libasl.lib, libasl_dev.lib and libadobe_widgets.lib in it? )

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

新一帅帅 2024-11-23 05:39:39

我无法使用库附带的 .bat 脚本构建 asl,
但直接使用 bjam 就可以了。

<代码>

\%PROJ_ROOT%
    \boost_libraries (put contents of archive_file/boost_1_45_0 here)
    \intel_tbb_libraries
    \platform_release (put contents of apl archive here)
    \adobe_source_libraries (put contents of asl/source_release archive here)

  • 在下一步中,我们需要通过以下方式修复 %PROJ_ROOT%\platform_release\jamroot.jam 文件项目条目:

  project
   : requirements
     $(DARWIN_APL_REQUIREMENTS)
     <include>. # we should add this line because compiler 
                # can't find include files during compiling tests
   : default-build
     <link>static
     <threading>multi
     <preserve-test-targets>on

   : build-dir
      $(TOP)/../built_artifacts
   ;
  • 启动 Visual Studio 命令提示符

  • cd 到 %PROJ_ROOT%\adobe_source_libraries并调用 bjam

  • cd 至%PROJ_ROOT%\platform_release 并调用 bjam

完成! )

PS 我有 Visual C++ 2010 Express,但我认为本指南也适用于 VS2008。

I was unable to build asl using .bat script shipped with library,
but direct using of bjam did the job.

\%PROJ_ROOT%
    \boost_libraries (put contents of archive_file/boost_1_45_0 here)
    \intel_tbb_libraries
    \platform_release (put contents of apl archive here)
    \adobe_source_libraries (put contents of asl/source_release archive here)

  • In next step we need to fix %PROJ_ROOT%\platform_release\jamroot.jam file project entry in next way:

  project
   : requirements
     $(DARWIN_APL_REQUIREMENTS)
     <include>. # we should add this line because compiler 
                # can't find include files during compiling tests
   : default-build
     <link>static
     <threading>multi
     <preserve-test-targets>on

   : build-dir
      $(TOP)/../built_artifacts
   ;
  • start Visual Studio Command Prompt

  • cd to %PROJ_ROOT%\adobe_source_libraries and invoke bjam

  • cd to %PROJ_ROOT%\platform_release and invoke bjam

Done ! )

P.S. I have Visual C++ 2010 Express, but I think that this guide should work for VS2008 too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文