Good day!

The right LIBS string is:

LIBS          = $(SUBLIBS)  -L/usr/lib/x86_64-linux-gnu 
/seismo/seisan/WOR/jamm/SE/linux/seisan.a -lgfortran -lfontconfig -lQtWebKit 
-lQtGui -lQtCore -lpthread

because path to the libraries should be before -l* flags.

The se executable has been created successfully.

Andrey


04 июня 2014 г., в 23:56, Andrey Stepnov <[email protected]> написал(а):

> Ok, I add -L key to seisan.a path:
> 
> LIBS          = $(SUBLIBS)  -L/usr/lib/x86_64-linux-gnu -lgfortran 
> -lfontconfig -L/seismo/seisan/WOR/jamm/SE/linux/seisan.a -lQtWebKit -lQtGui 
> -lQtCore -lpthread
> 
> and now after make I get this:
> 
> mainwindow.o: In function `MainWindow::MainWindow(QWidget*)':
> mainwindow.cpp:(.text+0xe243): undefined reference to `openfile_unit_six_'
> library.o: In function `ClearCommonBlocks()':
> library.cpp:(.text+0x18b1): undefined reference to `rea1_'
> library.cpp:(.text+0x18c4): undefined reference to `rea4_'
> library.cpp:(.text+0x18ce): undefined reference to `rea4_'
> library.cpp:(.text+0x18d8): undefined reference to `rea4_'
> library.cpp:(.text+0x18e2): undefined reference to `rea4_'
> library.cpp:(.text+0x18ec): undefined reference to `rea4_’
> ….
> library.o:library.cpp:(.text+0x247c): more undefined references to `hyp5_' 
> follow
> readsfiles.o: In function `readsfiles::run()':
> readsfiles.cpp:(.text+0x55): undefined reference to `rea4_'
> enumsfiles.o: In function `enumsfiles::run()':
> enumsfiles.cpp:(.text+0x8fa): undefined reference to `seisan_explorer_'
> enumsfiles.cpp:(.text+0xa8c): undefined reference to `findevin_'
> eventnode.o: In function `WriteSfile(event_node_*, char*)':
> eventnode.cpp:(.text+0xf71): undefined reference to `rea3_'
> eventnode.cpp:(.text+0xf88): undefined reference to `rea4_'
> eventnode.cpp:(.text+0xf96): undefined reference to `rea4_'
> eventnode.cpp:(.text+0xfaa): undefined reference to `rea4_'
> eventnode.cpp:(.text+0xfce): undefined reference to `rea4_'
> eventnode.cpp:(.text+0xff1): undefined reference to `rea4_'
> eventnode.o:eventnode.cpp:(.text+0xff8): more undefined references to `rea4_' 
> follow
> eventnode.o: In function `WriteSfile(event_node_*, char*)':
> eventnode.cpp:(.text+0x12bf): undefined reference to `rea5_’
> …
> eventnode.cpp:(.text+0x34b9): undefined reference to `hyp5_'
> seisandb.o: In function `MergeSfilesOnDisk(QString, QString)':
> seisandb.cpp:(.text+0x1f64): undefined reference to `merge_f_'
> mainwindowlib.o: In function `MainWindow::CleanUpOnExit()':
> mainwindowlib.cpp:(.text+0x649b): undefined reference to `closefile_unit_six_’
> … 
> 
> 
> 04 июня 2014 г., в 23:00, Andrey Stepnov <[email protected]> написал(а):
> 
>> Hi All!
>> 
>> I try to build SE and get a lot of errors like this:
>> 
>> /seismo/seisan/LIB/libsei.for:3223: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3223: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3250: undefined reference to 
>> `_gfortran_st_read'
>> /seismo/seisan/LIB/libsei.for:3250: undefined reference to 
>> `_gfortran_transfer_character'
>> /seismo/seisan/LIB/libsei.for:3250: undefined reference to 
>> `_gfortran_st_read_done'
>> /seismo/seisan/LIB/libsei.for:3261: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3261: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3272: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3272: undefined reference to 
>> `_gfortran_compare_string'
>> /seismo/seisan/LIB/libsei.for:3278: undefined reference to 
>> `_gfortran_compare_string’
>> 
>> for each *.for source file.
>> 
>> System: Ubuntu 12.04.4 LTS (x64)
>> 
>> gcc: 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5). ../src/configure -v 
>> --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' 
>> --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
>> --program-suffix=-4.6 --enable-shared --enable-linker-build-id 
>> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
>> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
>> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
>> --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
>> --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror 
>> --with-arch-32=i686 --with-tune=generic --enable-checking=release 
>> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
>> 
>> The make file that generated by qmake se.pro in attachment.
>> 
>> The seisan.a was compiled using SEISARCH=gfortran and located in linux dir 
>> at se source directory.
>> 
>> Is anybody faced to this? 
>> 
>> Best regards,
>> Andrey Stepnov
>> 
>> 
>> <Makefile>
>> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
seisan mailing list
[email protected]
http://mailman.uib.no/listinfo/seisan

Reply via email to