How to install solvespace from source code

Devuan does not provide snapd package because snapd requires systemd.

https://github.com/solvespace/solvespace/tree/version3#via-source-code

recommends to install the following packages to build:

sudo apt install git build-essential cmake zlib1g-dev libpng-dev \
                 libcairo2-dev libfreetype6-dev libjson-c-dev \
                 libfontconfig1-dev libgtkmm-3.0-dev libpangomm-1.4-dev \
                 libgl-dev libglu-dev libspnav-dev

I needed to install libeigen3-dev to solve the compilation error.

[ 14%] Building CXX object src/CMakeFiles/solvespace-core.dir/bsp.cpp.o
In file included from /home/penguin/Workshop/wip/solvespace/src/bsp.cpp:9:
/home/penguin/Workshop/wip/solvespace/src/solvespace.h:39:10: fatal error: Eigen/SparseCore: No such file or directory
   39 | #include <Eigen/SparseCore>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/solvespace-core.dir/build.make:82: src/CMakeFiles/solvespace-core.dir/bsp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:388: src/CMakeFiles/solvespace-core.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
/build$ sudo make install
[  8%] Built target dxfrw
[ 14%] Built target mimalloc-static
[ 34%] Built target solvespace-core
[ 68%] Built target resources
[ 70%] Built target solvespace
[ 71%] Built target solvespace-headless
[ 72%] Built target solvespace-cli
[ 76%] Built target slvs
[ 76%] Built target CDemo
[ 77%] Built target solvespace-debugtool
[ 98%] Built target solvespace-testsuite
[100%] Built target solvespace-benchmark
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/share/solvespace/freedesktop/solvespace-48x48.png
-- Installing: /usr/local/share/applications/solvespace.desktop
-- Installing: /usr/local/share/metainfo/com.solvespace.SolveSpace.metainfo.xml
-- Installing: /usr/local/share/mime/packages/solvespace-slvs.xml
-- Installing: /usr/local/share/icons/hicolor/scalable/apps/solvespace.svg
-- Installing: /usr/local/share/icons/hicolor/scalable/mimetypes/application-x-solvespace.svg
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/solvespace.png
-- Installing: /usr/local/share/icons/hicolor/16x16/mimetypes/application-x-solvespace.png
-- Installing: /usr/local/share/icons/hicolor/24x24/apps/solvespace.png
-- Installing: /usr/local/share/icons/hicolor/24x24/mimetypes/application-x-solvespace.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/solvespace.png
-- Installing: /usr/local/share/icons/hicolor/32x32/mimetypes/application-x-solvespace.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/solvespace.png
-- Installing: /usr/local/share/icons/hicolor/48x48/mimetypes/application-x-solvespace.png
-- Installing: /usr/local/share/solvespace/banner.txt
-- Installing: /usr/local/share/solvespace/icons/graphics-window/angle.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/arc.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/assemble.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/bezier.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/circle.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/construction.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/equal.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/extrude.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/helix.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/horiz.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/image.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/in3d.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/lathe.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/length.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/line.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/ontoworkplane.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/other-supp.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/parallel.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/perpendicular.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/pointonx.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/point.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/rectangle.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/ref.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/revolve.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/same-orientation.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/sketch-in-3d.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/sketch-in-plane.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/step-rotate.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/step-translate.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/symmetric.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/tangent-arc.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/text.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/trim.png
-- Installing: /usr/local/share/solvespace/icons/graphics-window/vert.png
-- Installing: /usr/local/share/solvespace/icons/text-window/constraint.png
-- Installing: /usr/local/share/solvespace/icons/text-window/construction.png
-- Installing: /usr/local/share/solvespace/icons/text-window/edges.png
-- Installing: /usr/local/share/solvespace/icons/text-window/faces.png
-- Installing: /usr/local/share/solvespace/icons/text-window/occluded-visible.png
-- Installing: /usr/local/share/solvespace/icons/text-window/occluded-stippled.png
-- Installing: /usr/local/share/solvespace/icons/text-window/occluded-invisible.png
-- Installing: /usr/local/share/solvespace/icons/text-window/mesh.png
-- Installing: /usr/local/share/solvespace/icons/text-window/normal.png
-- Installing: /usr/local/share/solvespace/icons/text-window/outlines.png
-- Installing: /usr/local/share/solvespace/icons/text-window/point.png
-- Installing: /usr/local/share/solvespace/icons/text-window/shaded.png
-- Installing: /usr/local/share/solvespace/icons/text-window/workplane.png
-- Installing: /usr/local/share/solvespace/locales.txt
-- Installing: /usr/local/share/solvespace/locales/cs_CZ.po
-- Installing: /usr/local/share/solvespace/locales/de_DE.po
-- Installing: /usr/local/share/solvespace/locales/en_US.po
-- Installing: /usr/local/share/solvespace/locales/fr_FR.po
-- Installing: /usr/local/share/solvespace/locales/uk_UA.po
-- Installing: /usr/local/share/solvespace/locales/es_AR.po
-- Installing: /usr/local/share/solvespace/locales/tr_TR.po
-- Installing: /usr/local/share/solvespace/locales/ru_RU.po
-- Installing: /usr/local/share/solvespace/locales/zh_CN.po
-- Installing: /usr/local/share/solvespace/locales/ja_JP.po
-- Installing: /usr/local/share/solvespace/fonts/unifont.hex.gz
-- Installing: /usr/local/share/solvespace/fonts/private/0-check-false.png
-- Installing: /usr/local/share/solvespace/fonts/private/1-check-true.png
-- Installing: /usr/local/share/solvespace/fonts/private/2-radio-false.png
-- Installing: /usr/local/share/solvespace/fonts/private/3-radio-true.png
-- Installing: /usr/local/share/solvespace/fonts/private/4-stipple-dot.png
-- Installing: /usr/local/share/solvespace/fonts/private/5-stipple-dash-long.png
-- Installing: /usr/local/share/solvespace/fonts/private/6-stipple-dash.png
-- Installing: /usr/local/share/solvespace/fonts/private/7-stipple-zigzag.png
-- Installing: /usr/local/share/solvespace/fonts/unicode.lff.gz
-- Installing: /usr/local/share/solvespace/fonts/BitstreamVeraSans-Roman-builtin.ttf
-- Installing: /usr/local/share/solvespace/shaders/imesh.frag
-- Installing: /usr/local/share/solvespace/shaders/imesh.vert
-- Installing: /usr/local/share/solvespace/shaders/imesh_point.frag
-- Installing: /usr/local/share/solvespace/shaders/imesh_point.vert
-- Installing: /usr/local/share/solvespace/shaders/imesh_tex.frag
-- Installing: /usr/local/share/solvespace/shaders/imesh_texa.frag
-- Installing: /usr/local/share/solvespace/shaders/imesh_tex.vert
-- Installing: /usr/local/share/solvespace/shaders/mesh.frag
-- Installing: /usr/local/share/solvespace/shaders/mesh.vert
-- Installing: /usr/local/share/solvespace/shaders/mesh_fill.frag
-- Installing: /usr/local/share/solvespace/shaders/mesh_fill.vert
-- Installing: /usr/local/share/solvespace/shaders/edge.frag
-- Installing: /usr/local/share/solvespace/shaders/edge.vert
-- Installing: /usr/local/share/solvespace/shaders/outline.vert
-- Installing: /usr/local/share/solvespace/threejs/three-r111.min.js.gz
-- Installing: /usr/local/share/solvespace/threejs/hammer-2.0.8.js.gz
-- Installing: /usr/local/share/solvespace/threejs/SolveSpaceControls.js
-- Installing: /usr/local/lib/libslvs.so.3.1
-- Installing: /usr/local/lib/libslvs.so.1
-- Installing: /usr/local/lib/libslvs.so
-- Installing: /usr/local/include/slvs.h
-- Installing: /usr/local/bin/solvespace
-- Installing: /usr/local/bin/solvespace-cli
Posted in GNU/Linux | Tagged , , , , , | Leave a comment

Medium boiled egg

Boil water in a pot

Put eggs in it and let them boil for six minutes.

Put the boiled eggs in a bowl of cold water.

Posted in Health | Tagged , | Leave a comment

How to set up default browser in LXQt?

Click the application menu icon at the left bottom corner. Click the submenus in following order.

Preferences > LXQt Settings > Session Settings

Click Environment (Advanced) menu

Set BROWSER variable to brave-browser (the execute file of Brave browser in my case)

Posted in GNU/Linux | Tagged , , , | Leave a comment

How to turn off desktop switching by Alt + mouse wheel

I’m running LXQt Desktop Environment. And I use openbox as the window manager.

I ran into a problem. When I press Alt key and turning mouse wheel in Blender to execute a function of an addon, Alt + mouse wheel binding interrupts the function, switch to another desktop.

I needed to turn off desktop switching by Alt + mouse wheel in openbox.

The openbox keyboard / mouse binding page does not explain how to turn it off.

I found the following link after Internet search:

How to turn off desktop switching with mouse wheel in LXDE – SOLVED (https://www.pclinuxos.com/forum/index.php?topic=112134.0)

The configuration file of openbox is ~/.config/openbox/lxqt-rc.xml.

I commented out two blocks in lxqt-rc.xml and saved it using gvim.

<!-- __setting__ 9/25/2022
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
	</mousebind>
-->
[...snip...]
 <context name="Desktop">
	    <!-- __setting__ 9/25/2022, turn off desktop switching with mouse scroll  
      <mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
		    </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
		    </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
		    </mousebind>
	    -->
    </context>

To restart openbox, ‘openbox –restart’ in a QTerminal.

Posted in GNU/Linux | Tagged , , , , , | Leave a comment

Screencast-Keys v3.8 supports Blender 3.x

I’m running Blender 3.2.1.

The addon download link is https://github.com/nutti/Screencast-Keys/releases

Installation instruction is below.

https://youtu.be/6d_Lv6xN5bQ

Posted in Blender | Tagged , , | Leave a comment

Unitool UT6016 torque wrench calibration

3mm allen key to adjust the spring

a luggage scale to measure force.  

Distance: 14.96inch (380mm)

Final measurement

Force reading: 40.14 lb

T = 40.14 x 14.96 / 12.00

  = 50.0412

I did use the following instruction. But, one thing I learned was to hold the torque wrench’s square drive using a vise. Cylinder shape of socket wall has small contact area on the jaw of vice. It would slip if the target torque value is big.

Posted in DIY | Leave a comment

2007 Honda Civic 2.0 maintenance log

// 175,000 km 8/6/2022

engine filter and oil replacement, 50,000 KRW

// 171,490 km 9/4/2021
tire replacement
Continental Viking, 4 seasons x4
236,200₩ + 80,000₩

replaced front right fog light
10,000₩

168,331 km 4/14/2021
applied Super Lube to all door hinges, window slides, and sun roof rails.

// 167,354 km 3/11/2021
cartamin,

// 166,383 km 1/26/2021
engine oil and filter change
thermostat, radiator cap change

// 163,623 km , 3/1/2020

  • Replacement of spark plugs, Bosh Iridium
  • engine oil change
  • battery was discharged completely, the green dot was black, charged it.
    To reset the security system,
    turn the ignition key in the driver door, turn left once, neutral positon, turn right and neutral positon twice.

// 159,156 km , 2/12/2019
Repacement

  • Front driver side brake caliper assembly
  • accecery belt
    () bleed air in the system.

//158,499 km ,1/13/2019

Pcv valve replacement

// 158,385 km , 01/09/2019
Replaced assesory belt idler pully and tensioner pully

() had a wrong belt, 10 mm to 20 mm short.

// 158,022 km , 12/25/2018
Replaced left front brake disc and pads

// 157,482 km, 11/29/2018

Applied the Turtle wax

// 157,437 km, 11/28/2018

replaced the battery

Honda civic battery

36AH/5 HR
45AH/20 HR

H 223
L 238
W 129

Remote key battery
CR1616 3V
D 11 mm

Posted in DIY | Tagged , | Leave a comment

How to RESTORE your headlights for $10! Turtle Wax Headlight Restoration Kit is the BEST!

I’m going to try it on my car soon.

Posted in DIY | Tagged , , | Leave a comment

Electric power generator that runs by itself.

(WIP)

When I heard about Free Energy, I was skeptical in the beginning. At that time I did not know overall framework of laws and theories in physics. The energy conservation law is based on closed system. It’s impossible to build a machine that generates more output than input energy. Because in a closed system, the initial energy is given, it can not be changed.

Some years passed. One day I was introduced to the Systems Theory. It opened up new way of seeing the world. There exits two types of system: close system, open system. Except human’s science and technology, everything from bacteria to our galaxy is open system. A bacteria, simple life form, exchange energy surrounding environment.

Provided energy potential exits everywhere in various form, once the condition is right, a physical phenomenon manifest itself. For example, there are lightening, storm, and forceful climate phenomena on Earth. Where dose the electric energy of lightening come from? It comes from Earth’s atmosphere and surface charge.

Posted in Science and technologies | Leave a comment

Battery replacement of an old UPS

I recently got an old UPS manufactured in 2007. It had two original batteries rated 12V, 7.2AH. Voltage of the batteries were below 1.0 V. Battery recondition did not work out.

I learned that a domestic battery company sells UPS batteries rated 12V, 7AH with exact dimension. So I bought the two batteries.

Model: KIN-1000AP, 600W / 1000VA

Back side
UPS instruction
12V, 7AH battery
Two batteries in series
Battery test result
The UPS powers a PC and a monitor.
Posted in DIY | Tagged , | Leave a comment