tag:blogger.com,1999:blog-3285677929777490656.post8940417174404337966..comments2023-10-31T13:16:01.375+03:00Comments on Open CASCADE notes: Porting on LinuxRoman Lyginhttp://www.blogger.com/profile/18338419158437898791noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3285677929777490656.post-53132856311007598332010-08-13T12:08:31.982+04:002010-08-13T12:08:31.982+04:00Hi Roman,
thank you for your reply! I now managed ...Hi Roman,<br />thank you for your reply! I now managed to resolve the problem. It seems that OpenCascade is using the QT localisation and this causes problems for the IGES ASCII reader. If I set the environment variable LANG=en everything works perfect!! Maybe you may also discover this problem if somebody is using your CAD Exchanger on a german operating system. :-)<br />ChrisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-12241332423653695662010-08-10T09:06:46.230+04:002010-08-10T09:06:46.230+04:00Hi Chris,
No clues upfront. However it sounds like...Hi Chris,<br />No clues upfront. However it sounds like data/memory corruption.<br />If I have any thing when moving to 64 bit, I'll share. <br />RomanRoman Lyginhttps://www.blogger.com/profile/18338419158437898791noreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-1479544812429432582010-08-04T09:41:36.214+04:002010-08-04T09:41:36.214+04:00Hi Roman,
QtCore doesn't cause the problem. As...Hi Roman,<br />QtCore doesn't cause the problem. As soon as I declare <br />int main(int argc, char *argv[])<br />{<br />QApplication a(argc, argv);<br />......<br />}<br />the IGES Import starts to fail frequently.<br />I already checked the resulting binary file for conflicting symbols and I tried to change the order of the libraries during the linking, additionoly I tried to encapsulate the IGES reader in a different class but I did not yet succeeded to resolve the problem.<br />I now found a small test example which consits of the geometry of a simple ball. If I import it without the declaration of QApplication inside the main procedure everything is O.K. With QApplication the geomerty is damaged and the debug output is:<br />*****************************************<br />Total number of loaded entities : 14.<br />Warning: IGESToBRep_IGESBoundary: Deviation = 149.912<br />Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored<br />Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed<br />Warning: IGESToBRep_IGESBoundary: Deviation = 170.609<br />Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored<br />Warning: IGESToBRep_IGESBoundary: Curves 1 and 2 cannot be connected<br />Info: ShapeProcess_Context: Reload Resource_Manager: -> IGES<br />Warning: XSAlgo_AlgoContainer::ProcessShape(): Sequence FromIGES.exec.op is not defined in read.iges.resource.name resource; do default processing<br />Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution<br />!!!Erfolg<br />****************************************<br />Do you think that the problem could be caused by localisation? I use debian Lenny for the german language. Do you possibly have some suggestions?<br />If I have more time I will try to debug the problem.<br /><br />Thank you in advance<br />ChrisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-31186190992868022672010-07-26T16:50:07.713+04:002010-07-26T16:50:07.713+04:00Hi Chris,
I am only considering to move to 64bit a...Hi Chris,<br />I am only considering to move to 64bit and currently do not have practical experience at hand. I'll keep your notes in mind when doing my experiments though I don't have Qt GUI running on Linux (only QtCore etc).<br />If anything appears, I'll likely make some post about that.<br />RomanRoman Lyginhttps://www.blogger.com/profile/18338419158437898791noreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-51438402624373672372010-07-25T15:40:33.802+04:002010-07-25T15:40:33.802+04:00Hi Roman,
I am not sure if you still work with Ope...Hi Roman,<br />I am not sure if you still work with Open Cascade and Linux, but possibly you have some ideas. I compiled the Qt Import-Export Example for 64bit Linux, but unfortunately I realised that the IGES Import became very unstable. The import of almost all IGES files crashes the application or the geometry will be damaged. I used the _OCC64 Option for the compilation. I realized that the problem is caused by a conflict between Qt and Open Cascade on 64 bit Linux systems. If I remouve all Qt objects and declarations in the program and if I compile and run it as a simple console application everything works fine. Do you possibly have some ideas how to resolve this problem?<br />Thank you in advance<br />ChrisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-28150939830467426162010-05-01T21:07:52.428+04:002010-05-01T21:07:52.428+04:00I started to explore Open Cascade two years ego o...I started to explore Open Cascade two years ego on Red Hat Linux and it was hard work to compile it. Now I switched to Debian Lenny and the compilation (debug and release) was absolutely no problem. I use Eclipse as my IDE and it supports to debug the library.<br />Regards ChrisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-77658707308065845942010-04-08T10:15:26.102+04:002010-04-08T10:15:26.102+04:00Thanks for this reference ciplogic.
I'm curren...Thanks for this reference ciplogic.<br />I'm currently struggling with rebuilding OCC in debug mode - as I have discovered a Segmentation Fault with MMGT_REENTRANT=1 and cannot debug with release version which was compiled without the '-g' option.<br />Unlike Windows, it's impossible to have debug and release binaries compiled side-by-side, so extra efforts are required to have both.Roman Lyginhttps://www.blogger.com/profile/18338419158437898791noreply@blogger.comtag:blogger.com,1999:blog-3285677929777490656.post-25825857395952829632010-04-06T01:43:54.437+04:002010-04-06T01:43:54.437+04:00I don't know a libtool as you pointed out, but...I don't know a libtool as you pointed out, but I did succeed to use the direct OpenCascade libraries that are provided with Ubuntu ( http://narocad.blogspot.com/2009/02/possible-future-fundation-for-naro.html ) and they are right now up-to-date. This blog post is fairly old (one year in the past) but I think that Ubuntu at least will not remove right away.<br />Also compiling on Ubuntu will make that final binary will be compatible with other distros (if is compiled against the same LibC in general) and you will not spend that much time on fixing linking issues.<br />Hope it helps!Ciprian Khludhttps://www.blogger.com/profile/05409605028353356569noreply@blogger.com