Export module

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
mat
Regular
Posts: 23
Joined: Mon Mar 17, 2014 8:12 am

Export module

Post by mat »

Hi Louise,

Yesterday, I tried to use the CExporter() class of TexGen with a Python script, but each time I get a message related to swig_import_helper().
After a quick search on this forum, I found an older post from someone who had the same issue:

http://texgen.sourceforge.net/phpBB3/vi ... wig_import

Unfortunately, this person didn't go further with CExporter() and a solution to this problem hadn't be found.
Do you have an idea where the issue comes from? I defined several paths in my system path, but maybe I forgot one.

Best regards,
Mathieu
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Export module

Post by louisepb »

Hi Mathieu,

There is a more recent discussion about building the export module in here: http://texgen.sourceforge.net/phpBB3/vi ... f=1&t=5081

Did you include BUILD_CASCADE_EXPORT in your CMake configuration? Did you manage to build with the export module? If you did and it still doesn't work then that's a different issue. I started to try to get my Linux build working with the export module when the question arose in the discussion above but didn't persue it when the need was no longer there. I'll take another look at it and get back to you.

Best regards,
Louise
mat
Regular
Posts: 23
Joined: Mon Mar 17, 2014 8:12 am

Re: Export module

Post by mat »

Hi Louise,

I recompiled everything without errors, the export module seems to be correctly compiled too.
I googled "swig_import_helper()" and some people are getting issues with this commando as well, I'll try to see if it can be the reason of my problem.

Thanks for your help.

Regards,
Mathieu
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Export module

Post by louisepb »

Hi Mathieu,

Maybe you can help me. I am more of a Windows person than Linux so am getting a bit tied up with the OpenCascade build. Which version of OpenCascade did you use? I guess that you must have built it? Did you also have to build 3rd party software to be able to do that? I have downloaded OCC 6.7.1 (The Windows version of TexGen has now been upgraded to this without problems) but this requires tcl and FreeType. I have built both of these but the CMake for OCC complains that the dll's for these aren't available. I suspect that the builds that I have done of these haven't actually built the dll's but haven't worked out to put this right.

Any tips would be much appreciated!

Best regards,
Louise
mat
Regular
Posts: 23
Joined: Mon Mar 17, 2014 8:12 am

Re: Export module

Post by mat »

I compiled the version 6.5.2 of OpenCascade on Windows (32 bit version). If I'm right, I didn't need to build any 3rd party software for that. But maybe I should have in order to make everything works correctly.
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Export module

Post by louisepb »

Hi Mathieu,

Sorry, I got you confused with someone else and thought you were building in Linux. In Windows you should just be able to build OpenCascade and then point the TexGen CMake at the appropriate folders. My 32-bit build OpenCascade section of CMake looks like this:
Capture.PNG
Capture.PNG (5.84 KiB) Viewed 9185 times
Best regards,
Louise
mat
Regular
Posts: 23
Joined: Mon Mar 17, 2014 8:12 am

Re: Export module

Post by mat »

Hi Louise,

The issue with the swig_import_helper() module was due to environment variables. Some paths weren't defined in those variables and several files couldn't therefore be found.
Now is everything working fine.

Best regards,
Mathieu
Post Reply