解决方案: the cause is the google tests is looking for the generic regex.h but cmake used the regex.h from boost. and boost is not linked. I'm not sure how to fix it properly but renaming /usr/local/include/boost/regex.h temporarily to something else fix…
从coco官网下载了cocos2d-x-3.12.zip,在gen-libs生成prebuilt时,mac ,ios 平台都正常,android报错: jni/../../Classes/ide-support/RuntimeJsImpl:cpp:2222:52 error 解决办法: https://github.com/cocos2d/cocos2d-x/blob/cocos2d-x-3.12/tools/simulator/frameworks/runtime-src/Classes/id…
1. 说明 使用clang++10.1编译报错: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crt1.o: in function `_start': (.text+0x24): undefined reference to `main' clang-10: error: linker command failed with exit code 1 (use -v to see invocatio…
编译PHP 报错:node.c: In function dom_canonicalization  /opt/php-5.2.17/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type 是libxml导致的问题,可以下载补丁patch一下. # curl -o php-5.x.x.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4…
问题如上面所叙: > idea中编译项目报错 java: javacTask: 源版本 1.8 需要目标版本 1.8 解决方案: > Setting->Compiler->Java Compiler,发现有的module是1.7的改成1.8就好了 参考了http://www.oschina.net/question/179805_88111?fromerr=QXBtl4w7…
今天无论在家还是在公司,安装node-sass总是失败,或安装成功了,使用webpack编译sass报错,说找不到module,按照提示的错误我找了node_modules下的css-loader,发现下面是有index.js的,有人说重新安装就可以了,安装后还是报错,后来我就想着重新安装node-sass. 在网上找了很久,应该是网络原因,最方便的方法是使用taobao镜像安装,因为node-sass已经镜像到taobao上,参考地址:https://npm.taobao.org/,安装cnp…
源码编译apache报错的解决方法   问题介绍 在源码编译安装httpd时,./configure执行无错误,到make时就报错,在网络上搜索了很多文章,很多方法如换apr-util的低版本并不能很好的解决该错误.经过不断的努力,我最终解决了该问题,现将方法记录. 说明:apr/apr-util都是源码编译安装的 错误如下: ... /usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_StopParser'…
偶然重新编译了一下后台程序,发现编译过程报错无法连接数据库.但通过sqlplus登录数据库是正常的.后台程序改动中也做了详细的分析,没有改动相关数据库的参数和配置. 最后通过浏览器查看了很多相关问题的解决办法,无疑间发现有人说修改一下数据库密码即可.抱着试一试的心态,再次登录数据库的时候,发现一行字:数据库密码即将到期... 然后立马重置了数据库密码,使用管理员权限执行:alter  user  username  identified by password; 再次编译后台程序,一切正常!这个…
关于gcc 用旧版本安装NVIDIA HPC SDK再编译会报错: "/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/move.h", line 48: error: identifier "__builtin_addressof" is undefined 解决办法: 升级gcc 重新安装NVIDIA HPC SDK.先前安装的可以删除(rm -rf 文件夹).安装NVIDIA HPC SDK时,可以指定路径,在提…
for循环一直报错  Cannot read property 'total' of undefined,但total在起初是有定义的,后来找到了问题,是i<=的问题,改为<不报错了. infoArea长度为2,也就是i 应该循环2次.但是写成<=后,i 取值依次是:0,1,2,取值为2时,找不到对应的元素. infoArea: [ { title: '打印1', type: 'A4', colorType: '彩色双面', count: 2, pages: 20, total: 40…