Installation Geodome in Devuan

Geodome helps to create Geodesic dome models and provide actual data to build real-size dome. This small program provides all information to build a real-size dome – strut size, 2D layout template of mesh triangles. Most dome programs only display 3D models and numerical data in computer.

(2016/04/19)

Required packages for Devuan GNU/Linux or Debian 8.x:
libgl1-mesa-dev
libxmu-dev libxmu-headers
lib3ds-dev

Installation log
libgl1-mesa-dev

$ sudo apt-get install libgl1-mesa-dev
Downgrade the following packages:
1) libgl1-mesa-glx [10.6.8-1 (now) -> 10.3.2-1+deb8u1 (stable)]
2) libglapi-mesa [10.6.8-1 (now) -> 10.3.2-1+deb8u1 (stable)]
3) libx11-xcb1 [2:1.6.3-1 (now) -> 2:1.6.2-3 (stable)]
4) libxshmfence1 [1.2-1 (now) -> 1.1-4 (stable)]
5) libxxf86vm1 [1:1.1.4-1 (now) -> 1:1.1.3-1+b1 (stable)]

The following packages will be DOWNGRADED:
libgl1-mesa-glx libglapi-mesa libx11-xcb1 libxshmfence1 libxxf86vm1
The following NEW packages will be installed:
libgl1-mesa-dev libx11-xcb-dev{a} libxcb-dri2-0-dev{a} libxcb-dri3-dev{a}
libxcb-glx0-dev{a} libxcb-present-dev{a} libxcb-randr0-dev{a} libxcb-render0-dev{a}
libxcb-shape0-dev{a} libxcb-sync-dev{a} libxcb-xfixes0-dev{a} libxdamage-dev{a}
libxshmfence-dev{a} libxxf86vm-dev{a} x11proto-damage-dev{a} x11proto-xf86vidmode-dev{a}
0 packages upgraded, 16 newly installed, 5 downgraded, 0 to remove and 94 not upgraded.
Need to get 863 kB of archives. After unpacking 2,262 kB will be used.

Downgrade the following packages:
1) libglu1-mesa [9.0.0-2.1 (now) -> 9.0.0-2 (stable)]
2) libxt6 [1:1.1.5-1 (now) -> 1:1.1.4-1+b1 (stable)]

Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libglu1-mesa libxt6
The following NEW packages will be installed:
freeglut3-dev libglu1-mesa-dev{a} libice-dev{a} libsm-dev{a} libxt-dev{a}
0 packages upgraded, 5 newly installed, 2 downgraded, 0 to remove and 94 not upgraded.
Need to get 1,246 kB of archives. After unpacking 3,386 kB will be used.

libxmu-dev

$ sudo aptitude install libxmu-dev
The following NEW packages will be installed:
libxmu-dev libxmu-headers{a}
0 packages upgraded, 2 newly installed, 0 to remove and 94 not upgraded.
Need to get 131 kB of archives. After unpacking 592 kB will be used.
Do you want to continue? [Y/n/?] Y
Get: 1 http://packages.devuan.org/merged/ jessie/main libxmu-dev amd64 2:1.1.2-1 [63.0 kB]
Get: 2 http://packages.devuan.org/merged/ jessie/main libxmu-headers all 2:1.1.2-1 [68.0 kB]

lib3ds-dev

$ sudo aptitude install lib3ds-dev
The following NEW packages will be installed:
lib3ds-1-3{a} lib3ds-dev
0 packages upgraded, 2 newly installed, 0 to remove and 94 not upgraded.
Need to get 86.0 kB of archives. After unpacking 336 kB will be used.
Do you want to continue? [Y/n/?] Y
Get: 1 http://packages.devuan.org/merged/ jessie/main lib3ds-1-3 amd64 1.3.0-8 [50.2 kB]
Get: 2 http://packages.devuan.org/merged/ jessie/main lib3ds-dev amd64 1.3.0-8 [35.8 kB]


$ make
cc -O -c -o dome_3ds.o dome_3ds.c
cc -O -c -o 3ds_utils.o 3ds_utils.c
cc -s -o dome_3ds dome_3ds.o dome_file.o dome_math.o 3ds_utils.o utils.o -l3ds -lm

$ sudo make install
mkdir -p /usr/local/doc/geodome-1.2
install -s dome dome_struts dome_cover dome_layout dome_3ds /usr/local/bin
install -m 0444 AUTHORS INSTRUCTIONS README /usr/local/doc/geodome-1.2

Old content In Debian Wheezy

I had to install dependent packages to build it from source. It requires OpenGL, Glu and 3D Studio libraries.

OpenGL and Glu libraries:
$ sudo apt-get install mesa-common-dev
$ sudo apt-get install freeglut3-dev

3D Studio library:
$ sudo apt-get install lib3ds-dev

After extracting geodome-1.2.tar.gz in a temporary build directory by ‘tar zxvf geodome-1.2.tar.gz’, building procedure is simple.
$ make

It would finish building less than a minute. Install the binary files. Below is actual screen output.
$ sudo make install
mkdir -p /usr/local/doc/geodome-1.2
install -s dome dome_struts dome_cover dome_layout dome_3ds /usr/local/bin
install -m 0444 AUTHORS INSTRUCTIONS README /usr/local/doc/geodome-1.2

What it did was to copy the five programs to /usr/local/bin directory for system-wide access by users. Check your PATH variable whether it includes /usr/local/bin in the search directories. For instance echo $PATH shows
/home/penguin/bin:/usr/local/mbdyn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
If not, make symbolic links of the programs in one of binary directories.

To learn about geodome, read the on-line user manual or INSTRUCTIONS file in the build directory.

For Windows users, there is DomeMaker 3D for sale in amazing price. I might get a copy of it for testing features one day.

(2014/2/25)
I had this run-time error message.
geodome: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory
libglut.so.3 disappered during freqent uprade?

freeglut3 package has the missing file.
/usr/lib/x86_64-linux-gnu/libglut.so.3
/usr/lib/x86_64-linux-gnu/libglut.so.3.9.0
/usr/share/doc/freeglut3/changelog.Debian.gz
/usr/share/doc/freeglut3/changelog.gz
/usr/share/doc/freeglut3/copyright

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux, Science and technologies and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s