|
[Sponsors] |
[CAD formats] MegaCads Installation on Ubuntu |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2016, 07:36 |
MegaCads Installation on Ubuntu
|
#1 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Dear potential MegaCads users,
several times I have been asked how to install MegaCads on Ubuntu systems. I know MegaCads always seems a bit bitchy when it comes to that. Therefore, I decided open a thread containing detailed instructions on how to get MegaCads run properly on Ubuntu. I figured these routines out over hours of trial-and-error approaches and now they seem to function quite perfectly and universally. I successfully run MegaCads on Ubuntu 14.04, 15.10 and 16.10 and use it for mesh generation for OpenFOAM (to use it alongside OpenFOAM see http://www.cfd-online.com/Forums/ope...-megacads.html after installation). Note: There are surely many other/easier ways to install MegaCads and I don't consider my solution flawless, but it works fine for me. Ever since I managed the installation on Ubuntu 16.10, I have never again encountered any setup related problems concerning installation or use of MegaCads. |
|
December 2, 2016, 07:51 |
MegaCads Installation on Ubuntu Step-by-Step
|
#2 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
The following instructions should apply to any recent 64 bit Ubuntu version.
Note: AFAIK the library 'libXp.so.6', which is required by MegaCads, is not natively available for Ubuntu 16. You therefore may need to build it from source (see below) Of course, you run all below instructions at your own risk and responsibility... I subdivided the procedure into several parts to make it easier to follow. Last edited by NablaDyn; December 3, 2016 at 14:13. |
|
December 2, 2016, 07:59 |
Ubuntu System Setup
|
#3 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Last edited by NablaDyn; December 3, 2016 at 14:16. |
|
December 2, 2016, 08:51 |
Embed MegaCads into Your Ubuntu System
|
#4 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
To embed MegaCads you need to adapt some environment variables in a certain file ('MegaEnvironment') that is shipped with your copy of MegaCads. There is also an installation instruction/client shipped with it, that tries to configure the software more or less automatically but that hasn't worked for me so far ...
Instead, I always use a specific and very strict file structure for storing the executables (feel free to adapt the following locations and names as you please, only be sure to keep consistency):
Last edited by NablaDyn; December 3, 2016 at 04:34. |
|
December 2, 2016, 10:16 |
The Missing Shared Libraries
|
#5 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Now, MegaCads itself is set up. But when you try to run it from shell by
Code:
$ csh Code:
% source MegaEnvironment Code:
% mcads2
Well, that should have done the magic. Now try from your INSTALLDIR: Code:
$ csh Code:
% source MegaEnvironment Code:
% mcads2 Last edited by NablaDyn; December 13, 2016 at 05:08. |
|
December 2, 2016, 12:28 |
|
#6 | |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
Thank you for the guide! I can now see the main screen. However, when I click file->import->STL-Ascii... nothing happens. No dialogs, no errors, nothing. Do you have suggestions what to do? When I run MegaCads, I get three warnings which are probably not related to this: Quote:
Mikko |
||
December 2, 2016, 13:00 |
|
#7 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
no these messages are due to the fonts MegaCads wants to use by default and of no importance. The graphical menu for import/export is not fully functional (as mentioned in the paper). You need to import data via script commands in the SAVE_PROC_FILE. You can use 'read_data' or 'import_geometry' for that. MegaCads comes with HTML help pages (simply view them in your browser). The help pages describe the functionalities and script commands. HINT: Try to use GUI and text editor simultaneously during mesh creation. This makes it way easier and faster to debug or develop your mesh. |
||
December 3, 2016, 04:55 |
MegaCads Launcher/Desktop Icon
|
#8 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Forgot the most important part ...
To shortcut the launching process, create a 'launch'-file containing the lines (adapt the path): Code:
#!/bin/csh source <path_to_MegaEnvironment> mcads2 Code:
$ chmod u+x <launch-file> The launcher needs to look somewhat like this: Code:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Name=MegaCads Comment=StructuredMeshGenerator Exec=<path_to_launcher_file> Icon=<path_to_launcher_icon> Terminal=false Categories=Applications |
|
December 4, 2016, 14:36 |
Installation difficulty
|
#9 |
Member
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13 |
The particular package I have was downloaded from DLR in Aug, 2015. Attached is some information that hopefully will help........
pic 1 extracted contents structure of the main folder pic 2 contents of "TOOLS" MegaEnvironment file error message Each step of the installation process was successful but I'm left with an error message. Can anyone help? Ron |
|
December 4, 2016, 15:20 |
|
#10 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
it seems you simply forgot to adapt the MegaEnvironment file. Your error is due to the splash screen image MegaCads cannot find because of the not yet defined environment variables. I attached a ME file with info about which lines to change (yellow: edit, red: remove). Additionally, your alias is obviously named 'mcads'. Either change the entry in your ME file (mcads->mcads2) or in the launch script (mcads2->mcads) and it should work... Hope it helps. Best regards, Martin Last edited by NablaDyn; December 5, 2016 at 05:44. |
||
December 5, 2016, 05:10 |
|
#11 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
The directory structure was a bit different for me than in the example. Here are the environment variables that I modified:
Code:
setenv MEGA_ROOT /home/mikko/apps/megacads/megacads-2.5.2/MegaCads-2.5.2/ setenv MEGA_BIN $MEGA_ROOT/BINARIES/PC64/ setenv MEGAPIXMAPS $MEGA_ROOT/MEGACADS/PIXMAP |
|
December 5, 2016, 05:40 |
|
#12 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
However, the instructions I gave should be consistent as long as you are aware of what your installation's root directory is. |
||
December 5, 2016, 11:10 |
|
#13 | |
Member
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13 |
Quote:
The MegaEnvr file shown is an unedited version. I had made all the correct entries......with one small exception. It's now up and running. Thanks. |
||
May 29, 2020, 14:17 |
MegaCads on Ubuntu 20.04 LTS
|
#14 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
To make MegaCads run on Ubuntu 20.04 LTS (Focal Fossa), follow the above steps until step "1. libnetcdf.so.4..." in post #5 and make sure to have gdebi installed, for convenience.
Instead of libnetcdf.so.7, you will probably have to install something like libnetcdf.so.15: Code:
sudo apt-get install libnetcdf15 Code:
sudo ln -s /usr/lib/x86_64-linux-gnu/libnetcdf.so.15 /usr/lib/libnetcdf.so.4 Code:
sudo apt-get install libxm4 Code:
sudo apt-get install libjpeg62
Now, execute the "mcads.sh" script as usual. The MegaCads GUI should now pop up. Important: Make sure you are using en-US locales on your system. Otherwise MegaCads may behave weirdly, crash or be unable to import/export data properly. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how do i fix installation error of ansys 19.0 on ubuntu 18.04 | rid_taki | ANSYS | 15 | June 7, 2021 07:32 |
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 | titanium | OpenFOAM Installation | 14 | February 20, 2020 12:46 |
openFOAM installation in ubuntu 11.10 | kirubhakaran | OpenFOAM Installation | 5 | February 17, 2012 03:16 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |