Welcome, Guest
Username: Password: Remember me

TOPIC: Python API installation

Python API installation 3 years 8 months ago #38010

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Ok.

add -lgfortran to libs_all.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38011

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
I reran it with that but still the same message.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38012

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Where did you add it in your systel.cfg ?
libs_all is declared in general but overwritten in the other configurations.
You need to add it to all of them.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38013

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
I did double check it and I added it in every configurations and especially in wingfors the one I am using.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38014

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Sorry for the bother but can you repost the listing of the compilation and your updated systel.cfg.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38015

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
No problem you are not the one to be sorry since you are helping me.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38018

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Ok I think I see the issue.
Because you are compiling in static the -lgfortran should be placed before the api lib in the command which is not possible as it is.

One work around would be to run the f2py command changing that. But your compile_telemac.py will still be crashing everytime.

Another solution we can try is to compile in dynamic.
Replace the code for wingfors in your systel.cfg by the one below:
[wingfors]
#
cmd_obj_c:   gcc -fPIC -c <srcName> -o <objName>
cmd_obj:    gfortran  -c -O3 -cpp -fPIC -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib:    gfortran -fconvert=big-endian -frecord-marker=4 -lm -o <libname> <objs>
cmd_exe:    gfortran -fconvert=big-endian -frecord-marker=4 -lm -o <exename> <objs>  <libs>
#
mods_all:   -I <config>
#
sfx_obj:    .o
sfx_lib: .so
libs_all:  -lgfortran

The run compile_telemac.py --clean --verbose
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38021

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Ok thanks for trying that hard. Now it does not even go to the compilation of the api with this copy paste and rerun with your line code.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38026

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Its my bad i forgot the -shared option in cmd_lib.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38027

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
I have added the option shared and but I still get that. I hope I am not getting lost into messing around systel and other things.
Attachments:
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.