Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
730 views
in Technique[技术] by (71.8m points)

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

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.0VC

    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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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

  • In next step we need to fix %PROJ_ROOT%platform_releasejamroot.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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...