[Scilab-Dev] Porting Scilab 5.1.1 on Mac OS X 10.4 PPC.
Pascal
sur.pignard at wanadoo.fr
Fri Aug 7 22:02:11 CEST 2009
Hello Sylvestre.
Following your advice, I've made some modification on configure:
--- configure.0 2009-04-14 09:22:35.000000000 +0200
+++ configure 2009-08-06 23:00:41.000000000 +0200
@@ -10906,7 +10906,7 @@
*-*-darwin*)
CFLAGS=" $CFLAGS -I/sw/include "
CPPFLAGS=" $CPPFLAGS -I/sw/include "
- LDFLAGS=" $LDFLAGS -L/sw/lib/ "
+ LDFLAGS=" $LDFLAGS -Xlinker -m -L/sw/lib/ "
;;
esac
;; # end of the gcc case on the $CC
@@ -11743,6 +11743,10 @@
# Sun
machine=sparc
;;
+ *Macintosh*)
+ # Mac OS X
+ machine=`uname -p`
+ ;;
esac
# Check for known JDK installation layouts
@@ -11868,7 +11872,8 @@
ac_java_jvm_jni_lib_runtime_path=$D
ac_java_jvm_jni_lib_flags="-L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/i386/server
+# D=$ac_java_jvm_dir/jre/lib/i386/server
+ D=$ac_java_jvm_dir/../Libraries
ac_java_jvm_jni_lib_runtime_path="$
{ac_java_jvm_jni_lib_runtime_path}:$D"
ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
fi
and call:
$ ./configure --prefix=/Users/pascal/Documents/Programmation/
scilab-5.1.1-alpha-1/build --without-ocaml --without-fftw --without-
pvm --without-umfpack --without-matio --without-tk
All build.
When I launch Scilab, I've got the error:
$ ./scilab
The native library sciconsole does not exist or cannot be found :
no sciconsole in java.library.path
Current java.library.path is : :/Users/pascal/Documents/Programmation/
scilab-5.1.1-alpha-1/build/share/scilab//../../lib/scilab/
Though, the library existe in this directory:
$ ls
...
libsciconsole.5.0.1.dylib libsciconsole.dylib
libsciconsole.5.dylib libsciconsole.la
...
Any idea ?
Then I've tried:
$ ./scilab -nwni
Unfortunately, the help is not available in this mode:
-->help
!--error 10000
help : Le navigateur d'aide n'est pas accessible dans le mode NWNI.
at line 33 of function help called by :
help
Regards, Pascal.
http://blady.pagesperso-orange.fr
Le 4 août 09 à 13:49, <sylvestre.ledru at scilab.org>
<sylvestre.ledru at scilab.org> a écrit :
>
> On Sat, 1 Aug 2009 08:45:59 +0200, Pascal <sur.pignard at wanadoo.fr>
> wrote:
>> Hello Sylvestre.
>>
>> Many thanks for your answer.
>>
>> I've tried first proposal. I've added "-Xlinker -m" to many
>> makefiles.
>> I had to add it on several makefiles because LDFLAGS is redefined
>> inside makefiles without taken in account possible previous
>> definition:
>> LDFLAGS = -L/sw/lib/
>> instead of:
>> LDFLAGS = -L/sw/lib/ $(LDFLAGS)
>> (maybe same way for other xxFLAGS)
>> I can send appart the whole multiply defined symbols.
> You should try to add them into the configure.ac and relaunch
> autoconf.
>
>> All or almost has been build following:
>> $ ./configure --prefix=/Users/pascal/Documents/Programmation/
>> scilab-5.1.1-alpha-1/build --without-ocaml --without-fftw --without-
>> pvm --without-umfpack --without-matio
>> $ make
>> ...
>> $ make install
>> ...
>> $ export SCI=`pwd`
>> $ ./build/bin/scilab
>>
>> Then, I've got a exec error:
>> ./build/bin/scilab: line 592: 12872 Bus error
>> "$SCILABBIN" "$@"
>> Thread: 2
> It seems that it is the Java / TckTk sync issue. Adding --without-
> tk in the
> configure should fix your problem.
>
> Sylvestre
>
More information about the dev
mailing list