make casadi_interface

5 posts / 0 new
Last post
Peugny
Offline
Joined: 2017-02-27
make casadi_interface

On Apr 24th I get the master branch from JModelica.org and succeeded in building Jmodelica ipython interface but not casadi_interface on Linux Debian 8.2 64 bits

After the command "#make casadi_interface" shows errors abour /usr/local/libblas.a and liblapack.a 'try to compile with fPIC'. I built these libraries as static with the ar command in a separate Ipopt/ThirdParty/ directory then copied it in /usr/local/lib/

Then I re-start the JModelica installation from zero, and get the following different error at the end:

make[4]: Entering directory '/home/frederic/JModelica.org/build/casadi_build'
[100%] Building CXX object docs/api/examples/ctemplate/CMakeFiles/ctemplate.dir/ctemplate.cpp.o

Linking CXX executable ../../../../bin/ctemplate
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_transfer_integer_write'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_transfer_character_write'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dlaqge_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dgeequ_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_st_write_done'
../../../../lib/libcasadi_linearsolver_lapackqr.so: undefined reference to `_gfortran_concat_string'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_string_len_trim'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_stop_string'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `_gfortran_st_write'
collect2: error: ld returned 1 exit status
docs/api/examples/ctemplate/CMakeFiles/ctemplate.dir/build.make:96: recipe for target 'bin/ctemplate' failed
make[4]: *** [bin/ctemplate] Error 1
make[4]: Leaving directory '/home...

Seems that my manipulation was not successful. Should I return to the first error?

Thanks

 

Peugny
Offline
Joined: 2017-02-27
Re: make casadi interface

I am new with Linux but I have previously installed JModelica SDK-11 on Windows.

I have re-compiled the Ipopt and thus the Blas and Lapack library, then re-try to compile JModelica on Debian wheezy. This has little effect on the error messages, which are different but points on Lapack:

make_casadi_interface:

[ 98%] Built target test_csparse_casadi
make[4]: Entering directory '/home/frederic/JModelica.org/build/casadi_build'
make[4]: Leaving directory '/home/frederic/JModelica.org/build/casadi_build'
make[4]: Entering directory '/home/frederic/JModelica.org/build/casadi_build'

Linking CXX executable ../../../../bin/ctemplate ../../../../lib

../../../../lib/libcasadi_linearsolver_lapackqr.so: undefined reference to `dormqr_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dlaqge_'
../../../../lib/libcasadi_linearsolver_lapackqr.so: undefined reference to `dtrsm_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dgeequ_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dgetrf_'
../../../../lib/libcasadi_linearsolver_lapackqr.so: undefined reference to `dgeqrf_'
../../../../lib/libcasadi_linearsolver_lapacklu.so: undefined reference to `dgetrs_'
collect2: error: ld returned 1 exit status

 

Peugny
Offline
Joined: 2017-02-27
make casadi interface

Hello,

As described in the precedent post for Linux, my aim is to use the casADi capabilities to interface with Ipopt optimal problem (semi definite programming in my case). So I tried to install now JModelica.org-SDK-1.12 on Windows 10 64 bits since last year I had succeded in installing the 1.11 version with sources and MinGW and Python27

But I encounter following problem:

First after I created a build dir and ran make, the compilation stops when it should start to install assimulo: it can't find the Assimulo pakages in src/external because the installer did not download it.

Second after I download manually assimulo, I got this error mesage (end)

I stopped after this. Thank you if any idea comes to you.

Frederic Peugny

 

AttachmentSize
output_make.txt 4.42 KB
Peugny
Offline
Joined: 2017-02-27
make casadi interface

I tried to make casadi interface after the make install fails, anyway. (end)

 

AttachmentSize
output_make_casadi.txt 4.6 KB
fredrik
Offline
Joined: 2011-08-26
The only Linux distributions

The only Linux distributions that are supported by JModelica.org are Ubuntu and Fedora.

There is some problem with the Assimulo SVN external, which you can work around by going into src/external and checking out Assimulo manually:
cd src/external
svn checkout https://svn.jmodelica.org/assimulo/trunk Assimulo

I suspect that the CasADi error is unrelated to the Assimulo problem. I can't really tell what went wrong with CasADi, maybe because of the French. However, it doesn't look like an error I'm familiar with.

Login or register to post comments