bradbell / cppad_py

A C++ Object Library and Python Interface to Cppad
https://cppad-py.readthedocs.io
15 stars 3 forks source link

Update problem #12

Open TomSemblanet opened 3 years ago

TomSemblanet commented 3 years ago

Hi,

I installed your library with success some days ago in Ubuntu. For some reason I had to reinstall it and the installation doesn't work anymore ...

I get the following error while runing the bin/get_cppad.sh script

Error cppad_py

bradbell commented 3 years ago

I have been working on the mac OS install of cppad_py for the case where include_mixed is true; see https://bradbell.github.io/cppad_py/doc/xsrst/get_cppad_sh.html#get-cppad-sh-settings-include-mixed and make a mistake in get_cpapd.sh while doing so.

The following commit should have fixed the problem above: https://github.com/bradbell/cppad_py/commit/37cf738b3c38cc5c2952f0e503a09402de8ed3d1

TomSemblanet commented 3 years ago

Hi, indeed your commit solved the first problem. However, I encounter the following one when running bin/build_local.py

CPPAD_PY_ERROR

Thanks for your help

bradbell commented 3 years ago

I need to add more documentation about this, in addition I can automate this case so you do not have to do this.

Try setting

export PKG_CONFIG_PATH=$cmake_install_prefix/$cmake_libdir/pkgconfig

where cmake_install_prefix and cmake_libdir are your settings in bin/get_cpapd.sh.

TomSemblanet commented 3 years ago

I'm on bot fronts at the same time but after I define the PKG_CONFIG_PATH variables a strange error occurs :

Capture du 2020-11-05 16-31-08

However, include_mixed variable is set to false in the get_cppad.sh file. Is it normal that the script tries to find cppad_mixed.pc ?

bradbell commented 3 years ago

I have made another mistake along the way and am fixing it. Once I get the install with include_mixed false working again, I will move the include_mixed true work to a branch so it does not create problems for you and other users.

TomSemblanet commented 3 years ago

Ok, let me know !

bradbell commented 3 years ago

It should work now. See the new install instructions at https://bradbell.github.io/cppad_py/doc/xsrst/setup_py.html

bradbell commented 3 years ago

Are you still having trouble with this or is this issue closed ?