CN102629214A - Method and system for compiling software in Linux system - Google Patents

Method and system for compiling software in Linux system Download PDF

Info

Publication number
CN102629214A
CN102629214A CN2012100503177A CN201210050317A CN102629214A CN 102629214 A CN102629214 A CN 102629214A CN 2012100503177 A CN2012100503177 A CN 2012100503177A CN 201210050317 A CN201210050317 A CN 201210050317A CN 102629214 A CN102629214 A CN 102629214A
Authority
CN
China
Prior art keywords
software
linux system
environment
compiling
flow process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100503177A
Other languages
Chinese (zh)
Inventor
吕万波
刘正伟
文中领
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN2012100503177A priority Critical patent/CN102629214A/en
Publication of CN102629214A publication Critical patent/CN102629214A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and system for compiling software in a Linux system. The method includes the steps that a flow for constructing a compiling environment needed during compilation of software is initiated in the Linux system; after the Linux system satisfies the requirements for environmental information needed during compilation of the software, a Makefile of the software in the Linux system is generated; and the Makefile is adopted, the compilation flow of the software is executed.

Description

The method and system of composing software in the linux system
Technical field
The present invention relates to computer application field, relate in particular to a kind of in linux system the method and system of composing software.
Background technology
Current, the development of software automation is more and more rapider, and the scheme of various software automations emerges in an endless stream.Impel the robotization of software, the development of the leap that intellectuality obtains.The appearance of various robotization compilation tools makes the software automation compiling become a kind of possibility.Developer's program compiler has not only been saved in the robotization compiling and the installation of software, and can improve the range of application of software.
In the prior art, the method for composing software is specific as follows in the linux system:
Before compiling and this software being installed; Earlier the translation and compiling environment in the operating system is detected; Specifically, the requirement with the translation and compiling environment of this running software compares with the current translation and compiling environment that provides of this operating system one by one exactly, after satisfying full terms, carries out the software translating flow process again.
With regard to said method, the tester often can not accomplish the compiling flow process of software under the situation of the structure of not understanding software and audit framework.Therefore, a kind of new software translating method need be provided at present.
Summary of the invention
The present invention provides the method and system of composing software in a kind of linux system, and the technical matters that solve is how to improve the compiling complexity of software.
For solving the problems of the technologies described above, the invention provides following technical scheme:
The method of composing software in a kind of linux system comprises:
Initiate the flow process build the required translation and compiling environment of software translating at linux system;
Satisfy this software after compile time needed environmental information at said linux system, generate the Makefile file of this software in said linux system;
Adopt said Makefile file, carry out the compiling flow process of said software.
Preferably, said method also has following characteristics: said flow process of building the required translation and compiling environment of software translating in the linux system initiation comprises:
Obtain software in needed standard environment information of compile time;
With this standard environment information is benchmark, and linux system is carried out environment measuring, obtains the object information whether said linux system can provide this software translating environment;
Can not provide this software needed translation and compiling environment if object information is a linux system,, initiate the flow process of in said linux system, building the needed translation and compiling environment of this software then according to said standard environment information.
The system of composing software in a kind of linux system comprises:
Treating apparatus is used for the flow process of building the required translation and compiling environment of software translating in the linux system initiation;
Generating apparatus links to each other with said treating apparatus, is used for satisfying this software after compile time needed environmental information at said linux system, generates the Makefile file of this software in said linux system;
Actuating unit links to each other with said generating apparatus, is used to adopt said Makefile file, carries out the compiling flow process of said software.
Preferably, said system also has following characteristics: said treating apparatus comprises:
Acquisition module is used to obtain software in needed standard environment information of compile time;
Detection module links to each other with said acquisition module, and being used for this standard environment information is benchmark, and linux system is carried out environment measuring, obtains the object information whether said linux system can provide this software translating environment;
Build module; Link to each other with said detection module; If be used for object information is that linux system can not provide this software needed translation and compiling environment, then according to said standard environment information, initiates the flow process of in said linux system, building the needed translation and compiling environment of this software.
Compared with prior art; The technical scheme that the embodiment of the invention provides; Under different environment, accomplish the robotization of the compiling installation process of software; Save complexity and usable range that software translating is installed, accomplish the compiling and the installation of software under the structure that need not understand software and the situation of audit framework.
Description of drawings
Fig. 1 is the schematic flow sheet of the method embodiment of composing software in the linux system provided by the invention;
Fig. 2 is the structural representation of the system embodiment of composing software in the linux system provided by the invention;
Fig. 3 is the structural representation of treating apparatus 201 described in the system shown in Figure 2.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment that the present invention is made further detailed description below.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Fig. 1 is the schematic flow sheet of the method embodiment of composing software in the linux system provided by the invention.Method embodiment shown in Figure 1 comprises:
Step 101, initiate the flow process build the required translation and compiling environment of software translating at linux system;
Step 102, satisfy this software after compile time needed environmental information, generate the Makefile file of this software in said linux system at said linux system;
Step 103, adopt said Makefile file, carry out the compiling flow process of said software.
In said method, at first accomplish the preliminary work of Local System Environment, compilation tool.In the compilation process of the software of this step under linux compile error will not appear if having.Under the general situation, most of software application configure accomplish basic testing environment, but to be the detection problem do not accomplish building of translation and compiling environment for it.To build be that the prerequisite of main software translating also is the basis of other parts in the robotization of software translating environment in this part.Wherein used the contrast problem of standard software translation and compiling environment, the process that downloads and installs of outfit.Then, accomplish the generation work of the Makefile of software under the linux.In this part, embodied the application of linux software automation instrument fully.On the basis in first this part, accomplish the generation of Makefile, so just equal the Makefile that under the translation and compiling environment of standard, generates.Third part is accomplished the compiling of software and is installed.In this process, generate executable program, the user can set the path of installation as required.The realization of a kind of robotization Compilation Method of software is a kind of method of the robotization compiling installation of the automation tools completion software under a kind of linux of comprehensive utilization under the Linux.
Its main advantage is under different environment to accomplish the robotization of the compiling installation process of software, saves complexity and usable range that software translating is installed, accomplishes the compiling and the installation of software under the structure that need not understand software and the situation of audit framework.
Do further introduction in the face of method embodiment provided by the invention down:
Step 201, obtain software in needed standard environment information of compile time;
Step 202, be benchmark, linux system is carried out environment measuring, obtain the object information whether said linux system can provide this software translating environment with this standard environment information;
Can not provide this software needed translation and compiling environment if step 203 object information is a linux system,, initiate the flow process of in said linux system, building the needed translation and compiling environment of this software then according to said standard environment information;
Certainly,, comparative result can provide this software needed translation and compiling environment, then direct execution in step 204 if being linux system.
Step 204, satisfy this software after compile time needed environmental information, generate the Makefile file of this software in linux system at said linux system;
Wherein, in this step, can use instrument such as Autoconf to generate the Makefile that meets local demand according to the translation and compiling environment information of preceding text.
Step 205, adopt said Makefile file, carry out the compiling flow process of said software.
Need to prove that above-mentioned flow process can adopt the mode of shell script to accomplish each process.
Method embodiment provided by the invention is not knowing whether the native compile environment meets the robotization compiling of accomplishing software under the standard conditions of compiling and install.
Fig. 2 is the structural representation of the system embodiment of composing software in the linux system provided by the invention.In conjunction with the method embodiment shown in the preceding text, system shown in Figure 2 embodiment comprises:
Treating apparatus 201 is used for the flow process of building the required translation and compiling environment of software translating in the linux system initiation;
Generating apparatus 202 links to each other with said treating apparatus 201, is used for satisfying this software after compile time needed environmental information at said linux system, generates the Makefile file of this software in said linux system;
Actuating unit 203 links to each other with said generating apparatus 202, is used to adopt said Makefile file, carries out the compiling flow process of said software.
Fig. 3 is the structural representation of treating apparatus 201 described in the system shown in Figure 2.Treating apparatus 201 shown in Figure 3 comprises:
Acquisition module 301 is used to obtain software in needed standard environment information of compile time;
Detection module 302 links to each other with said acquisition module 301, and being used for this standard environment information is benchmark, and linux system is carried out environment measuring, obtains the object information whether said linux system can provide this software translating environment;
Build module 303; Link to each other with said detection module 302; If be used for object information is that linux system can not provide this software needed translation and compiling environment, then according to said standard environment information, initiates the flow process of in said linux system, building the needed translation and compiling environment of this software.
Compared with prior art; The technical scheme that the embodiment of the invention provides; Under different environment, accomplish the robotization of the compiling installation process of software; Save complexity and usable range that software translating is installed, accomplish the compiling and the installation of software under the structure that need not understand software and the situation of audit framework.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection domain of claim.

Claims (4)

1. the method for composing software in the linux system is characterized in that, comprising:
Initiate the flow process build the required translation and compiling environment of software translating at linux system;
Satisfy this software after compile time needed environmental information at said linux system, generate the Makefile file of this software in said linux system;
Adopt said Makefile file, carry out the compiling flow process of said software.
2. method according to claim 1 is characterized in that, said flow process of building the required translation and compiling environment of software translating in the linux system initiation comprises:
Obtain software in needed standard environment information of compile time;
With this standard environment information is benchmark, and linux system is carried out environment measuring, obtains the object information whether said linux system can provide this software translating environment;
Can not provide this software needed translation and compiling environment if object information is a linux system,, initiate the flow process of in said linux system, building the needed translation and compiling environment of this software then according to said standard environment information.
3. the system of composing software in the linux system is characterized in that, comprising:
Treating apparatus is used for the flow process of building the required translation and compiling environment of software translating in the linux system initiation;
Generating apparatus links to each other with said treating apparatus, is used for satisfying this software after compile time needed environmental information at said linux system, generates the Makefile file of this software in said linux system;
Actuating unit links to each other with said generating apparatus, is used to adopt said Makefile file, carries out the compiling flow process of said software.
4. system according to claim 3 is characterized in that, said treating apparatus comprises:
Acquisition module is used to obtain software in needed standard environment information of compile time;
Detection module links to each other with said acquisition module, and being used for this standard environment information is benchmark, and linux system is carried out environment measuring, obtains the object information whether said linux system can provide this software translating environment;
Build module; Link to each other with said detection module; If be used for object information is that linux system can not provide this software needed translation and compiling environment, then according to said standard environment information, initiates the flow process of in said linux system, building the needed translation and compiling environment of this software.
CN2012100503177A 2012-02-29 2012-02-29 Method and system for compiling software in Linux system Pending CN102629214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100503177A CN102629214A (en) 2012-02-29 2012-02-29 Method and system for compiling software in Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100503177A CN102629214A (en) 2012-02-29 2012-02-29 Method and system for compiling software in Linux system

Publications (1)

Publication Number Publication Date
CN102629214A true CN102629214A (en) 2012-08-08

Family

ID=46587474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100503177A Pending CN102629214A (en) 2012-02-29 2012-02-29 Method and system for compiling software in Linux system

Country Status (1)

Country Link
CN (1) CN102629214A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279356A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Automatic generation method and device for makefile
CN105893104A (en) * 2016-03-28 2016-08-24 乐视控股(北京)有限公司 Code compiling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266810B2 (en) * 2002-04-09 2007-09-04 Hewlett-Packard Development Company, Lp. Runtime profiling of platform-independent software applications
CN101667134A (en) * 2009-09-23 2010-03-10 中兴通讯股份有限公司 Method for constructing compiling system, compiling system and constructing device thereof
CN101681265A (en) * 2007-06-08 2010-03-24 奥多比公司 Combined application and execution environment install

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266810B2 (en) * 2002-04-09 2007-09-04 Hewlett-Packard Development Company, Lp. Runtime profiling of platform-independent software applications
CN101681265A (en) * 2007-06-08 2010-03-24 奥多比公司 Combined application and execution environment install
CN101667134A (en) * 2009-09-23 2010-03-10 中兴通讯股份有限公司 Method for constructing compiling system, compiling system and constructing device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279356A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Automatic generation method and device for makefile
CN103279356B (en) * 2013-06-04 2019-01-25 百度在线网络技术(北京)有限公司 The automatic generation method and device of Makefile file
CN105893104A (en) * 2016-03-28 2016-08-24 乐视控股(北京)有限公司 Code compiling method and device

Similar Documents

Publication Publication Date Title
CN106371813B (en) A kind of electric vehicle motor controller method for producing software based on Simulink
CN106933609B (en) Android application program installation package generation method and device
Reimann et al. A tool-supported quality smell catalogue for android developers
US9086899B2 (en) Loading and debugging method and debugging system thereof
CN104102574B (en) Applied program testing method and device
CN108647037A (en) Automatically dispose method and system based on shell scripts
CN103927256A (en) Method for controlling multiple Android devices
CN104246702A (en) Workflow compilation
CN103699385A (en) Continuous code integration method
CN103513966A (en) PHP developing framework based on assemblies
CN102968371A (en) Method and device for testing JAVA API unit component
CN106502713A (en) A kind of method for upgrading software and system
CN106484452B (en) unified configuration management method and device for software platform
CN103645935B (en) Device and method for adjusting JVM (java virtual machine) parameters in domestic environment
CN103645888A (en) System and method for automatically building operation system
US20080127061A1 (en) Method and system for editing code
CN102629214A (en) Method and system for compiling software in Linux system
CN102902526A (en) Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN103092747A (en) Controlling program verifying and testing method and system thereof
CN105893104A (en) Code compiling method and device
CN103677907A (en) Installation method and installation device for environmental forecast type application components
CN103631585A (en) Method and system for developing application program
CN108121658B (en) Method for testing LINUX end tested software based on WINDOWS end testing tool
CN104111863B (en) Method and system for managing virtual machines in different virtual platforms
CN105335213A (en) Method for realizing simulation report automatic generation through embedding Modelica model in Word file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120808