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

问题描述

所以我triing编译翔升在Windows 7上

  • 在我的Adobe C ++库文件,文档和示例从这里%ASL%
  • 我已经下载并编制提升(在其他文件夹%提振%
  • 所以,现在我已经编译升压(所有库)的bjam,VS 2008安装(我有它在的%ProgramFiles(x86)的%
  • 现在我试着运行%ASL%/工具/运行build.bat ,但我得到一些奇怪的线条像

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

更新:所以,我想@vnm's回答(创建一个新的文件夹,并做了一次由他提供的各一个步骤)我忘了解压TBB ...拆包TBB毕竟编译正确=)

不过,有一个问题代表着我 - 如何使生成的结果更干净(我的意思是大公躺进文件夹类似%ASL%\ built_artifacts \ MSVC-10.0 \调试\链接静态\线程,多有你看到 libasl.lib 这是一个相当长的道路进行导航......是有可能得到一个干净的文件夹,比如Adobe /斌/用的东西,如 libasl。 LIB libasl_dev.lib libadobe_widgets.lib 的呢?)

解决方案

我无法生成使用的.bat脚本随海拔的库,可直接使用的bjam的做的工作。

  • 下载并安装Boost库(版本1.45 ),英特尔®TBB库(最新版本),(最后版本)

  • 编译或下载pre-compilled 的bjam ,并把它放在%PATH%

  • 解压缩下载库,磁盘使用一个布局:

\%PROJ_ROOT%
    \ boost_libraries(把ARCHIVE_FILE / boost_1_45_0的内容在这里)
    \ intel_tbb_libraries
    \ platform_release(把APL包中的内容在这里)
    \ adobe_source_libraries(把ASL / source_release包中的内容在这里)

  • 在下一步我们需要修复%PROJ_ROOT%\ platform_release在明年的方式\ jamroot.jam文件项目条目:

 
  项目
   :要求
     $(DARWIN_APL_REQUIREMENTS)
     &其中;包括取代。 #我们要加入这一行,因为编译器
                #找不到包括在编制测试文件
   :默认的构建
     <链接>静
     <线程>多
     < preserve试验靶标gt;在

   :集结目录
      $(TOP)/../ built_artifacts
   ;
 

  • 启动Visual Studio命令提示符

  • 光盘%PROJ_ROOT%\ adobe_source_libraries和调用的bjam

  • 光盘%PROJ_ROOT%\ platform_release和调用的bjam

完成! )

P.S。我有Visual C ++ 2010例preSS,但我认为这个指南应为VS2008工作了。

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

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

解决方案

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.

这篇关于如何编译ASL(基于的Adobe的C ++图形用户界面库升压)在Windows 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 02:35