HBGGP的工程建立过程
运行HBGGP下的Cmakelist.txt,产生的工程里都没有openBeagle下的源文件,计划先运行openBeagle下的Cmakelist.txt,看看是否可以成功建立工程。
生成openbeagle中的findpacc()总是错,需要知道pacc是一个什么东西
pacc
libbondgraph
mpaibeagle
openbeagle
一、pacc安装
1、cmakelist.txt生成工程成功
2、运行成功
pacc安装成功!
二、libbondgraph安装
- error C1083: Cannot open include file: ‘gsl/gsl_vector.h’: No such
file or directory 解决:安装gsl,参考以下网址:
http://www.cnblogs.com/moondark/archive/2012/04/26/2471879.html
http://blog.youkuaiyun.com/wootengxjj/article/details/51721984
vs中新建工程,测试程序如下:
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
gsl安装成功!
- error C1083:Cannot open include file: ‘graphviz/gvc.h’: No such file
or directory 安装graphviz
https://github.com/mzettwitz/GraphViz
运行graphviz的Cmakelist.txt时
2.1 CMake Error at G:/BPBG/cmake-3.9.4-win64-x64/cmake-3.9.4-win64-x64/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
Call Stack (most recent call first):
缺失glut,安装glut
http://blog.youkuaiyun.com/qq_30640993/article/details/50815114
https://jingyan.baidu.com/article/d5c4b52bca5005da560dc5d6.html
glut安装成功!
2.2 CMake Error at G:/BPBG/cmake-3.9.4-win64-x64/cmake-3.9.4-win64-x64/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
缺失glew,安装glew,参考如下:
http://www.cnblogs.com/U-tansuo/p/glew.html
glew安装成功!
2.3 error C1083: Cannot open include file: ‘GL/freeglut.h’: No such file or directory
缺失freeglut,安装freeglut, 到freeglut的官方网站http://freeglut.sourceforge.net/上把最新版的Freeglut下载下来,解压,然后根据读者所安装的VS版本,运行相应的项目,参考如下:
http://blog.youkuaiyun.com/augusdi/article/details/20469561
http://blog.youkuaiyun.com/w540982016044/article/details/21287645
注意编译freeglut工程时,选择release状态,而不是debug!
glut安装成功!
2.4 error LNK1104: cannot open file ‘freeglutd.lib’
http://blog.youkuaiyun.com/yapingxin/article/details/46440307
glut.lib(glut.dll) : error LNK2026: module unsafe for SAFESEH image.
http://blog.youkuaiyun.com/nanjian011/article/details/42777281
装了GraphViz,还是cannot open file ‘freeglutd.lib’。
How to use Graphviz as library in C++ project
http://www.graphviz.org/content/how-use-graphviz-library-c-project
http://www.graphviz.org/doc/libguide/libguide.pdf
http://blog.youkuaiyun.com/liufengl138/article/details/77365644
http://blog.youkuaiyun.com/liufengl138/article/details/51550008
需要好好研究一下vs文件中库与工程之间的关系。
还是没有把graphviz装好,只有graphviz这个软件,并没有找到库。
目前将软件graphviz安装后产生的文件直接复制到vs/VC/include目录下,可以找到graphviz/gvc.h,但是bondgraph.h中出现很多错误,猜测还是graphviz库并没有正确导入。
- error C2065: ‘M_PI’ : undeclared identifier
http://blog.youkuaiyun.com/apioneer/article/details/37831487
三、openbeagle安装
出错:openbeagle出错,找不到pacc/math.h
解决:因为openbeagle的cmakelist.txt生成工程时,pacc的路径没有设置,相当于没有加载入pacc,故而找不到pacc/math.h。在FindPacc()之前添加如下:
set(PACC_DIR G:\BPBG\pacc-1.4.1-Source\pacc_Cplus1)
set(PACC_INCLUDE_DIR
PACCDIR/include)set(PACCLIBDIR“
{PACC_DIR}/lib”)
FindPacc()
出错:tsp\TSPMain.cpp(37): fatal error C1083: Cannot open include file: ‘GA.hpp’: No such file or directory
解决:暂未解决。