Hello Dear Developers:
I'm trying to Compile SAC-102.0 using source code under Ubuntu 20.04:
Here I explain what I did:first I have created a directory beside sac-102.0 named "build" and then:
- cd build
- ../sac-102.0/configure --enable-xdr --enable-zlib --enable-xpm --enable-png --prefix=/opt/SAC102 -enable-debug --enable-database --enable-xft --with-matlab=/home/nima/src/Matlab/R2018b --x-libraries=/usr/X11R6/lib --enable-editline --enable-readline
- make
- The process goes without problem for a couple of seconds and then the first error comes up as below: (i Have attached the full log named build.out)
../../sac-102.0/src/dff/wrxdr.c: In function ‘wrxdr’:../../sac-102.0/src/dff/wrxdr.c:72:14: error: ‘Ndxhdr’ undeclared (first use in this function); did you mean ‘xdrhdr’? 72 | nlcmem = Ndxhdr[idfl]; | ^~~~~~ | xdrhdr
I have tried the suggested debugging and the compilation is temporary solved but in further it comes up with a lot of unsolvable issues; So I wonder why "Ndxhdr" is being used for the first time and not defined in other codes. I believe issues like this are more likely to happen and this is only the first one. (imust admit that I'm 20% familiar with C++ and 90% with Python, So I'm fully aware of compilation and its related issues)
All in all is there something missing or have I done the wrong way and used incorrect options for ./configure?
*** I must admit that the readme.buildsac needs a lot of revise, like "--enable-matlab=" is not defined in configure and "--with-matlab=" is used instead. there are still lot's of issues that must be fixed as well.
Great RegardsNima
I'm trying to Compile SAC-102.0 using source code under Ubuntu 20.04:
Here I explain what I did:first I have created a directory beside sac-102.0 named "build" and then:
- cd build
- ../sac-102.0/configure --enable-xdr --enable-zlib --enable-xpm --enable-png --prefix=/opt/SAC102 -enable-debug --enable-database --enable-xft --with-matlab=/home/nima/src/Matlab/R2018b --x-libraries=/usr/X11R6/lib --enable-editline --enable-readline
- make
- The process goes without problem for a couple of seconds and then the first error comes up as below: (i Have attached the full log named build.out)
../../sac-102.0/src/dff/wrxdr.c: In function ‘wrxdr’:../../sac-102.0/src/dff/wrxdr.c:72:14: error: ‘Ndxhdr’ undeclared (first use in this function); did you mean ‘xdrhdr’? 72 | nlcmem = Ndxhdr[idfl]; | ^~~~~~ | xdrhdr
I have tried the suggested debugging and the compilation is temporary solved but in further it comes up with a lot of unsolvable issues; So I wonder why "Ndxhdr" is being used for the first time and not defined in other codes. I believe issues like this are more likely to happen and this is only the first one. (imust admit that I'm 20% familiar with C++ and 90% with Python, So I'm fully aware of compilation and its related issues)
All in all is there something missing or have I done the wrong way and used incorrect options for ./configure?
*** I must admit that the readme.buildsac needs a lot of revise, like "--enable-matlab=" is not defined in configure and "--with-matlab=" is used instead. there are still lot's of issues that must be fixed as well.
Great RegardsNima
Attachments
-
Nima,
Try with —disable-xdr
I would be surprised if you require xdr support
Brian
On Mar 20, 2022, at 4:22 AM, Nima Dolatabadi (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu> wrote:
Hello Dear Developers:
I'm trying to Compile SAC-102.0 using source code under Ubuntu 20.04:
Here I explain what I did:
first I have created a directory beside sac-102.0 named "build" and then:
<1647773219620blob.jpg>
cd build
../sac-102.0/configure --enable-xdr --enable-zlib --enable-xpm --enable-png --prefix=/opt/SAC102 -enable-debug --enable-database --enable-xft --with-matlab=/home/nima/src/Matlab/R2018b --x-libraries=/usr/X11R6/lib --enable-editline --enable-readline
make
The process goes without problem for a couple of seconds and then the first error comes up as below: (i Have attached the full log named build.out)
../../sac-102.0/src/dff/wrxdr.c: In function ‘wrxdr’:
../../sac-102.0/src/dff/wrxdr.c:72:14: error: ‘Ndxhdr’ undeclared (first use in this function); did you mean ‘xdrhdr’?
72 | nlcmem = Ndxhdr[idfl];
| ^~~~~~
| xdrhdr
I have tried the suggested debugging and the compilation is temporary solved but in further it comes up with a lot of unsolvable issues; So I wonder why "Ndxhdr" is being used for the first time and not defined in other codes. I believe issues like this are more likely to happen and this is only the first one. (imust admit that I'm 20% familiar with C++ and 90% with Python, So I'm fully aware of compilation and its related issues)
All in all is there something missing or have I done the wrong way and used incorrect options for ./configure?
*** I must admit that the readme.buildsac needs a lot of revise, like "--enable-matlab=" is not defined in configure and "--with-matlab=" is used instead. there are still lot's of issues that must be fixed as well.
Great Regards
Nima
<1647773219620blob.jpg>
<build.out>
----------------------
SAC Help
Topic home: https://urldefense.proofpoint.com/v2/url?u=http-3A__ds.iris.edu_message-2Dcenter_topic_sac-2Dhelp_&d=DwIGaQ&c=dWz0sRZOjEnYSN4E4J0dug&r=xlrnQuY_RWoRIvnCDJ5AfQ&m=KpuD71Nn0W8fvwvAAwSf58QKd-b1bctrHeTkwPzv-kjJsduzYyytYSEnYr__OmJ1&s=-VqU8VJn9ycJG4F7_12XL0nQyY9uvhwO3161O1c6ZhU&e= | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu
Sent from the IRIS Message Center (https://urldefense.proofpoint.com/v2/url?u=http-3A__ds.iris.edu_message-2Dcenter_&d=DwIGaQ&c=dWz0sRZOjEnYSN4E4J0dug&r=xlrnQuY_RWoRIvnCDJ5AfQ&m=KpuD71Nn0W8fvwvAAwSf58QKd-b1bctrHeTkwPzv-kjJsduzYyytYSEnYr__OmJ1&s=Ef-65zQZX8JIGgdqO7Jg-uoURroIbkQQHEawibKkx4o&e= )
Update subscription preferences at https://urldefense.proofpoint.com/v2/url?u=http-3A__ds.iris.edu_account_profile_&d=DwIGaQ&c=dWz0sRZOjEnYSN4E4J0dug&r=xlrnQuY_RWoRIvnCDJ5AfQ&m=KpuD71Nn0W8fvwvAAwSf58QKd-b1bctrHeTkwPzv-kjJsduzYyytYSEnYr__OmJ1&s=SeBZSQZJkW4MeQ7WwSVm9POD9XOFvEUjOrUg3kQbhrc&e=
-
Hello Nima,
Why don't you directly install sac executable binaries? They are already
available through IRIS, and setting them up is easy. Instructions should be
in a readme that comes with the package.
Januka
On Sun., 20 Mar. 2022, 10:14 pm Nima Dolatabadi (via IRIS), <
sac-help-bounce<at>lists.ds.iris.edu> wrote:
Hello Dear Developers:
I'm trying to *Compile SAC-102.0 using source code *under *Ubuntu 20.04*:
*Here I explain what I did:*
first I have created a directory beside sac-102.0 named "build" and then: [image:
Inline image]
1. cd build
2. ../sac-102.0/configure --enable-xdr --enable-zlib --enable-xpm
--enable-png --prefix=/opt/SAC102 -enable-debug --enable-database
--enable-xft --with-matlab=/home/nima/src/Matlab/R2018b
--x-libraries=/usr/X11R6/lib --enable-editline --enable-readline
3. make
- The process goes without problem for *a couple of seconds* and then
the first error comes up as below: (i Have attached the full log named
*build.out*)
*../../sac-102.0/src/dff/wrxdr.c: In function ‘wrxdr’:*
*../../sac-102.0/src/dff/wrxdr.c:72:14: error: ‘Ndxhdr’ undeclared (first
use in this function); did you mean ‘xdrhdr’?*
* 72 | nlcmem = Ndxhdr[idfl];*
* | ^~~~~~*
* | xdrhdr*
I have tried the suggested debugging and the compilation is temporary
solved but in further it comes up with a lot of *unsolvable issues*; So I
wonder why "Ndxhdr" is being used for the first time and not defined in
other codes. I believe issues like this are more likely to happen and this
is only the first one. (imust admit that I'm 20% familiar with C++ and 90%
with Python, So I'm fully aware of compilation and its related issues)
All in all is there something missing or have I done the wrong way and
used incorrect options for ./configure?
*** I must admit that the *r**eadme.buildsac* needs a lot of revise, like
"--enable-matlab=" is not defined in *configure* and "--with-matlab=" is
used instead. there are still lot's of issues that must be fixed as well.
Great Regards
Nima
----------------------
SAC Help
Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu
Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/
Attachments