Line from 2 dots

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Postby demaxfa » Wed Feb 29, 2012 7:06 pm

It looks also to me because i google "No SWIG wraped library loaded freecad" and it shows some sources that only includes swig 1.x
wmayer
Site Admin
Posts: 16091
Joined: Thu Feb 19, 2009 10:32 am

Re: Line from 2 dots

Postby wmayer » Wed Feb 29, 2012 7:40 pm

That's an error message we write out in FreeCAD if the corresponding Swig interface cannot be found.

FYI: Querying the C++ internals of a Swig python module is a pain. For every minor release the API completely changes. On Debian that's normally not a problem because you have only one Swig version system-wide but on Windows e.g. you cannot rely on this. So, you need a general way to find out what the Swig version is. In FreeCAD the solution is a bit crude because we read in the generated python file and get the Swig number from there.
User avatar
yorik
Site Admin
Posts: 11978
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Line from 2 dots

Postby yorik » Tue Mar 13, 2012 10:48 pm

Werner, they seem to have the same problem on debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646374
and another same bug report here (which concerns the same debian version):
http://sourceforge.net/apps/mantisbt/fr ... php?id=637

I'm running the same debian with swig2 and everything runs/compiles fine... Should we tell the debian people to simply issue a new build?
wmayer
Site Admin
Posts: 16091
Joined: Thu Feb 19, 2009 10:32 am

Re: Line from 2 dots

Postby wmayer » Wed Mar 14, 2012 7:30 am

Hi Yorik, the issue was fixed here: http://free-cad.git.sourceforge.net/git ... 9ecda99d3b
User avatar
yorik
Site Admin
Posts: 11978
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Line from 2 dots

Postby yorik » Wed Mar 14, 2012 1:22 pm

Okay, thanks!
Thanks also for replying to the debian bug, I was unsure of what to tell there...
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Postby demaxfa » Fri Mar 30, 2012 3:58 pm

Did you make corecktion of that SWIG 2.x bug?

Demaxfa
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Postby demaxfa » Fri Mar 30, 2012 4:04 pm

I seeing that you corect the bug and now what compile from source or replace that source fikle or something other??

Dem