executable file execution efficiency can be improved, but the compilation, connection speed is correspondingly slower. -o2, better than-O to optimize the compilation, connection, of course, the entire compilation, the connection process will be slower.-idirname, adding the directory indicated by DirName to the program header file directory list is the parameter used during the precompilation process.Vi. installation method of GCCOperating environment: VMware? Workstation 7.1.2 build-301548Linux
access permission.
After creating a device object, you must use SetCooperativeLevel () of IDirectSound8 to set the cooperation permission. Otherwise, you will not be able to hear the sound. SetCooperativeLevel () is defined as follows:
HRESULT SetCooperativeLevel( HWND hwnd, DWORD dwLevel)
The parameters are described as follows:
Hwnd: application window handle.
DwLevel: the following levels are supported.
DSSCL_EXCLUSIVE: same role as DSSCL_PRIORITY.
DSSCL_NORMAL: the normal coordination leve
I. Introduction
As a popular open-source player with K-lite codec abroad, the play tools such as fantasy audio and video, ghost decoding, and perfect Decoding in China are all bundled with the MPC player program. In addition, player programs such as storm and kmplayer have more or less referenced and used the functions and code in the MPC. The open-source program of MPC
@rekfan.com opt]# rpm-ivhkernel-headers-2.6.18-194.el5.i386.rpm[Root@rekfan.com opt]# rpm-ivhglibc-headers-2.5-49.i386.rpm[Root@rekfan.com opt]# rpm-ivhglibc-devel-2.5-49.i386.rpm[Root@rekfan.com opt]# rpm-ivhlibgomp-4.4.0-6.el5.i386.rpm[Root@rekfan.com opt]# rpm-ivhgcc-4.1.2-48.el5.i386.rpm
Repeat step 5 for a new error, and here is a partial error code. If there are no errors, skip directly to step 7!----------------------------------------------------------------------------------Configure:er
Recently due to reasons of demand, need to upgrade the current gcc-4.4.4 to gcc-4.6.1, considering there are multiple reasons, made a script Automatic Installation combined with batch tool distribution.
I. installation environmentSystem Version: centos6.0X64GCC version: gcc-4.4.4New GCC: gcc-4.6.1
Ii. Formal Installation1. download and install the source code:
The following package needs to be downloaded: gcc-4.6.1.tar.bz2 gmp-4.3.2.tar.bz2 mpc-0
is better than ALSA in terms of hardware adaptation, and it supports more sound card categories. Although ALSA is not widely used as OSS, it has more friendly programming interfaces and is fully compatible with OSS. It is undoubtedly a better choice for application programmers.
Iii. Linux OSS audio device driver
3.1 composition of OSS driver
The OSS standard has two basic audio devices: mixer and DSP ).
In the sound card hardware circuit,
project maintained by volunteers, while OSS is a commercial product provided by the company, so the degree of adaptation to the hardware is better than ALSA, and it can support more types of sound cards. Alsa, although not as widely used as OSS, but has a more friendly programming interface, and fully compatible with OSS, is undoubtedly a better choice for application programmers.Third, Linux OSS audio device driver3.1 OSS-driven componentsThe OSS standard has 2 most basic audio Devices:mixer(
Install GCC first need GMP, MPFR, MPC these three libraries, can download the corresponding compression package from ftp://gcc.gnu.org/pub/gcc/infrastructure/. Because MPFR rely on GMP, and the MPC relies on GMP and MPFR, so first install GMP, followed by MPFR, the final is the MPC. The three libraries I use here are gmp4.3.2,mpfr2.4.2 and mpc0.8.1 respectively.
compilation and connection process will be slower.-Idirname: add the directory specified by dirname to the program header file directory list, which is a parameter used during the pre-compilation process.
Vi. GCC Installation Method
Running Environment: VMware Workstation 7.1.2 build-301548Linux: Red Hat Enterprise Linux 5.5Kernel version: Linux kernel 2.6.18-194. EL5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux
Note: Due to WordPress escape, the following -- translated as-
Reprint Please note: @ small Wuyi http://www.cnblogs.com/xiaowuyi
Pygame. mixer is a module used to process sound and its meaning is "mixer ". In the game, the processing of sound generally includes two parts: making sound and playing sound. Here, only the playing sound is learned.1. Start and initialize pygame. MixerPygame. mixer. INIT (): Initialize mixer.Pro
L download ALSA-utils and ALSA-Lib in the same version.
Http://www.alsa-project.org/main/index.php/Download
L compile ALSA-lib
./Configure -- Host = arm-None-Linux-gnueabi -- disable-Python -- prefix =/usr/share/ARM-ALSA/
If the following error message is displayed, -- disable-pyhont
Collect2: LD returned 1 exit status
Make [3]: *** [smixer-python.la] Error 1
Make [3]: Leaving directory '/home/Enzo/work/tq2440/ALSA/alsa-lib-1.0.26/
Modules/mixer/sim
Recently due to reasons of demand, need to upgrade the current gcc-4.4.4 to gcc-4.6.1, considering there are multiple reasons, made a script automatic installation combined with batch tool distribution. I. installation environment version: centos6.0X64 original GCC version: gcc-4.4.4 new GCC version: gcc-4.6.1 II, formal installation 1, download the installation of source code: the following need to download the following package: gcc-4.6.1.t
Recently due to reasons of demand, need to upgrade th
Recently due to reasons of demand, need to upgrade the current gcc-4.4.4 to gcc-4.6.1, considering there are multiple reasons, made a script automatic installation combined with batch tool distribution. I. installation environment version: centos6.0X64 original GCC version: gcc-4.4.4 new GCC version: gcc-4.6.1 II, formal installation 1, download the installation of source code: the following need to download the following package: gcc-4.6.1.tar.bz2gmp-4.3.2.tar.bz2mpc-0.8.1.tar.g
Recently due to
--->libgomp--->gccRepeat step 3, and there are related errors:-------------------------------------------------------------------------------------------------Configure:error:Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.Try the--WITH-GMP,--WITH-MPFR and/or--WITH-MPC options to specifytheir locations.-----------------------------------------------------------------------------------------------
--->headers--->glibc--->headers--->glibc--->devel--->libgomp--->gcc
Repeat step 3, and the related error occurs:
-------------------------------------------------------------------------------------------------Configure:error:Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.Try the--WITH-GMP,--WITH-MPFR and/or--WITH-MPC options to specifytheir locations.--------------------------------------------
Just GCC 7.1 also came out, want to use the familiar Linux under test, special record as follows:Prepare the necessary system environment: (Upgrade the system to the latest, install the necessary tools)Pacman-syyu #升级系统到最新Pacman-q GCC gawk M4 binutils lzip #查看必备工具是否具备, no on installation, my missing lzip, after installation, resultsGCC 6.3.1-2Gawk 4.1.4-2M4 1.4.18-1Binutils 2.28.0-2Lzip 1.19-1mkdir gcc_builder_7.1 CD gcc_builder_7.1# download three required libraries GMP, MPFR,
Tags: CentOS 6.3 upgrade GCC and GDBFirst, installation environmentSystem version: centos6.3 X64Original GCC version: gcc-4.4.7New GCC version: gcc-4.8.3Original GDB version: Gdb-7.2-75.el6New GDB version: gdb-7.6.1Second, the official installation1. Download and install the source code:You need to download the following packages: gdb-7.6.1 gcc-4.6.1.tar.bz2 gmp-4.3.2.tar.bz2 mpc-0.8.1.tar.gz mpfr-2.4.2.tar.bz2wget ftp://gcc.gnu.org/pub/gcc/infrastruc
Since the GCC version required by PHP7 in the compilation process is relatively high, and the GCC version in Wdlinux does not meet the PHP7 compilation requirements, the GCC compilation process is here.
Actually in the process of compiling GCC encountered a lot of pits, this article is used to record the entire process to install gcc download
First come here to find a new version of the GCC source code, you can go to the GCC official website to find the address, here Use this address download, m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.