pchaumet / IF-DDA

electromagnetic scattering in three dimensions
4 stars 1 forks source link

Cannot build and install in Fedora release 32 #1

Open kbmsharifmahmood opened 4 years ago

kbmsharifmahmood commented 4 years ago

Using Fedora release 32 (Thirty Two)

After following the instructions:

  1. dnf install qt* qt-devel gives:

    Installed:
    cmake-3.17.4-1.fc32.x86_64                                                    
    cmake-data-3.17.4-1.fc32.noarch                                               
    cmake-rpm-macros-3.17.4-1.fc32.noarch                                         
    cups-devel-1:2.3.3-13.fc32.x86_64                                             
    extra-cmake-modules-5.70.0-1.fc32.noarch                                      
    gcc-c++-10.2.1-1.fc32.x86_64                                                  
    glib2-devel-2.64.5-1.fc32.x86_64                                              
    gmp-c++-1:6.1.2-13.fc32.x86_64                                                
    gmp-devel-1:6.1.2-13.fc32.x86_64                                              
    gnutls-c++-3.6.15-1.fc32.x86_64                                               
    gnutls-devel-3.6.15-1.fc32.x86_64                                             
    keyutils-libs-devel-1.6-4.fc32.x86_64                                         
    kf5-rpm-macros-5.70.0-2.fc32.noarch                                           
    krb5-devel-1.18.2-20.fc32.x86_64                                              
    libblkid-devel-2.35.2-1.fc32.x86_64                                           
    libcom_err-devel-1.45.5-3.fc32.x86_64                                         
    libffi-devel-3.1-24.fc32.x86_64                                               
    libidn2-devel-2.3.0-2.fc32.x86_64                                             
    libinput-devel-1.16.1-1.fc32.x86_64                                           
    libkadm5-1.18.2-20.fc32.x86_64                                                
    libmount-devel-2.35.2-1.fc32.x86_64                                           
    libsecret-devel-0.20.3-1.fc32.x86_64                                          
    libselinux-devel-3.0-5.fc32.x86_64                                            
    libsepol-devel-3.0-4.fc32.x86_64                                              
    libtasn1-devel-4.16.0-1.fc32.x86_64                                           
    libtasn1-tools-4.16.0-1.fc32.x86_64                                           
    libuv-1:1.38.0-2.fc32.x86_64                                                  
    libverto-devel-0.3.0-9.fc32.x86_64                                            
    libxkbcommon-devel-0.10.0-2.fc32.x86_64                                       
    mesa-libEGL-devel-20.1.7-1.fc32.x86_64                                        
    nettle-devel-3.5.1-5.fc32.x86_64                                              
    p11-kit-devel-0.23.21-2.fc32.x86_64                                           
    pcre-cpp-8.44-1.fc32.x86_64                                                   
    pcre-devel-8.44-1.fc32.x86_64                                                 
    pcre-utf16-8.44-1.fc32.x86_64                                                 
    pcre-utf32-8.44-1.fc32.x86_64                                                 
    pcre2-devel-10.35-4.fc32.x86_64                                               
    pulseaudio-libs-devel-13.99.1-4.fc32.x86_64                                   
    qt-assistant-adp-devel-4.6.3-22.fc32.x86_64                                   
    qt-creator-4.12.4-1.fc32.x86_64                                               
    qt-creator-data-4.12.4-1.fc32.noarch                                          
    qt-creator-doc-4.12.4-1.fc32.noarch                                           
    qt-creator-translations-4.12.4-1.fc32.noarch                                  
    qt-devel-1:4.8.7-55.fc32.x86_64                                               
    qt-devel-private-1:4.8.7-55.fc32.noarch                                       
    qt-mobility-devel-1.2.2-0.37.20140317git169da60c.fc32.x86_64                  
    qt5-devel-5.13.2-2.fc32.noarch                                                
    qt5-doctools-5.14.2-1.fc32.x86_64                                             
    qt5-qt3d-devel-5.14.2-1.fc32.x86_64                                           
    qt5-qtaccountsservice-devel-0.6.0-12.fc32.x86_64                              
    qt5-qtbase-devel-5.14.2-5.fc32.x86_64                                         
    qt5-qtbase-private-devel-5.14.2-5.fc32.x86_64                                 
    qt5-qtbase-static-5.14.2-5.fc32.x86_64                                        
    qt5-qtcharts-devel-5.14.2-1.fc32.x86_64                                       
    qt5-qtconfiguration-devel-0.3.1-11.fc32.x86_64                                
    qt5-qtconnectivity-devel-5.14.2-1.fc32.x86_64                                 
    qt5-qtdatavis3d-devel-5.13.2-2.fc32.x86_64                                    
    qt5-qtdeclarative-devel-5.14.2-1.fc32.x86_64                                  
    qt5-qtdeclarative-static-5.14.2-1.fc32.x86_64                                 
    qt5-qtenginio-devel-1:1.6.2-29.fc32.x86_64                                    
    qt5-qtgamepad-devel-5.14.2-1.fc32.x86_64                                      
    qt5-qtlocation-devel-5.14.2-2.fc32.x86_64                                     
    qt5-qtmultimedia-devel-5.14.2-1.fc32.x86_64                                   
    qt5-qtnetworkauth-devel-5.14.2-1.fc32.x86_64                                  
    qt5-qtquickcontrols2-devel-5.14.2-1.fc32.x86_64                               
    qt5-qtremoteobjects-devel-5.14.2-1.fc32.x86_64                                
    qt5-qtscript-devel-5.14.2-1.fc32.x86_64                                       
    qt5-qtscxml-devel-5.14.2-1.fc32.x86_64                                        
    qt5-qtsensors-devel-5.14.2-1.fc32.x86_64                                      
    qt5-qtserialbus-devel-5.14.2-1.fc32.x86_64                                    
    qt5-qtserialport-devel-5.14.2-1.fc32.x86_64                                   
    qt5-qtspeech-devel-5.14.2-1.fc32.x86_64                                       
    qt5-qtsvg-devel-5.14.2-1.fc32.x86_64                                          
    qt5-qttools-devel-5.14.2-1.fc32.x86_64                                        
    qt5-qttools-static-5.14.2-1.fc32.x86_64                                       
    qt5-qtvirtualkeyboard-devel-5.14.2-1.fc32.x86_64                              
    qt5-qtwayland-devel-5.14.2-4.fc32.x86_64                                      
    qt5-qtwebchannel-devel-5.14.2-1.fc32.x86_64                                   
    qt5-qtwebengine-devel-5.14.2-2.fc32.x86_64                                    
    qt5-qtwebkit-devel-5.212.0-0.46.alpha4.fc32.x86_64                            
    qt5-qtwebsockets-devel-5.14.2-1.fc32.x86_64                                   
    qt5-qtwebview-devel-5.14.2-1.fc32.x86_64                                      
    qt5-qtx11extras-devel-5.14.2-1.fc32.x86_64                                    
    qt5-qtxmlpatterns-devel-5.14.2-1.fc32.x86_64                                  
    qt5-rpm-macros-5.14.2-3.fc32.noarch                                           
    qtbrowserplugin-devel-2.4-15.fc32.x86_64                                      
    qtermwidget-devel-0.14.1-4.fc32.x86_64                                        
    qtiocompressor-devel-2.3.1-21.fc32.x86_64                                     
    qtkeychain-devel-0.9.1-4.fc32.x86_64                                          
    qtkeychain-qt5-devel-0.9.1-4.fc32.x86_64                                      
    qtlockedfile-devel-2.4-31.20150629git5a07df5.fc32.x86_64                      
    qtlockedfile-qt5-devel-2.4-31.20150629git5a07df5.fc32.x86_64                  
    qtsingleapplication-devel-2.6.1-38.fc32.x86_64                                
    qtsingleapplication-qt5-devel-2.6.1-38.fc32.x86_64                            
    qtsinglecoreapplication-devel-2.6.1-38.fc32.x86_64                            
    qtsinglecoreapplication-qt5-devel-2.6.1-38.fc32.x86_64                        
    qtwebkit-devel-2.3.4-29.fc32.x86_64                                           
    rhash-1.3.8-3.fc32.x86_64
  2. dnf install gcc-c++ gcc-gfortran gives:

    Installed:
    gcc-gfortran-10.2.1-1.fc32.x86_64    libquadmath-devel-10.2.1-1.fc32.x86_64
  3. dnf install fftw* gives:

    Installed:
    annobin-9.27-1.fc32.x86_64                                                    
    dwz-0.13-2.fc32.x86_64                                                        
    efi-srpm-macros-4-4.fc32.noarch                                               
    fftw-mpich-devel-3.3.8-7.fc32.x86_64                                          
    fftw-mpich-libs-3.3.8-7.fc32.x86_64                                           
    fftw-mpich-libs-double-3.3.8-7.fc32.x86_64                                    
    fftw-mpich-libs-long-3.3.8-7.fc32.x86_64                                      
    fftw-mpich-libs-single-3.3.8-7.fc32.x86_64                                    
    fftw-mpich-static-3.3.8-7.fc32.x86_64                                         
    fftw-openmpi-devel-3.3.8-7.fc32.x86_64                                        
    fftw-openmpi-libs-3.3.8-7.fc32.x86_64                                         
    fftw-openmpi-libs-double-3.3.8-7.fc32.x86_64                                  
    fftw-openmpi-libs-long-3.3.8-7.fc32.x86_64                                    
    fftw-openmpi-libs-single-3.3.8-7.fc32.x86_64                                  
    fftw-openmpi-static-3.3.8-7.fc32.x86_64                                       
    fftw-static-3.3.8-7.fc32.x86_64                                               
    fonts-srpm-macros-2.0.3-1.fc32.noarch                                         
    fpc-srpm-macros-1.3-1.fc32.noarch                                             
    ghc-srpm-macros-1.5.0-2.fc32.noarch                                           
    gnat-srpm-macros-4-11.fc32.noarch                                             
    go-srpm-macros-3.0.9-1.fc32.noarch                                            
    hwloc-libs-2.0.4-3.fc32.x86_64                                                
    infinipath-psm-3.3-26_g604758e_open.5.fc32.x86_64                             
    libfabric-1.11.0rc1-1.fc32.x86_64                                             
    libpsm2-11.2.86-4.fc32.x86_64                                                 
    mpich-3.3.2-4.fc32.x86_64                                                     
    mpich-devel-3.3.2-4.fc32.x86_64                                               
    munge-libs-0.5.13-7.fc32.x86_64                                               
    nim-srpm-macros-3-2.fc32.noarch                                               
    ocaml-srpm-macros-6-2.fc32.noarch                                             
    openblas-srpm-macros-2-7.fc32.noarch                                          
    openmpi-4.0.4-1.fc32.x86_64                                                   
    openmpi-devel-4.0.4-1.fc32.x86_64                                             
    opensm-libs-3.3.23-1.fc32.x86_64                                              
    orangefs-2.9.7-8.fc32.x86_64                                                  
    perl-srpm-macros-1-34.fc32.noarch                                             
    pmix-3.1.5-1.fc32.x86_64                                                      
    python-srpm-macros-3-58.fc32.noarch                                           
    redhat-rpm-config-150-1.fc32.noarch                                           
    rpm-mpi-hooks-6-5.fc32.noarch                                                 
    rust-srpm-macros-14-1.fc32.noarch                                             
    tcsh-6.22.02-3.fc32.x86_64                                                    
    ucx-1.6.1-2.fc32.x86_64
  4. dnf install hdf hdf5 hdf5-static hdf5-devel gives:

    Installed:
    hdf5-devel-1.10.5-6.fc32.x86_64        hdf5-static-1.10.5-6.fc32.x86_64      
    libaec-devel-1.0.4-3.fc32.x86_64
  5. qmake-qt4 "CONFIG+=fftw hdf5" was inserted. make gives error messages, too many warnings also:

Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
cdmlib.f:1135:50:

  912 |             call hdf5write1d(group_iddip,datasetname,dreal(wrk(:,1))
      |                                                     2
......
 1135 |          call hdf5write1d(group_idopt,datasetname,numaper,dim)
      |                                                  1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
cdmlib.f:1147:54:

  894 |          call hdf5write1d_int(group_iddip,datasetname,nx,dim)
      |                                                      2
......
 1147 |          call hdf5write1d_int(group_idopt,datasetname,numaperinc,dim)
      |                                                      1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).
cdmlib.f:2245:72:

 2245 |      $                          ,nloin)
      |                                                                        1
Error: Missing actual argument for argument ‘_formal_639’ at (1)
make[1]: *** [Makefile:482: cdmlib.o] Error 1
make[1]: Leaving directory '/home/kbmsharifmahmood/Downloads/IF-DDA-master/cdmlib'
make: *** [Makefile:118: sub-cdmlib-cdmlib-pro-make_default-ordered] Error 2

make install gives:

make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/kbmsharifmahmood/Downloads/IF-DDA-master/cdmlib'
cd cdm/ && make -f Makefile install
make[1]: Entering directory '/home/kbmsharifmahmood/Downloads/IF-DDA-master/cdm'
g++ -mcmodel=large -Wl,-O1 -o cdm obj/cdmMain.o obj/cdmOptions.o obj/cdmOptionsWidget.o obj/cdmOptionsWindow.o obj/cdmBeamConfigDialog.o obj/cdmObjectConfigDialog.o obj/cdmEpsilonConfigDialog.o obj/cdmRunWidget.o obj/cdmRun.o obj/cdmPlot.o obj/QsLog.o obj/QsDebugOutput.o obj/QsLogDest.o obj/Assistant.o obj/moc_cdmMain.o obj/moc_cdmOptionsWidget.o obj/moc_cdmOptionsWindow.o obj/moc_cdmBeamConfigDialog.o obj/moc_cdmObjectConfigDialog.o obj/moc_cdmEpsilonConfigDialog.o obj/moc_cdmRunWidget.o obj/moc_cdmPlot.o    -L/usr/X11R6/lib -L/usr/lib64 -Wl,-rpath -Wl,../cdmlib/lib -L../cdmlib/lib -lcdmlib -L../qwt-6.1.2/lib -lqwt -L../qwtplot3d/lib -lqwtplot3d -Wl,-Bdynamic -lGLU -lgfortran -lfftw3_omp -lfftw3 -lm -I/usr/lib64/gfortran/modules -I/usr/include -L/usr/lib64 -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lGL -lpthread -lQtSvg -lQtSql -lQtOpenGL -lQtGui -lQtCore 
/usr/bin/ld: cannot find -lcdmlib
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:145: cdm] Error 1
make[1]: Leaving directory '/home/kbmsharifmahmood/Downloads/IF-DDA-master/cdm'
make: *** [Makefile:174: sub-cdm-cdm-pro-install_subtargets-ordered] Error 2
[kbmsharifmahmood@localhost IF-DDA-master]$ 
  1. cd bin and then ./cdm gives: bash: ./cdm: No such file or directory

Seeking help.

pchaumet commented 4 years ago

Hi,

The problem is that you have installed qt5 and after you do : qmake-qt4 "CONFIG+=fftw hdf5" so you try to use qt4! I have commited a new version which works both with qt4 and the "very new" qt5. I have tested it on a centos, not a fedora yet. If you use qt5 please do : qmake-qt5 "CONFIG+=fftw hdf5"

qmake-qt5 "CONFIG+=fftw hdf5" Info: creating stash file /home/chaumet/cdm/libre/IF-DDA/.qmake.stash make make install

and it works on the new centos:

cat /etc/os-release NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8 (Core)" ANSI_COLOR="0;31"

Sincerely P. Chaumet

kbmsharifmahmood commented 4 years ago
qmake-qt5 "CONFIG+=fftw hdf5"
Info: creating stash file /home/chaumet/cdm/libre/IF-DDA/.qmake.stash
make
make install

Thank you for your reply. Unfortunately I tried the above instructions, but still the error persists: bash: ./cdm: No such file or directory

And it is hard to find the qt4 nowadays. I have already installed qt4, after some search work. But still the problem exists. Maybe I installed the wrong version.

It will be nice if you kindly let me know where I can find this qt4.

Sincerely, Sharif Mahmood

pchaumet commented 4 years ago

Hi, the problem does not come from qt as it works now for both versions (qt4 and qt5). you can try qmake-qt5 "CONFIG+=fftw" or qmake-qt5 to avoid hdf5 and then fftw librairies.

Else post all the ouput file, I will have a look to know where the problem comes from. Sincerely, P. Chaumet

GokouRuriW commented 1 year ago

Hi, I have successfully compiled all the programs and executed the main program within the 'tests' folder, and it seems to be running smoothly. However, I'm encountering an issue regarding the graphical interface. It's similar to the problem mentioned earlier: bash: ./cdm: No such file or directory

My environment is Ubuntu 18.04, and I have installed all the required support libraries for Qt4.

Thank you for your time and support.

Best regards, Z.Li

pchaumet commented 1 year ago

Hi,

Can you check if cdm exists in the bin directory, after the make install it shuld be there

Best regards, P. Chaumet

Le 2023-08-18 10:03, GokouRuriW a écrit :

Hi, I have successfully compiled all the programs and executed the main program within the 'tests' folder, and it seems to be running smoothly. However, I'm encountering an issue regarding the graphical interface. It's similar to the problem mentioned earlier: bash: ./cdm: No such file or directory

My environment is Ubuntu 18.04, and I have installed all the required support libraries for Qt4.

Thank you for your time and support.

Best regards, Z.Li

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you commented.Message ID: @.***>

Links:

[1] https://github.com/pchaumet/IF-DDA/issues/1#issuecomment-1683525149 [2] https://github.com/notifications/unsubscribe-auth/AISXDGHAPN74UB35NCBUBADXV4OTXANCNFSM4ROE7D6A