解决Ubuntu平台下Matlab中OpenGL警告信息

安装Matlab成功后,启动Matlab,发现下面一些警告信息

 

Warning: Could not query OpenGL 

Warning: OpenGL appears to be installed incorrectly 

 

造成Warning是因为Matlab自带OpenGL的库和系统的不一样

Matlab自带的OpenGL库装在了/opt/Matlab/sys/opengl/lib/glnx86/

这里/opt/Matlab/是安装目录

 

 

实际上用到的OpenGL库文件就两个

 

libGL.so     :  一般是OpenGL通用库(这里你也可以选择最新版本,比如说我的是libGL.so.173.14.20)

libGLU.so   :   用户自定义库

 

很显然,libGL.so应该用系统的,而libGLU.so用Matlab自带的,

 

 

一般情况下系统的/usr/lib/libGL.so和Matlab带的libGL.so不一样,Matlab用了自带的库,造成和驱动不能interface

用下面命令也可以看得很清楚libGL.so和libGLU.so的连接路径

 

ldd /opt/Matlab/bin/glnx86/glren.so

 

现在我们的目标很清楚:

就是要修改OpenGL库文件寻找路径

 

首先要把这两个东西整合在一起

 

1) 建一个安全目录比如/usr/local/opengl

 

2) cd /usr/local/opengl

 

   ln -s /usr/lib/libGL.so libGL.so(这里也可以用ln -s /usr/lib/libGL.so.173.14.

could not execute query是什么原因导致的啊?

05-03

There is no Action mapped for namespace / and action name LoginAction_login. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) Hibernate: select administra0_.id as id0_, administra0_.administrator_id as administ6_0_, administra0_.email as email0_, administra0_.name as name0_, administra0_.password as password0_, administra0_.realname as realname0_ from Administrator administra0_ where 1=1 and ( lower(administra0_.name) like 'admin' ) and administra0_.password='123456' 17:26:22,465 WARN org.hibernate.util.JDBCExceptionReporter:100 - SQL Error: 1054, SQLState: 42S22 17:26:22,466 ERROR org.hibernate.util.JDBCExceptionReporter:101 - Unknown column 'administra0_.administrator_id' in 'field list' 在控制台出现以下语句是什么意思 Hibernate: select administra0_.id as id0_, administra0_.administrator_id as administ6_0_, administra0_.email as email0_, administra0_.name as name0_, administra0_.password as password0_, administra0_.realname as realname0_ from Administrator administra0_ where 1=1 20:48:32,118 WARN org.hibernate.util.JDBCExceptionReporter:100 - SQL Error: 1054, SQLState: 42S22 20:48:32,126 ERROR org.hibernate.util.JDBCExceptionReporter:101 - Unknown column 'administra0_.administrator_id' in 'field list' Hibernate: select administra0_.id as id0_, administra0_.administrator_id as administ6_0_, administra0_.email as email0_, administra0_.name as name0_, administra0_.password as password0_, administra0_.realname as realname0_ from Administrator administra0_ where 1=1 20:48:37,948 WARN org.hibernate.util.JDBCExceptionReporter:100 - SQL Error: 1054, SQLState: 42S22 20:48:37,949 ERROR org.hibernate.util.JDBCExceptionReporter:101 - Unknown column 'administra0_.administrator_id' in 'field list' 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览