Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I cannot seem to find anything regarding drfftw.h on redhat. I believe it is causing tremendous amounts of errors simply because it is not there. Xoopic is a software from PTSG's website.
bash-4.1$ make
make all-recursive
make[1]: Entering directory `/home/helios/a/mlovele/Documents/xoopic'
Making all in otools
make[2]: Entering directory `/home/helios/a/mlovele/Documents/xoopic/otools'
g++ -DHAVE_CONFIG_H -I. -I../. -I../advisor -I../physics -I../otools -I../otools -I../config -I/home/helios/a/mlovele/Documents/Test/include -I//home/helios/a/mlovele/Documents/Test/include -I/usr/local/include -Wall -Wno-unused -g -O2 -pipe -g -O2 -pipe -DUNIX -DSCALAR_DOUBLE -c -o psdFieldDiag1d.o psdFieldDiag1d.cpp
In file included from psdFieldDiag1d.h:27,
from psdFieldDiag1d.cpp:7:
wrapFFTW.h:26:20: error: drfftw.h: No such file or directory
In file included from psdFieldDiag1d.h:27,
from psdFieldDiag1d.cpp:7:
wrapFFTW.h:87: error: ‘fftwnd_plan’ does not name a type
wrapFFTW.h:88: error: ‘rfftw_plan’ does not name a type
wrapFFTW.h:89: error: ‘rfftwnd_plan’ does not name a type
wrapFFTW.h:93: error: ISO C++ forbids declaration of ‘fftw_real’ with no type
wrapFFTW.h:93: error: expected ‘;’ before ‘*’ token
wrapFFTW.h:94: error: ISO C++ forbids declaration of ‘fftw_real’ with no type
wrapFFTW.h:94: error: expected ‘;’ before ‘*’ token
wrapFFTW.h: In member function ‘virtual void WrapFFTW::r1d_fft(double*, double*)’:
wrapFFTW.h:70: error: ‘p1Dr’ was not declared in this scope
wrapFFTW.h:70: error: ‘rfftw_one’ was not declared in this scope
make[2]: *** [psdFieldDiag1d.o] Error 1
make[2]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic/otools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic'
make: *** [all] Error 2
If I remember correctly (and I may not), the dfftw.h and sfftw.h files are created when the --enable-type-prefix switch is passed to the configure script for FFTW. This is also only applicable to FFTW version 2. You probably have FFTW version 3 installed or version 2 that was built without the --enable-type-prefix switch. The solution is to install FFTW version 2 (2.1.5 is the latest) and pass the --enable-type-prefix switch to the configure scri+pt.
bash-4.1$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
bash-4.1$ uname -a
Linux nucl120lnx01.ecn.purdue.edu 2.6.32-573.1.1.el6.x86_64 #1 SMP Tue Jul 14 02:46:51 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
That seems to be the common fix to the problem. I do not have root permissions on the computer I am using but I will try and install it to a local directory in hopes of that solving it.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #5.
The easy solution is to unpack the #4 refereed EL6.7 packages fftw2 + fftw2-devel.
And then copy the lib64/, include/ directories to /home/helios/(( lib, include )).
Unpacking : $ sh unPack_rpm.sh fftw2-2.1.5-21.el6.x86_64.rpm
And : $ sh unPack_rpm.sh fftw2-devel-2.1.5-21.el6.x86_64.rpm
( The 530B script (by @unSpawn) unPack_rpm.sh is attached.
-
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #9.
OK. Which version of fftw2 are you using ?
About the `spatialg.cpp' issue :
Please try downloading xoopic-2.70.2.tar.gz again.
And start from scratch with 1) $ tar xvf xoopic-2.70.2.tar.gz
2) $ cd xoopic-2.70.2/ && sh run_conf.sh
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #9.
Another question : Which gcc, g++ are you using ?
1) $ gcc --version | grep gcc
2) $ g++ --version | grep g++
`xoopic' : You can also try using my result from CentOS 6.7 - x86_64,
Xoopic-bin-2.70.2-1el6-x86_64.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing
... You can test the executable 'xoopic' with : $ ./xoopic | less
My configure line ( mpi failed, so no MPI is configured ) :
$ sh run_conf.sh --with-XGRAFIX-include=/usr/local/include/ --prefix=/home/knudfl/1-download/xoopic/Xoopic/ --with-sfftw-incdir=/usr/include/ --with-dfftw-incdir=/usr/include/ --with-sfftw-libdir=/usr/lib64/ --with-hdf5-incdir=/usr/include/ --with-hdf5-libdir=/usr/lib64 2>&1 | tee configure-log.txt
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494
Rep:
Re #12.
Please read post #6 : Better use the system version, fftw2-2.1.5-21.
And no reason to build any fftw2.
Use the system files, fftw2-2.1.5-21.el6 + fftw2-devel-2.1.5-21.el6.
And no reason to build any xoopic :
Download ``Xoopic-bin-2.70.2-1el6-x86_64.tar.gz''. See post #11.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.