exyson 4212(s5pc210)用的是3.0.15内核
exyson 5250用的是3.0.31内核
s5pc100-s5pv210用的是2.6.35内核
./qt-linux-opensource-5.0.0-x86_64-offline.run
./qt-linux-opensource-5.0.0-x86_64-offline.run: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./qt-linux-opensource-5.0.0-x86_64-offline.run)
查看
strings /usr/lib/libstdc++.so.6 | grep GLIB
eric@ubuntu:~/down/QT_offline$ strings build_gcc4.7/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.17 | grep GLIB
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.3.2
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
确实是没有3.4.15这一版本
查看本机gcc版本为4.4.5
经过查证,4.7的GCC所带的库已经包含3.4.15
所以安装GCC4.7先
gcc4.7.2安装
推荐第一种
1.简化版:
http://www.cnblogs.com/linbc/archive/2012/08/03/2621169.html
sudo yum install glibc-static libstdc++-static
wget http://ftp.gnu.org/gnu/gcc/gcc-4.7.0/gcc-4.7.0.tar.gz
tar xzf gcc-4.7.0.tar.gz
cd gcc-4.7.0
使用./contrib/download_prerequisites ,他会自动下载,自动编译,何乐而不为
./contrib/download_prerequisites
cd ..
mkdir build_gcc4.7
cd build_gcc4.7
../gcc-4.7.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
sudo make install
2.全手动版
http://blog.csdn.net/gengshenghong/article/details/7498085
#install gmp
mkdir /opt/gmp-5.0.5
./configure --prefix=/opt/gmp-5.0.5
yum install m4
make && make check && sudo make install
#install mpfr
mkdir /opt/mpfr-3.1.1
./configure --prefix=/opt/mpfr-3.1.1 --with-gmp=/opt/gmp-5.0.5
make && make check && sudo make install
#install mpc
mkdir /opt/mpc-1.0
./configure --prefix=/opt/mpc-1.0 --with-gmp=/opt/gmp-5.0.5 --with-mpfr=/opt/mpfr-3.1.1
make && make check && sudo make install
#install gcc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gmp-5.0.5/lib:/opt/mpfr-3.1.1/lib:/opt/mpc-1.0/lib
export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu && export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
export OBJC_INCLUDE_PATH=$C_INCLUDE_PATH
sudo mkdir -p /opt/gcc-4.7
mkdir gcc_build
./configure --prefix=/opt/gcc-4.7 --with-gmp=/opt/gmp-5.0.5 --with-mpfr=/opt/mpfr-3.1.1 --with-mpc=/opt/mpc-1.0 --disable-multilib --enable-languages=c,c++,fortran,java,go
make -j8
make check -> optional
sudo ln -s /opt/mpfr-3.1.1/lib/libmpfr.so.1 /usr/lib64/libmpfr.so.1
sudo ln -s /opt/gmp-5.0.5/lib/libgmp.so.3 /usr/lib64/libgmp.so.3
export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH
export OBJC_INCLUDE_PATH=$C_INCLUDE_PATH
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
export GCCDIR=/opt/gcc-4.7
export PATH=$GCCDIR/bin:$PATH
export LD_LIBRARY_PATH=$GCCDIR/lib:$GCCDIR/lib64:/opt/gmp-5.0.5/lib:/opt/mpfr-3.1.1/lib:/opt/mpc-1.0/lib:$LD_LIBRARY_PATH
export MANPATH=$GCCDIR/share/man:$MANPATH
make install
#autogen
安装好后,执行run文件,还是同样的错误,
这时候
需要将libstdc++.so.6.0.17软链接到libso.6上面
将/usr/local/gcc-4.7/lib64中的libstdc++.so.6.0.17拷贝到/usr/lib
并建立链接:
sudo ln -sf libstdc++.so.6.0.17
strings /usr/lib/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.3.2
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
这样就可以了
-(IBAction)openWeb{
NSString *urlText = [ [ NSString stringWithFormat:@"http://ditu.google.cn/"];
[ [ UIApplication sharedApplication] openURL:[ NSURL urlWithString:urlText];
}
-(IBAction)openWeb{
NSString *addressText = @"tian an men,bei jing,China";
addressText = [ addressText stringByAddingpercentEscapesUsingEncoding:NSASCIIStringEncoding];
NSString *urlText = [ NSString stringWithFormat:@"http://maps.google.com/maps?q = %@",addressText];
webView.userInteractionEnabled = true;
[webView loadRequest:[ [ NSURLRequest alloc] initWithURL:[ [ NSURL alloc] initWithString:urlText] ] ];
}