1.CMakeLists.txt           SET(LIBTYPE SHARED) 改成 SET(LIBTYPE STATIC)
2.include/al/al.h 删除 dllexport
3.include/al/alc.h 删除 dllexport
4.alc/bs2b.c bs2b_set_level 改成 bs2b_set_level2 ...
5.OpenAL32/Include/bs2b.h bs2b_set_level 改成 bs2b_set_level2 ... 修改 openal/bs2b 是为了避免静态编译时与原来的 bs2b 发生冲突 --- CMakeLists.txt.orig 2011-02-16 04:05:40 +0800
+++ CMakeLists.txt 2016-03-23 08:23:05 +0800
@@ -51,7 +51,7 @@
ENDIF() IF(NOT LIBTYPE)
- SET(LIBTYPE SHARED)
+ SET(LIBTYPE STATIC)
ENDIF() SET(LIB_MAJOR_VERSION "1") --- include/al/al.h.orig 2010-11-29 07:09:04 +0800
+++ include/al/al.h 2016-03-23 10:09:22 +0800
@@ -5,20 +5,12 @@
extern "C" {
#endif -#if defined(AL_LIBTYPE_STATIC)
- #define AL_API
-#elif defined(_WIN32) && !defined(_XBOX)
- #if defined(AL_BUILD_LIBRARY)
- #define AL_API __declspec(dllexport)
- #else
- #define AL_API __declspec(dllimport)
- #endif
-#else
- #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
- #define AL_API __attribute__((visibility("protected")))
- #else
- #define AL_API extern
- #endif
+#ifndef AL_API
+ #if defined (AL_BUILD_LIBRARY)
+ #define AL_API __attribute__((visibility ("default")))
+ #else
+ #define AL_API
+ #endif
#endif #if defined(_WIN32) --- include/al/alc.h.orig 2010-11-29 06:51:15 +0800
+++ include/al/alc.h 2016-03-23 10:09:51 +0800
@@ -5,20 +5,12 @@
extern "C" {
#endif -#if defined(AL_LIBTYPE_STATIC)
- #define ALC_API
-#elif defined(_WIN32) && !defined(_XBOX)
- #if defined(AL_BUILD_LIBRARY)
- #define ALC_API __declspec(dllexport)
- #else
- #define ALC_API __declspec(dllimport)
- #endif
-#else
- #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
- #define ALC_API __attribute__((visibility("protected")))
- #else
- #define ALC_API extern
- #endif
+#ifndef ALC_API
+ #if defined (AL_BUILD_LIBRARY)
+ #define ALC_API __attribute__((visibility ("default")))
+ #else
+ #define ALC_API
+ #endif
#endif #if defined(_WIN32) --- alc/bs2b.c.orig 2010-03-19 05:22:27 +0800
+++ alc/bs2b.c 2016-03-23 10:04:14 +0800
@@ -122 +122 @@
-void bs2b_set_level(struct bs2b *bs2b, int level)
+void bs2b_set_level2(struct bs2b *bs2b, int level)
@@ -130 +130 @@
-int bs2b_get_level(struct bs2b *bs2b)
+int bs2b_get_level2(struct bs2b *bs2b)
@@ -135 +135 @@
-void bs2b_set_srate(struct bs2b *bs2b, int srate)
+void bs2b_set_srate2(struct bs2b *bs2b, int srate)
@@ -143 +143 @@
-int bs2b_get_srate(struct bs2b *bs2b)
+int bs2b_get_srate2(struct bs2b *bs2b)
@@ -148 +148 @@
-void bs2b_clear(struct bs2b *bs2b)
+void bs2b_clear2(struct bs2b *bs2b)
@@ -158 +158 @@
-int bs2b_is_clear(struct bs2b *bs2b)
+int bs2b_is_clear2(struct bs2b *bs2b)
@@ -170 +170 @@
-void bs2b_cross_feed(struct bs2b *bs2b, float *sample)
+void bs2b_cross_feed2(struct bs2b *bs2b, float *sample) --- OpenAL32/Include/bs2b.h.orig 2010-03-19 05:22:40 +0800
+++ OpenAL32/Include/bs2b.h 2016-03-23 07:21:38 +0800
@@ -78 +78 @@
-void bs2b_set_level(struct bs2b *bs2b, int level);
+void bs2b_set_level2(struct bs2b *bs2b, int level);
@@ -81 +81 @@
-int bs2b_get_level(struct bs2b *bs2b);
+int bs2b_get_level2(struct bs2b *bs2b);
@@ -86 +86 @@
-void bs2b_set_srate(struct bs2b *bs2b, int srate);
+void bs2b_set_srate2(struct bs2b *bs2b, int srate);
@@ -89 +89 @@
-int bs2b_get_srate(struct bs2b *bs2b);
+int bs2b_get_srate2(struct bs2b *bs2b);
@@ -92 +92 @@
-void bs2b_clear(struct bs2b *bs2b);
+void bs2b_clear2(struct bs2b *bs2b);
@@ -95 +95 @@
-int bs2b_is_clear(struct bs2b *bs2b);
+int bs2b_is_clear2(struct bs2b *bs2b);
@@ -103 +103 @@
-void bs2b_cross_feed(struct bs2b *bs2b, float *sample);
+void bs2b_cross_feed2(struct bs2b *bs2b, float *sample);

openal-1.13 静态编译(mingw32)的更多相关文章

  1. Ubuntu16.04下编译OpenCV2.4.13静态库(.a文件)

    Ubuntu16.04下编译OpenCV2.4.13静态库(.a文件) https://blog.csdn.net/woainishifu/article/details/79712110 我们在做项 ...

  2. mingw32环境上静态编译 dav1d 0.4.0

    2019-08-05 发布 dav1d 0.4.0 dav1d 'Cheetah', the fast and small AV1 decoder This is the fourth major r ...

  3. 记录下 QT Linux 静态编译遇到的坑

    Qt下静态编译Qt,根据我的经验,如果按照Windows下那种直接拿官方sdk安装之后的文件来编译是行不通的,需要直接下载Qt的source包,目前诺基亚的源码叫做qt-everywhere-open ...

  4. Linux下快速静态编译Qt以及Qt动态/静态版本共存

    Qt下静态编译Qt,根据我的经验,如果按照Windows下那种直接拿官方sdk安装之后的文件来编译是行不通的,需要直接下载Qt的source包,目前诺基亚的源码叫做qt-everywhere-open ...

  5. SpiderMonkey js引擎的静态编译与使用, SpiderMonkey的使用

    SpiderMonkey js引擎的静态编译与使用 2017年10月02日 02:51:22 yaolixing01 阅读数:536   原文出处: http://yaolixing.oltag.co ...

  6. Linux下快速静态编译Qt以及Qt动态/静态版本共存(提供了编译4.6,5.6的精通编译脚本,并且apt-get install 需要的库也全列出来了。还有分析问题的心理过程)good

    qt4.6 Linux./configure -static -release -confirm-license -opensource -qt-zlib -qt-libpng -qt-libjpeg ...

  7. 静态编译 Qt 5.6

    源码下载 Qt git地址:git://code.qt.io/qt/qt5.git 推荐用 SourceTree 客户端来克隆源码 准备工作 系统 Windows 7 或者 Windows 10 编译 ...

  8. 用mingw静态编译Qt4.8.2和Qt5.1.1(需要修改不少源码)

    因为一些乱七八糟的原因,我需要用mingw静态编译Qt4.8.2和Qt5.1.1.经历了一天的折腾之后,自觉编译一下Qt还是件颇为麻烦的事情,故将过程略作总结,以备不时之需. 首先,在编译之前,我需要 ...

  9. QT5静态编译工程(arm交叉编译)

    1.首先,QT编译环境默认是动态库,要编译静态程序是不可能的,所以要下载QT源码,重新编译QT编译环境 2.下载QT源码(5.13版本):http://download.qt.io/developme ...

随机推荐

  1. asp.net mvc 4 高级编程学习笔记:第四章 模型

    数据模型 数据模型及O/R转化,采用EntityFramework实现. 可以采用firstCode模型,首先定义模型,通过模型生成数据库,也可以通过安装EFPowerTools,通过数据库自动生成对 ...

  2. 【8-16】Android学习笔记01

    Android目录树 Activity 生命周期 创建一个 Activity 在 android 中创建一个 Activity 要编写一个继承自 android.app.Activity的 Java ...

  3. 基本linux命令

    1.mkdir mkdir 创建目录   mkdir -p 循环创建目录 2.cd     切换目录 3.pwd   查看当前路径 4.mkdir 删除一个空的目录 5.cp 复制文件/目录  -r用 ...

  4. codeforces #270 ABCD

    Codeforces Round #270 A - Design Tutorial: Learn from Math 题意:给出n,求出两个合数x和y使x+y=n. 题解:暴力筛合数,然后暴力找 // ...

  5. 用友android

    获取token要改 value要改 不用通配符 直接双引号

  6. 开始使用 Markdown

    (Xee:我最近感觉nyfedit打开有点慢,数据库有点大,试想着用一些其他的方式记录一下学习的过程,才想起了遗忘了很长时间的Markdown,将其分类在HTML下,也是我原本意愿的...) 本文面向 ...

  7. 同一个解决方案"引用"其他的项目出现感叹号...

    项目A是自己新建的... 但是项目B是"添加"→"现有项目"添加的... 所以项目B引用项目A的时候,引用的项目A显示感叹号... 项目A右击"属性& ...

  8. spring 缓存(spring自带Cache)(入门)

    spring的缓存机制,是方法纬度的缓存机制, 这就意味着我们并不用关注 底层是否使用了数据库以及通过什么方式访问的数据库: 因此,此缓存方法既适用于dao层,也适用于service层. spring ...

  9. HDOJ 3709 Balanced Number

    数位DP... Balanced Number Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65535/65535 K (Java ...

  10. 7-RandomAccessFile 随机流

    package com.io; import java.io.File; import java.io.FileNotFoundException; import java.io.IOExceptio ...