通过以下链接, Cant use shared libraries in Qt project, 我在Qt项目专业文件中添加了libkmlbase和libkmldom库
php > $pattern = '/<(?!\/)(?!(i|div)(\s|>))(.*?)>/';
php > $subject = '<div> or <i> or <div class="something"> but will catch <divdiv> and <iii> or <hello>.';
php > $text = preg_replace($pattern,
php ( "<$3 something>",
php ( $subject);
php > print $text;
<div> or <i> or <div class="something"> but will catch <divdiv something> and <iii something> or <hello something>.
php > $text = '<div> or <i> or <div class="something"> but will catch <divdiv> and <iii> or <hello>';
php > $text = preg_replace("/<(?!\/)(?!(i|div)(\s|>))(.*?)>/i",
php ( "< $3>", // note I added space
php ( $text);
php > print $text;
<div> or <i> or <div class="something"> but will catch < divdiv> and < iii> or < hello>
但是,在执行时,我在加载共享库时出错:libkmlbase.so.0:无法打开共享对象文件:没有这样的文件或目录“ 甚至我将.so文件复制到可执行文件夹。
有什么建议吗?感谢宝贵的时间在我的问题上。