本文介绍了如何在 Windows 7 上编译 ASL(基于 boost 的 Adob​​e C++ gui 库)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So I am triing to compile ASL on windows 7.

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

  • 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

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

使用 Microsoft Visual Studio 2008 x86 工具的设置环境.文件名中的语法错误找不到 C:UsersAvestaDownloadsasl_1.0.43 (1)source_releaseools*.obj

Setting environment for using Microsoft Visual Studio 2008 x86 tools. Sintax error in filename Can not find C:UsersAvestaDownloadsasl_1.0.43 (1)source_releaseools*.obj

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

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

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

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=)

但有一个问题代表我 - 如何使构建结果更干净(我的意思是将它们放入像 %ASL%uilt_artifactsmsvc-10.0debuglink-statichreading-multi 这样的文件夹中,然后你会看到 libasl.lib 这是一条很长的导航路径......是否有可能获得一个干净的文件夹,比如 adobe/bin/和 libasl.lib, 之类的东西libasl_dev.liblibadobe_widgets.lib 在里面?)

But one question stands for me - how to make results of build more clean (I mean thay lay into folder like %ASL%uilt_artifactsmsvc-10.0debuglink-statichreading-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? )

推荐答案

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

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

  • download and install boost libraries (version 1.45),intel tbb libraries (last version), apl and asl (last versions)

编译或下载预编译 bjam 并将其放在 %PATH%

compile or download pre-compilled bjam and put it on %PATH%

使用下一个布局将下载的库解压到磁盘:

unpack downloaded libraries to disk using next layout:


\%PROJ_ROOT%
    oost_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_releasejamroot.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 命令提示符

    • start Visual Studio Command Prompt

      cd 到 %PROJ_ROOT%adobe_source_libraries 并调用 bjam

      cd to %PROJ_ROOT%adobe_source_libraries and invoke bjam

      cd 到 %PROJ_ROOT%platform_release 并调用 bjam

      cd to %PROJ_ROOT%platform_release and invoke bjam

      完成!)

      附言我有 Visual C++ 2010 Express,但我认为本指南也适用于 VS2008.

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

      这篇关于如何在 Windows 7 上编译 ASL(基于 boost 的 Adob​​e C++ gui 库)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 00:59