Le 07-04-10 à 18:31, Ken McGaugh a écrit :
On 11/04/2007, at 5:38 AM, Yves de Champlain wrote:
Le 07-04-10 à 07:30, Ken McGaugh a écrit :
On 10/04/2007, at 3:10 PM, Yves de Champlain wrote:
Le 07-04-09 à 20:35, Ken McGaugh a écrit :
Hi all,
I have just recently started to use macports under OSX and I am replacing all my manually installed libraries/tools with ones installed via macports. I've run into many problems with the fltk-1.1.7 port...
1. It crashes with a bus error. If I build it manually it works OK. I think this is related to the following issues.
fltk was in a dire state.
rev 1 should be much better, just commited
That is great, thanks Yves! There is one problem though. Fluid doesn't seem to build. The binary just doesn't exist anywhere. I found the following errors in the section trying to install fltk, but I don't know what is causing them...
=== installing fluid === Installing FLUID in /opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdat e_dports_aqua_fltk/work/destroot/opt/local/bin...
what about
cd /opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate _dports_aqua_fltk/work/destroot/opt/local
ls bin ls include/FL
?
The problem appears to be that the fltk build breaks under osx when installing with the DESTDIR variable set. Specifically the command "fltk-config --post" assumes that the mac.r resource file has already been installed into "${prefix}/include/FL".
But the fltk-config script has a backdoor that could be used to solve this problem. It checks to see if there is a local copy of "FL/mac.r" relative to it's own location and will use that one instead. So a potential solution would be to somehow execute
ln -s ../include/FL ${destroot}${prefix}/bin/FL
that would be something like pre-destroot { ln -s ${worksrcpath}/include/FL ${destroot}${prefix}/bin/FL } post-destroot { delete ${destroot}${prefix}/bin/FL } yves