Using VS2015 64-bit compiler to build up igllib
2016-04-01 02:50
786 查看
based on previous blog: http://blog.csdn.net/seamanj/article/details/49368907
To ensure all the projects compiled successfully, 64-bit CGAL4.7 is required. refer to the following blog to config it:
http://blog.csdn.net/seamanj/article/details/51033490
After doing this preparing work, let's begin:
1. download igllib
turn to page :
https://github.com/libigl/libigl/
click "Clone in Desktop" to Clone into your computer somewhere.
here, our clone address is:
C:\work_files
2. config tutorial by cmake
source code: C:/work_files/libigl/tutorial
build the binaries: C:/work_files/libigl/tutorial/build_vs2015_x64
choose Visual Studio 14 2015 Win64 as Generator
if some errors occur at this point, there is a great possibility you download the file through "Download Zip" button. the correct way is through "Clone in Desktop"
3. compile tutorial
Although there are still some errors, we just leave them at that. I will deal with them when necessary.
Last but not least, please comment out the function igl::copyleft::cgal::string_to_mesh_boolean_type like this:
IGL_INLINE bool igl::copyleft::cgal::string_to_mesh_boolean_type(
const std::string & s,
MeshBooleanType & type)
{
/*using namespace std;
string eff_s = s;
transform(eff_s.begin(), eff_s.end(), eff_s.begin(), ::tolower);
const auto & find_any =
[](const vector<string> & haystack, const string & needle)->bool
{
return find(haystack.begin(), haystack.end(), needle) != haystack.end();
};
if(find_any({"union","unite","u","∪"},eff_s))
{
type = MESH_BOOLEAN_TYPE_UNION;
}else if(find_any({"intersect","intersection","i","∩"},eff_s))
{
type = MESH_BOOLEAN_TYPE_INTERSECT;
}else if(
find_any(
{"minus","subtract","difference","relative complement","m","\\"},eff_s))
{
type = MESH_BOOLEAN_TYPE_MINUS;
}else if(find_any({"xor","symmetric difference","x","∆"},eff_s))
{
type = MESH_BOOLEAN_TYPE_XOR;
}else if(find_any({"resolve"},eff_s))
{
type = MESH_BOOLEAN_TYPE_RESOLVE;
}else
{
return false;
}*/
return true;
}
To ensure all the projects compiled successfully, 64-bit CGAL4.7 is required. refer to the following blog to config it:
http://blog.csdn.net/seamanj/article/details/51033490
After doing this preparing work, let's begin:
1. download igllib
turn to page :
https://github.com/libigl/libigl/
click "Clone in Desktop" to Clone into your computer somewhere.
here, our clone address is:
C:\work_files
2. config tutorial by cmake
source code: C:/work_files/libigl/tutorial
build the binaries: C:/work_files/libigl/tutorial/build_vs2015_x64
choose Visual Studio 14 2015 Win64 as Generator
if some errors occur at this point, there is a great possibility you download the file through "Download Zip" button. the correct way is through "Clone in Desktop"
3. compile tutorial
Although there are still some errors, we just leave them at that. I will deal with them when necessary.
Last but not least, please comment out the function igl::copyleft::cgal::string_to_mesh_boolean_type like this:
IGL_INLINE bool igl::copyleft::cgal::string_to_mesh_boolean_type(
const std::string & s,
MeshBooleanType & type)
{
/*using namespace std;
string eff_s = s;
transform(eff_s.begin(), eff_s.end(), eff_s.begin(), ::tolower);
const auto & find_any =
[](const vector<string> & haystack, const string & needle)->bool
{
return find(haystack.begin(), haystack.end(), needle) != haystack.end();
};
if(find_any({"union","unite","u","∪"},eff_s))
{
type = MESH_BOOLEAN_TYPE_UNION;
}else if(find_any({"intersect","intersection","i","∩"},eff_s))
{
type = MESH_BOOLEAN_TYPE_INTERSECT;
}else if(
find_any(
{"minus","subtract","difference","relative complement","m","\\"},eff_s))
{
type = MESH_BOOLEAN_TYPE_MINUS;
}else if(find_any({"xor","symmetric difference","x","∆"},eff_s))
{
type = MESH_BOOLEAN_TYPE_XOR;
}else if(find_any({"resolve"},eff_s))
{
type = MESH_BOOLEAN_TYPE_RESOLVE;
}else
{
return false;
}*/
return true;
}
相关文章推荐
- Using vs2015 64-bit compiler to build up CGAL-4.7 on window 7
- Hue的安装与部署
- 天猫首页UI层次与类设计分析
- java web之requestrespone
- Local Value和Master Value
- windows平台解决quick3.5final + sublimeText3 模拟器找不到的问题
- iOS UI基础 - 20 UITextField
- 简介EasyUI datagrid editor combogrid搜索框的实现
- EasyUi中的Combogrid 实现分页和动态搜索远程数据
- EasyUi combotree 实现动态加载树节点
- 非UI线程使用setVisibility发生的bug
- OC中的UIButton/UIlable
- iOS边练边学--触摸事件以及能够拖拽的UIView的练习
- Fluent NHibernate and Mysql,SQLite,PostgreSQL
- IOS UIScrollView——简单示例
- SPOJ QTREE5 Query on a tree V(边分治)
- SPOJ QTREE4 Query on a tree IV(边分治)
- SPOJ PT07J Query on a tree III(dfs序,主席树)
- SPOJ QTREE2 Query on a tree II(lct)
- SPOJ QTREE Query on a tree (lct)