AdventureFEA in Ubuntu 9.04

More
14 years 8 months ago #3341 by JMB
AdventureFEA in Ubuntu 9.04 was created by JMB
Hello,

Over a year ago I had attempted to compile what appears to be excellent FEA software published by the Japanese called AdventureFEA. My attempts at compiling the various modules are documented here: adventurefeaproject.blogspot.com

I have managed to compile all modules of AdventureFEA (in a Ubuntu 9.04 32 bit VirtualBox client) except the following:

AdvVisual

I have some hunches:
1. That patches are needed for AdvVisual to overcome the compile errors.
2. That the patches should fix "#include ... " type of statements that overcome deprecated *.h files in the newer versions of gcc / g++. I had successfully compiled this module using g++-2.95 under Ubuntu 7.04 (see: adventurefeaproject.blogspot.com). But since g++-2.95 is not available for newer versions of Ubuntu perhaps the appropriate changes to the "#include ... " statements may fix the problem.
3. Looking at the AdvBCtool-1.02-x86_64-suse11.patch file one may get an idea of what changes are needed in the "#include ... " statements for the AdvVisual files.

I made as many changes as I can think of and have attached them here. I also generated a patch file, which I can post.

# Some g++ Migration rules for g++ <2.96 to g++ > 4.0+
# Old: New:
#include <assert.h> <cassert>
#include <fstream.h> <fstream>
#include <iomanip.h> <iomanip>
#include <iostream.h> <iostream>
#include <math.h> <cmath>
#include <memory.h> <memory>
#include <stdio.h> <cstdio>
#include <stdlib.h> <cstdlib>
#include <string.h> <cstring>
#include <time.h> <ctime>

# Add the following after the above include statements:
using namespace std;

These sed command may simplify the work of making the changes:
sed -i 's/assert.h>/cassert>/g' *.cpp *.h
sed -i 's/ctype.h>/ctype>/g' *.cpp *.h
sed -i 's/fstream.h>/fstream>/g' *.cpp *.h
sed -i 's/iomanip.h>/iomanip>/g' *.cpp *.h
sed -i 's/iostream.h>/iostream>/g' *.cpp *.h
sed -i 's/math.h>/math>/g' *.cpp *.h
sed -i 's/memory.h>/memory>/g' *.cpp *.h
sed -i 's/stdio.h>/cstdio>/g' *.cpp *.h
sed -i 's/stdlib.h>/cstdlib>/g' *.cpp *.h
sed -i 's/stream.h>/stream>/g' *.cpp *.h
sed -i 's/string.h>/cstring>/g' *.cpp *.h
sed -i 's/time.h>/ctime>/g' *.cpp *.h

My knowledge and skill at C/C++ is rusty and I am hoping somebody else is better skilled at it!

Regards,
JMB

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #3342 by Alex
Replied by Alex on topic Re:AdventureFEA in Ubuntu 9.04
Hi JMB

Good Job... As soon as I resume with AdventureFEA i will check to see what can be done w/ AdvVisual c++...

I am now working to get the used to Aster, as well as trying to compile OpenFOAM-1.6.x with Icc/mkl as well as trying to set up Code Saturne-2.0.0....

I will probably hire some coaching for Aster in France with DeltaCad...

dunno yet...

...would make me fell a true "Samurai" in Open Source FE modeling... :-)

Cheers

Alex

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.114 seconds
Powered by Kunena Forum