aloha librecad gurus
using old csw.org precompiled librecad on eol sun microsystems sparc based workstation: librecad build info shown in the about popup ('about-libracad-popup.gif') attached.
due to many missing dependencies (libs and especially qmake) i'm unable to (re)build from source -- any interest in a gnu autoconf/automake build option?
librecad has been (is) working fine, but suddenly i'm getting a load of messages on stdout that look like embedded trig math debugging code.
question 1: any way i can disable it from the command line or via envvars. i suppose it is possible these messages are from some dependency lib and not librecad itself.
question 2: assuming no way to disable, is there some way i can determine what object is causing the problem. the output seems to happen when i select any object on the drawing (e.g. depress left button on mouse to start selection).
haa! it only happens when the layer with copied and scaled objects is visible (see more below).
here are some examples of the output:
finding minimum for (5.35129-0.0512108cos(t))^2+(75.2248-0.0511952sin(t))^2
2::find cosine, variable c, solve(c^4 +(-343177)c^3+(5.84403e+12)c^2+(343177)c+(-2.94427e+10)=0,c)
-343177 5.84403e+12 343177 -2.94427e+10
(a= 0.0512108 b= 0.0511952 x= -1.6978 y= -53.616 )
finding minimum for (-1.6978-0.0512108cos(t))^2+(-53.616-0.0511952sin(t))^2
2::find cosine, variable c, solve(c^4 +(108880)c^3+(2.95679e+12)c^2+(-108880)c+(-2.96371e+09)=0,c)
108880 2.95679e+12 -108880 -2.96371e+09
this seemed to have begun when i opened a commercial (acad?) .dxf file which seems to have a scaling factor that librecad is not applying. to compensate i copied and pasted the views of interest into another drawing and scaled them to the correct size. (i can provide both files if requested; first is 1.8m, other is about 1.2m).
first, answers for your questions:
1, this type of messages can not be turned off by ENV. You may try to redirect console output, for example, "librecad &> /dev/null"
2, quartic equation solver is used for ellipse features. Those particular messages are most likely from "snap to points on entities" for ellipse.
I strongly suggest you to build LibreCAD from source. You need reps:
1, Qt-4.4 and later
2, gcc-4.4 and later
3, muparser
4, boost. We only use boost header libraries, so far.
Dongxu Li
thanks for the fast reply
aloha
ras
Dongxu Li wrote:
all beyond my basic platforms development state at the moment which
is why i have to retain csw.orgs librecad 2.0.0 alpha 3. upgrading
means upgrading every csw.org thing ... not enough time or disk for
that right now.
< snip >