Disclosed are a method and an apparatus for constructing a cross-platform
software running environment. The method comprises: establishing an entrance of a cross-platform
software running environment with a binary boot file; starting a decompression module, and executing a
decompression operation on a core compilation and interpretation and
graphics environment module; executing a
decompression operation on a cross-platform visual
software installation module; invoking the decompression module, and executing a
decompression operation on a
platform independent module and a multi-platform sharing module; executing a decompression operation on an extended compilation and interpretation and
graphics environment module; and setting an
environment variable of software installation
package running according to difference among different
system platforms, starting a visual software installation
package interface, and executing visual installation of a cross-platform software installation
package according to the visual software installation package interface. In the present invention, the use of a cross-platform software installation package facilitates reduction of the size of the software installation package and reduction of the capacity demand for a device storage module.