⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 introae.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: introae.so,v 1.8 2002/10/01 19:38:33 sue Exp $])m4_ref_title(Building m4_db for VxWorks systems,    Building for VxWorks AE, @building for VxWorks AE,    build_vxworks/intro, build_vxworks/notes)m4_p([dnlThe build_vxworks directory in the m4_db distribution contains componentfiles for Tornado 3.1.  The m4_db distribution also contains workspaceand project files for Tornado 2.X.  Seem4_link(M4RELDIR/ref/build_vxworks/intro, Building for VxWorks) forinformation about Tornado 2.0/VxWorks 5.4 and Tornado 2.2/VxWorks 5.5.])The VxWorks AE component files are all within subdirectories, andall component files are named m4_italic(component.wpj).m4_table_begin(, _center)m4_table_header(File, Description)m4_table_element(_left, m4_db/, m4_db component directory)m4_table_element(_left, dbdemo/dbdemo, m4_link(M4RELDIR/ref/build_vxworks/notes, Demo program) component directory)m4_table_element(_left, db_*/db_*, m4_link(M4RELDIR/ref/build_vxworks/notes, Support utilities) component directories)m4_table_endm4_section([Building With Tornado 3.1])m4_p([dnlThis document assumes you already have a workspace set up and youwant to add m4_db as a component in that workspace.  You may includethis component in any domain deemed appropriate for your application.])m4_p([dnlTo add the m4_db component into your workspace, right-click on the"Components" and choose m4_italic(Add existing...).  Enterthe pathname to your m4_db distribution in the formm4_italic(__LT__pathname to your m4_db distribution__GT__)m4_bold(/build_vxworks/m4_db/).You will see m4_bold(component.wpj) listed under the "Files".Choose that filename and click "Ok".  You will now havea m4_db component in your workspace.])m4_p([dnlThere are essentially three options regarding protectiondomains and the m4_db component.  The first option is to addthe m4_db component directly into your application domain.  You maychoose to do this by downloading m4_db into that domain on yourtarget, or by adding the component to the domain itself and it willbe built when the application domain is built.  The disadvantageof this option is that no other application domain will have access tothe m4_db interfaces. ])m4_p([dnlThe second option is to add the m4_db component directly into yourm4_italic(vxKernel) domain.  The advantage is that any applicationusing the m4_db interface would have access to them and no changeswould be necessary to the linkage path.  The disadvantage is thatall m4_db code would run with system privileges. ])m4_p([dnlThe third option is to add a m4_db shared library domain to yoursystem.  Then add or download the m4_db component to that sharedlibrary domain.  The advantage is that all application domainsusing the m4_db interfaces can access a single copy of the libraryrunning in user mode.  The disadvantages are that one mustremember to add the m4_db shared library domain to the linkagepath of every application domain using m4_db and that shared librarydomains may not link against one another, a consideration if theapplication using m4_db is itself a shared library.])m4_p([dnlWe believe the options outlined above are the most common methodsthat the m4_db component will be used.  We believe that the thirdoption, creating a shared library domain, is the most useful option.Ultimately, the responsibility of choosing the correct mechanismfor including the m4_db component into the appropriate domain fallsto the application developer.])m4_p([dnlThe remainder of this document assumes that you already have aVxWorks AE target and a target server, both up and running.  It alsoassumes that your VxWorks AE image is configured properly for yourneeds.  It also assumes that youhave an acceptable file system already available.  Seem4_link(M4RELDIR/ref/build_vxworks/faq, VxWorks FAQ) for moreinformation about file system requirements.])m4_p([dnlTo build m4_db, first, you need to set the build selection.  To dothis, right-click on the m4_db component name and choose them4_italic(Build settings...) selection.  If you look at them4_italic(Active Build Specification) drop down list, you will seeseveral different builds, containing different configurations. ])m4_table_begin(, _center)m4_table_header(Build, Description)m4_table_element(_left, PENTIUM2gnu.debug, PII BSP with debugging)m4_table_element(_left, PENTIUM2gnu.release, PII BSP no debugging)m4_table_endm4_p([dnlYou have to add a new build specification if you use adifferent BSP, want to add a build for the simulator orwant to customize further.  For instance, if you have the Power PC (PPC)BSP, you need to add a new build for the PPC tool chain.  To do so,select the "Add..." button in the m4_italic(Build Settings) window.A new window will appear giving you a list of all the BSPsyou have available from which to choose.For your new build target, you need to decide whether it should be built fordebugging.  See the m4_italic(C/C++ compiler) tab of the Pentiumbuilds for ways toconfigure for each case.  After you add this build, you still needto configure the include directories correctly, as described in thesections that follow.])m4_p([dnlIf you are running with a differentBSP, you should remove the build specifications that do not apply toyour hardware.  We recommend that you do this after you configure anynew build specifications first. ])m4_p([dnlIf you are adding a new build you must set the include directoriescorrectly.  After you have added the new build in the "Build Settings"window, click on the m4_italic(C/C++ compiler) tab.In the edit box, you need to add the pathname of them4_italic(build_vxworks) subdirectory of m4_db, followed by thepathname of m4_db.  You should add these directoriesrelative to the project directory, using the m4_bold(PRJ_DIR)macro, which is the m4_db subdirectory of m4_italic(build_vxworks).Then, click OK.  The typical addition of includedirectories will look like:])m4_indent([-I$(PRJ_DIR)/.. -I$(PRJ_DIR)/../..])m4_p([dnlTo build and download the m4_db downloadable application for the first timerequires several steps: ])m4_nlistbeginm4_nlist([dnlSelect the build you are interested in using the m4_italic(Build Settings)window.  Click OK when done.])m4_nlist([dnlSelect the m4_db component and right-click.  Choose them4_italic(Clean Build) selection.])m4_nlist([dnlSelect the m4_db component and right-click.  Choose them4_italic(Download...) selection.])m4_nlistendm4_p([dnlYou need to repeat this procedure for all builds you are interested inbuilding, as well as for all of the utility project builds you want torun.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -