distance point to point precision

classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

distance point to point precision

ravas
I'm interested in using this program for geometric construction / exploration.
What I need is for the 'distance point to point' tool to produce at least 8 numbers
to the right of the decimal point. Is this currently possible?
Also, is there a way to access this tool via the command line?

Thank you! :-]
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
The distance (point - point) is not using existing unit/precision framework.

I am going to fix this, so the distance is by precision set in "Edit->Current Drawing Preferences->Units"
ravas wrote
I'm interested in using this program for geometric construction / exploration.
What I need is for the 'distance point to point' tool to produce at least 8 numbers
to the right of the decimal point. Is this currently possible?
Also, is there a way to access this tool via the command line?

Thank you! :-]
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
I appreciate the prompt reply!
Your dedication to this project is encouraging.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
In reply to this post by dxli
fixed by commit: https://github.com/LibreCAD/LibreCAD/commit/2e6aa9fb4735be545bccccad7a561f4c58fdb53c

in the current git HEAD, all actions under main menu "Info" should be using "Edit->Current Drawing Preferences->Units" precision and formats.

Now for "point to point", it could read like:

Distance: 114.01754251 Cartesian: (70.00000000 , 90.00000000), Polar: (114.01754251<52° 7' 30.059" )
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
Thank you! I have downloaded Qt and unzipped boost (C:\boost\boost_1_57_0).
When I load Qt Creator and try to open librecad.pro it says:

Could not find qmake configuration file default.
Error while parsing file C:/1B/LibreCAD-2e6aa9fb4735be545bccccad7a561f4c58fdb53c/librecad.pro. Giving up.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
I needed to configure the project.
New problem:
Can not find Boost installation in /boost/boost_1_53_0

I'm using windows 7, btw.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
Sigh... I think I need to compile boost or something?
Running bootstrap gives:

'cl' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.

---

My research indicates I might need visual studio for cl.exe.
I think installing an 11gb program is above and beyond what I'm willing to do to get this compiled.
I'll wait for the next .exe release of LibreCad.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
you can follow our wiki for win32 building.

http://wiki.librecad.org/index.php/LibreCAD_Installation_from_Source#Building_LibreCAD_2.0_on_Windows

you will need boost, nsis, git, and qt, but you dont have to build boost.

also, it is easier in linux or osx
ravas wrote
Sigh... I think I need to compile boost or something?
Running bootstrap gives:

'cl' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.

---

My research indicates I might need visual studio for cl.exe.
I think installing an 11gb program is above and beyond what I'm willing to do to get this compiled.
I'll wait for the next .exe release of LibreCad.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
I already downloaded Qt (5.4) with the online installer... does it matter?
I downloaded boost 1_53 and updated custom.pro
I unchecked shadow build.
I could not find this in Qt 5.4:
"Select librecad as building target in Qt Creator (instead of tff2lff, which is another choice)"

With build configuration set to 'release',
I tried once with 'build project librecad' and once with 'build all'
with I think the same result each time:

../../generated/plugin/plotequation/obj/plot.o: In function `ZN4plot8execCommEP18Document_InterfaceP7QWidget7QString':
C:\1B\libcad\plugins\plotequation/plot.cpp:60: undefined reference to `mu::Parser::Parser()'
C:\1B\libcad\plugins\plotequation/plot.cpp:61: undefined reference to `mu::ParserBase::DefineConst(std::string const&, double)'
C:\1B\libcad\plugins\plotequation/plot.cpp:62: undefined reference to `mu::ParserBase::DefineConst(std::string const&, double)'
C:\1B\libcad\plugins\plotequation/plot.cpp:63: undefined reference to `mu::ParserBase::DefineVar(std::string const&, double*)'
C:\1B\libcad\plugins\plotequation/plot.cpp:64: undefined reference to `mu::ParserBase::DefineVar(std::string const&, double*)'
C:\1B\libcad\plugins\plotequation/plot.cpp:65: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:66: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:68: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:69: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:71: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:76: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:81: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:85: undefined reference to `mu::ParserBase::Eval() const'
../../generated/plugin/plotequation/obj/plot.o: In function `~Parser':
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `vtable for mu::Parser'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `mu::ParserBase::~ParserBase()'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `vtable for mu::Parser'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `mu::ParserBase::~ParserBase()'
../../generated/plugin/plotequation/obj/plot.o: In function `ZN4plot8execCommEP18Document_InterfaceP7QWidget7QString':
C:\1B\libcad\plugins\plotequation/plot.cpp:91: undefined reference to `mu::ParserError::GetMsg() const'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:84: recipe for target 'release\plotequation1.dll' failed
mingw32-make[3]: Leaving directory 'C:/1B/libcad/plugins/plotequation'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: Leaving directory 'C:/1B/libcad/plugins/plotequation'
Makefile:194: recipe for target 'sub-plotequation-make_first' failed
mingw32-make[1]: Leaving directory 'C:/1B/libcad/plugins'
makefile:127: recipe for target 'sub-plugins-make_first-ordered' failed
mingw32-make[3]: *** [release\plotequation1.dll] Error 1
mingw32-make[2]: *** [release] Error 2
mingw32-make[1]: *** [sub-plotequation-make_first] Error 2
mingw32-make: *** [sub-plugins-make_first-ordered] Error 2
12:52:06: The process "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project librecad (kit: Desktop Qt 5.4.1 MinGW 32bit)
When executing step "Make"
12:52:06: Elapsed time: 27:30.

Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
Please follow the instructions for command line, instead of qt-creator:

http://wiki.librecad.org/index.php/LibreCAD_Installation_from_Source#Building_Windows_by_command_line


ravas wrote
I already downloaded Qt (5.4) with the online installer... does it matter?
I downloaded boost 1_53 and updated custom.pro
I unchecked shadow build.
I could not find this in Qt 5.4:
"Select librecad as building target in Qt Creator (instead of tff2lff, which is another choice)"

With build configuration set to 'release',
I tried once with 'build project librecad' and once with 'build all'
with I think the same result each time:

../../generated/plugin/plotequation/obj/plot.o: In function `ZN4plot8execCommEP18Document_InterfaceP7QWidget7QString':
C:\1B\libcad\plugins\plotequation/plot.cpp:60: undefined reference to `mu::Parser::Parser()'
C:\1B\libcad\plugins\plotequation/plot.cpp:61: undefined reference to `mu::ParserBase::DefineConst(std::string const&, double)'
C:\1B\libcad\plugins\plotequation/plot.cpp:62: undefined reference to `mu::ParserBase::DefineConst(std::string const&, double)'
C:\1B\libcad\plugins\plotequation/plot.cpp:63: undefined reference to `mu::ParserBase::DefineVar(std::string const&, double*)'
C:\1B\libcad\plugins\plotequation/plot.cpp:64: undefined reference to `mu::ParserBase::DefineVar(std::string const&, double*)'
C:\1B\libcad\plugins\plotequation/plot.cpp:65: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:66: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:68: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:69: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:71: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:76: undefined reference to `mu::ParserBase::Eval() const'
C:\1B\libcad\plugins\plotequation/plot.cpp:81: undefined reference to `mu::ParserBase::SetExpr(std::string const&)'
C:\1B\libcad\plugins\plotequation/plot.cpp:85: undefined reference to `mu::ParserBase::Eval() const'
../../generated/plugin/plotequation/obj/plot.o: In function `~Parser':
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `vtable for mu::Parser'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `mu::ParserBase::~ParserBase()'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `vtable for mu::Parser'
C:\1B\libcad\plugins\plotequation/../../libraries/muparser/include/muParser.h:57: undefined reference to `mu::ParserBase::~ParserBase()'
../../generated/plugin/plotequation/obj/plot.o: In function `ZN4plot8execCommEP18Document_InterfaceP7QWidget7QString':
C:\1B\libcad\plugins\plotequation/plot.cpp:91: undefined reference to `mu::ParserError::GetMsg() const'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:84: recipe for target 'release\plotequation1.dll' failed
mingw32-make[3]: Leaving directory 'C:/1B/libcad/plugins/plotequation'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: Leaving directory 'C:/1B/libcad/plugins/plotequation'
Makefile:194: recipe for target 'sub-plotequation-make_first' failed
mingw32-make[1]: Leaving directory 'C:/1B/libcad/plugins'
makefile:127: recipe for target 'sub-plugins-make_first-ordered' failed
mingw32-make[3]: *** [release\plotequation1.dll] Error 1
mingw32-make[2]: *** [release] Error 2
mingw32-make[1]: *** [sub-plotequation-make_first] Error 2
mingw32-make: *** [sub-plugins-make_first-ordered] Error 2
12:52:06: The process "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project librecad (kit: Desktop Qt 5.4.1 MinGW 32bit)
When executing step "Make"
12:52:06: Elapsed time: 27:30.
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
C:\1B\libcad\scripts>build-windows.bat

C:\1B\libcad\scripts>call set-windows-env.bat

C:\1B\libcad\scripts>pushd ..

C:\1B\libcad>qmake.exe librecad.pro -r -spec win32-g++
'qmake.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\1B\libcad>if not _ == _NoClean (mingw32-make.exe clean )
'mingw32-make.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\1B\libcad>mingw32-make.exe -j4
'mingw32-make.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\1B\libcad>if NOT exist windows\LibreCAD.exe (
echo "Building windows\LibreCAD.exe failed!"
 exit /b /1
)
"Building windows\LibreCAD.exe failed!"
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

R. van Twisk
Administrator
My knowledge of Windows is highly outdated!

But from the below it looks like you don't have a path to the qmake.exe and mingw32-make.exe executables.

Ries
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
This post was updated on .
In reply to this post by ravas
The last problem was because I ran cmd.exe instead of "Qt 5.4 for desktop".
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
The clouds parted and a voice said "let there be an installer...".


Thanks guys!
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
Just FYI, these appeared at the end of the build:
2 warnings:
  !include: could not find: "custom.nsh" (nsis-5.4.nsi:6)
  File: "C:\Qt\Qt5.4.0\5.4\mingw491_32\translations\qt*.qm" -> no files found. (nsis-5.4.nsi:122)
---

Is there a command line command for the distance (point to point) tool?
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
 !include: could not find: "custom.nsh" (nsis-5.4.nsi:6)

is explained by the fact I never created that file ;-].

It's really a miracle it compiled the last time.
I just found out today I needed to:
press windows-key
type qt
open 'QT 5.4 for desktop'

instead of opening the command line normally.

The last time it worked only because I had used QT creator to build beforehand.
Considering that part failed with errors, I say it was a miracle... ;-]
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
we just merged a new feature designed by developer dinkel(Christian Luginbühl). This new feature requires libxml++ to build.

Need some help to get LibreCAD to build in win32, after this merge.

ravas wrote
!include: could not find: "custom.nsh" (nsis-5.4.nsi:6)

is explained by the fact I never created that file ;-].

It's really a miracle it compiled the last time.
I just found out today I needed to:
press windows-key
type qt
open 'QT 5.4 for desktop'

instead of opening the command line normally.

The last time it worked only because I had used QT creator to build beforehand.
Considering that part failed with errors, I say it was a miracle... ;-]
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

ravas
I just modified the rs_vector file for the ellipse tool fix,
so I got around that. ;D

What kind of help? Writting c++?
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
no. Just to figure out how to compile it with libxml++, similar way to what we described for boost and muparser in:

http://wiki.librecad.org/index.php/LibreCAD_Installation_from_Source#Building_LibreCAD_2.0_on_Windows
Reply | Threaded
Open this post in threaded view
|

Re: distance point to point precision

dxli
Need to create a "linux building" article in wiki. Update dependency to include libxml++

dxli wrote
no. Just to figure out how to compile it with libxml++, similar way to what we described for boost and muparser in:

http://wiki.librecad.org/index.php/LibreCAD_Installation_from_Source#Building_LibreCAD_2.0_on_Windows
12