
错误及解决
文章平均质量分 73
arackethis
生活就像巧克力
展开
-
Ubuntu下编译matlab eigen时: undefined reference to `engOpen'
在Linux下:libeng.so,libmx.so libmex.so libmat.so (依次对应的库名是:eng, mx, mex, mat)。对undefined reference to `engOpen'以及undefined reference to `engEvalString'这种错误的解决方法就是用-l链接到这些动态库就行。即:$ g++ matlab_eigen.cpp -o matlab_eigen -I/opt/MATLAB/R2012a/extern/include -L/o原创 2015-01-31 17:58:06 · 3241 阅读 · 0 评论 -
解决vtkXOpenGLRenderWindow (0x2a9db90): Could not find a decent visual
“vtkXOpenGLRenderWindow (0x2a9db90): Could not find a decent visual”,“GLX not found. Aborting” 问题类似与Qt creator5.0在安装了OpenGL的库们以后打开时报错:Could not initialize GLX Aborted (core dumped)一样。应该是OpenGL和系统驱动兼容问题。原创 2015-01-25 11:31:46 · 9784 阅读 · 0 评论 -
编译Mesa10.3.5 /bin/bash: line 4: msgfmt: command not found
安装gettext库。直接到官网http://packages.ubuntu.com/zh-cn/precise/gettext下载gettext_0.18.1.1-5ubuntu3_amd64.deb包,安装成功。原创 2015-01-21 21:59:04 · 3794 阅读 · 0 评论 -
编译Mesa:configure: error: Could not find llvm shared libraries
Welcome to Clang. This is a compiler front-end for the C family of languages (C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM compiler infrastructure project.原创 2015-01-20 21:45:41 · 2750 阅读 · 0 评论 -
解决--No package 'glproto' found
configure: error: Package requirements (glproto >= 1.4.14) were not met: No package 'glproto' found原创 2015-01-20 17:23:48 · 8781 阅读 · 0 评论 -
编译Mesa:configure: error: libudev-dev or sysfs required for building DRI
sudo apt-get install libudev-dev原创 2015-01-20 19:46:30 · 3729 阅读 · 0 评论 -
编译Mesa:No package 'xdamage', 'xfixes', 'x11-xcb', 'xcb-glx', 'xcb-dri2' found
编译Mesa过程中的库错误。原创 2015-01-20 19:42:22 · 7670 阅读 · 0 评论 -
解决:Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52
下载源代码,编译安装libdrm。点此下载libdrm-2.4.58.tar.gz原创 2015-01-20 19:48:58 · 3165 阅读 · 0 评论 -
解决--编译Mesa:No package 'dri3proto' found
配置Mesa时,这样:sudo ./configure --disable-dri3就行。原创 2015-01-20 19:18:42 · 4229 阅读 · 0 评论 -
解决:MATLAB_Compiler_Runtime libgfortran.so.3: version `GFORTRAN_1.4' not found
今天运行程序时出现一个小错误:/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/lib/liblapack.so.3gf)。大概是因为我的程序中用到了liblapack,而liblapack又用到了libgfortran,但是MATLAB_Compiler_Runtime中带来的这个版本的libgfortran原创 2015-02-03 15:26:07 · 4144 阅读 · 0 评论 -
Linux下c++调用自己编写的matlab函数:通过matlab引擎实现
问题描述:有一个c++程序main.cpp,和一个matlab函数myFunc.m。现在要做这件事:1)从main.cpp中传递一个1行5列的double类型的array到myFunc.m中; 2)myFunc.m中求和; 3)main.cpp中接收myFunc.m返回的和并输出。实验平台是:ubuntu 12.04.5 + g++4.6 + matlab2012a。原创 2015-02-01 22:37:00 · 4054 阅读 · 1 评论 -
Linux 64bit matlab2012a安装MCR Installer,解决无法打开动态链接库问题
通过c++调用matlab中自己编写的函数(是通过将该函数在matlab中mcc编译成.so,然后c++中调用这个.so的方式),成功编译后(编译时也出现一些错误,详情点这里),但是成功编译完后,居然不能运行。为什么编译通过不报任何错误,但是运行不了呢?原来是因为matlab的动态链接库运行时需要安装MCRInstaller(它包含matlab所有的动态链接库文件),所以本文需要安装一下MCRInstaller。我的matlab版本为2012a。原创 2015-02-01 21:48:53 · 6602 阅读 · 5 评论 -
解决In function `mwException::mwException()': undefined reference to `mclcppCreateError'
在进行这个实验中,通过c++调用matlab中自己编写的函数(是通过将该函数在matlab中mcc编译成.so,然后c++中调用这个.so的方式),报错记录总结。实验环境:Ubuntu 12.04.5 64bit, gcc 4.6, matlab 2012a 。原创 2015-02-01 20:46:08 · 4917 阅读 · 3 评论 -
Ubuntu12.04编译llvm+clang失败(3.4/3.5)及成功(3.3)的尝试
编译Mesa时的一个经典错误:configure: error: LLVM is required to build Gallium R300 on x86 and x86_64。折腾很久最终问题归结为“”,最终发现是新版本的bug。新手去折腾这些伤不起,以后还是乖乖用稳定版本吧!最后通过安装llvm+clang的3.3版本(llvm-3.3.src.tar.gz和cfe-3.3.src.tar.gz)解决了这个问题。原创 2015-01-20 20:02:50 · 4929 阅读 · 1 评论 -
解决: /opt/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
今天新编译了一个特定版本程序,执行matlab脚本时又遇到这问题:/opt/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ../binPablo_volume/bin_pablo)../binPablo_volume/bin_pablo: /opt/MATLAB/R2012a/sys/os/glnxa64/libgfortran.so.3: version `GFOR原创 2015-05-31 11:25:45 · 3286 阅读 · 0 评论