Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to transplant GTS under UNIX to WINDOWS

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to transplant GTS under UNIX to WINDOWS". In daily operation, I believe many people have doubts about how to transplant GTS under UNIX to WINDOWS. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to transplant GTS under UNIX to WINDOWS". Next, please follow the editor to study!

Recently unanimously looking for a good geometric entity Boolean operation library, found a small and delicate but special features to charge for the sgCore, powerful do not know how to use the openCASCADE,GNU open source UNIX system GNU Triangulated Surface Library (GTS), but also heard of some charging HOOPS and so on.

At first, I was very satisfied with sgCore, with its exquisite structure, easy-to-use programming style, powerful functions, and small figure. However, there is a charge when it is necessary to convert a triangular model into a solid model. The minimum charge is $400. Oh, my God, robbing people.

Finally gave up this beautiful "trap".

OpenCASCADE library, to borrow a popular saying on the sofa on the forum: very good, very powerful! Unparalleled features, including all aspects of CAD/CAM, from two-dimensional splines to three-dimensional solid operations, but it's too big. The installation package of more than 600 M, plus 200 M of documentation, the source program is still * .cxx. So strong that I couldn't figure out how to start, and finally gave up.

The last hope comes from GNU's GTS, which is small, free, delicate and powerful. The only drawback is that currently only the UNIX version, although written can be compiled under WIN32, but its MAKEFILE is still VC6 era, but also need 3 dependent packages. And these two dependent packages under WIN32 are compiled by VC6, and even if you compile GTS successfully under VC++2005, you can't afford it. Because the two DLL uses MSVCRT.DLL, and the GTS library compiled by VC++2005 uses MSVCRT80.DLL, it can lead to incompatibility.

After consulting a large amount of data, it is found that the solutions are as follows:

Compile using cygwin. The disadvantage is obviously that I have to compile the program under cygwin, which is obviously not very convenient. And the compiled DLL is not easy to use.

Recompile all dependent packages with VC++2005.

Give up. ~

Finally, I chose 2. Desperately trying to compile the GTS.

The first difficulty is the compilation of glib. Because glib is needed for GTS, look for the win32 version of glib on the Internet. Unexpectedly, there is only that version of VC6. Fortunately, VC++2005 's makefile is already included in glib's latest source code. You also need to find WIN32 versions of gettext and libiconv.

After querying, gettext 0.14.4 is found, which is said to be able to compile successfully. After trying for a long time, I found that the header file relocate.h was missing, and even if I got it, there was a problem with the compilation. It's google again, and the problem with finding someone is the same as mine, and the solution is to compile with version 0.14.6. Sure enough, it passed. Happiness.

Compiling libiconv also encountered some inexplicable problems, what things are not defined ah, what macros do not define these, very annoying. Glib is also some old makefile under win32 that needs to be updated.

I've been working on these things for four days, and I can't remember exactly how he succeeded. Finally, I made an installation package, only need to execute a batch, and foolishly completed the compilation and installation.

PS: I'm going to start working on things related to SMS again. Hey, it's a busy day.

Download:

Http://www.hesicong.net/Store/gts_win32_build_vc8.rar

Contains all the source code, in the VS2005 command prompt directly execute build_all.bat can be compiled and installed successfully, it takes a lot of effort:

Http://www.hesicong.net/Store/gts_win32_src.rar

At this point, the study on "how to transplant GTS under UNIX to WINDOWS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report