Taglib编译
来源:互联网 发布:杭州汉聚网络骚扰电话 编辑:程序博客网 时间:2024/04/25 06:53
交叉编译的脚本:
# this is required
SET(CMAKE_SYSTEM_NAME Linux)
# specify the cross compiler
SET(CMAKE_C_COMPILER /home/hs/mentor/bin/arm-none-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /home/hs/mentor/bin/arm-none-linux-gnueabi-g++)
# set build flag
SET(GNU_FLAGS "-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -fPIC -Wall")
SET(CMAKE_CXX_FLAGS "${GNU_FLAGS}")
SET(CMAKE_C_FLAGS "${GNU_FLAGS}")
#
IF( NOT CMAKE_BUILD_TYPE )
SET( CMAKE_BUILD_TYPE Release ... FORCE )
ENDIF()
#SET(CMAKE_INSTALL_PREFIX /home/test/testTaglib/taglib-1.10/cross_build)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /home/hs/mentor)
# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# configure Boost and Qt
#SET(QT_QMAKE_EXECUTABLE /opt/qt-embedded/qmake)
#SET(BOOST_ROOT /opt/boost_arm)
SET(CMAKE_SYSTEM_NAME Linux)
# specify the cross compiler
SET(CMAKE_C_COMPILER /home/hs/mentor/bin/arm-none-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /home/hs/mentor/bin/arm-none-linux-gnueabi-g++)
# set build flag
SET(GNU_FLAGS "-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -fPIC -Wall")
SET(CMAKE_CXX_FLAGS "${GNU_FLAGS}")
SET(CMAKE_C_FLAGS "${GNU_FLAGS}")
#
IF( NOT CMAKE_BUILD_TYPE )
SET( CMAKE_BUILD_TYPE Release ... FORCE )
ENDIF()
#SET(CMAKE_INSTALL_PREFIX /home/test/testTaglib/taglib-1.10/cross_build)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /home/hs/mentor)
# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# configure Boost and Qt
#SET(QT_QMAKE_EXECUTABLE /opt/qt-embedded/qmake)
#SET(BOOST_ROOT /opt/boost_arm)
-----------------------------------
编译步骤:
mkdir cross_build
cmake -DCMAKE_INSTALL_PREFIX=/home/hs/taglib/cross_build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./toolChain.cmake
make
make install
---------------------------------------
解决运行时链接不到so文件的问题:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/app/xx/lib:
---------------------------------------
参考链接:
http://www.linuxfromscratch.org/blfs/view/svn/multimedia/taglib.html
https://taglib.github.io/
http://www.xuebuyuan.com/2005238.html
http://www.tuicool.com/articles/yAFnQ3
0 0
- Taglib编译
- Windows 下编译 taglib
- taglib
- TagLib
- taglib
- taglib
- Jsp taglib 编译指令的用法详解
- jsp小结03 - 3个编译指令page、include、taglib
- jsp的3个编译指令(page,include,taglib)
- jsp的3个编译指令(page,include,taglib)
- jsp中的三个编译指令-page,include(page,include,taglib)
- JSP三大编译指令 page指令 include指令 taglib指令
- JSP三大编译指令 page指令 include指令 taglib指令
- Taglib笔记
- 深入浅出taglib
- 简单TAGLIB
- Taglib使用
- 深入浅出taglib
- Windows定时关机
- android插值器简单使用
- 响应式布局 媒体查询 media query的用法
- 云计算也分“层” 一句话读懂IaaS、PaaS、SaaS
- OpenGL绘制纹理,缩放相机导致纹理闪烁的解决方法gluPerspective ()
- Taglib编译
- 服务器推送技术常用的三个解决方案
- 关于xcode的导入的文件出现问号的问题
- HttpClient4.x 使用cookie保持会话
- NoClassDefFoundError --如何引入外部jar包
- php中大括号的用法和意义{}
- 对android:configChanges属性,一般认为有以下几点:
- Android Studio导入项目的几种方法
- Oracle日期、字符串格式化函数,位数不足前面加0,一位数字显示两位,格式化数字为定长