如何编译ASL(基于的Adobe的C ++图形用户界面库升压)在Windows 7? [英] how to compile ASL (boost based Adobe C++ gui library) on windows 7?

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

问题描述

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

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

      

    找到编译器在C:\ Program Files文件(x86)的\微软的Visual Studio 9.0 \ VC \

         

    有关使用Microsoft Visual Studio 2008的x86工具设置环境。   在文件名Sintax错误   无法找到C:\ Users \用户阿维斯塔\下载\ asl_1.0.43(1)\ source_release \工具* .OBJ

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

更新: 所以,我想<一href="http://stackoverflow.com/questions/6397501/how-to-compile-asl-boost-based-adobe-c-gui-library-on-windows-7/6418957#6418957">@vnm's回答(创建一个新的文件夹,并做了一次由他提供的各一个步骤)我忘了解压TBB ...拆包TBB毕竟编译正确=)

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

解决方案

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

\%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)
     &其中;包括取代。 #我们要加入这一行,因为编译器
                #找不到包括在编制测试文件
   :默认的构建
     &LT;链接&GT;静
     &LT;线程&GT;多
     &LT; 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

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

解决方案

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆