开发者

how to compile ASL (boost based Adobe C++ gui library) on windows 7?

开发者 https://www.devze.com 2023-03-13 17:44 出处:网络
So I am triing to compile ASL on windows 7. I got Adobe C++ Library files, docs and examples from here to %ASL%

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\threadi开发者_如何学JAVAng-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.

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

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

  • unpack downloaded libraries to disk using next layout:

\%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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号