Re: [OctDev] ftp package libftp
I'm using the package from http://www.nbpfaus.net/~pfau/ftplib/ Michael. On Thu, Sep 4, 2008 at 8:17 AM, Tatsuro MATSUOKA <[EMAIL PROTECTED]> wrote: > Hello > > The ftp package requires libftp.a. > > I found libftp sources at > http://netsw.org/net/ip/filetrans/ftp/libftp/ > > libftp-2.0.tar.gz 11-Jun-1995 19:4679k > libftp-2.0B.tar.gz 01-Dec-1995 23:27 114k > libftp-5.0.tar.gz 31-Jul-1996 07:26 102k > > I have tried to build libftp ussing the libftp-5.0.tar.gz on cygwin > However it failed due to unbelievable parse error. > > The date of the source code very old. I'm afraid that I have been struggling > with different one. > > Could anyone advise me ? > > Regards > > Tatsuro > > > > > > > > -- > Enjoy MLB with MAJOR.JP! Ichiro, Matsuzaka, Matsui, and more! > http://pr.mail.yahoo.co.jp/mlb/ > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Octave-dev mailing list > Octave-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/octave-dev > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
Re: [OctDev] ftp package libftp
Hello Michael I've suceeded. Thanks!! Tatsuro --- Michael Goffioul <[EMAIL PROTECTED]> wrote: > I'm using the package from > http://www.nbpfaus.net/~pfau/ftplib/ > > Michael. > > > On Thu, Sep 4, 2008 at 8:17 AM, Tatsuro MATSUOKA <[EMAIL PROTECTED]> wrote: > > Hello > > > > The ftp package requires libftp.a. > > > > I found libftp sources at > > http://netsw.org/net/ip/filetrans/ftp/libftp/ > > > > libftp-2.0.tar.gz 11-Jun-1995 19:4679k > > libftp-2.0B.tar.gz 01-Dec-1995 23:27 114k > > libftp-5.0.tar.gz 31-Jul-1996 07:26 102k > > > > I have tried to build libftp ussing the libftp-5.0.tar.gz on cygwin > > However it failed due to unbelievable parse error. > > > > The date of the source code very old. I'm afraid that I have been > > struggling with different > one. > > > > Could anyone advise me ? > > > > Regards > > > > Tatsuro > > > > > > > > > > > > > > > > -- > > Enjoy MLB with MAJOR.JP! Ichiro, Matsuzaka, Matsui, and more! > > http://pr.mail.yahoo.co.jp/mlb/ > > > > - > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ___ > > Octave-dev mailing list > > Octave-dev@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/octave-dev > > > -- Enjoy MLB with MAJOR.JP! Ichiro, Matsuzaka, Matsui, and more! http://pr.mail.yahoo.co.jp/mlb/ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
[OctDev] otave-forge/specfun/Ci.m: index mismatch
Hello, Ci(t) fails when t = [0:0.1:10] : it complains about an array size mismatch because of this line in /trunk/octave-forge/main/specfun/inst/Ci.m (r4585): y(real(z)>0) = -0.5.*(expint_E1(i.*y(real(z)>=0) )+expint_E1(-i.*y(real(z)>=0) )); the z=0 element _is_ included on the left hand side, but not on the left. That should probably be replaced by y(real(z)>=0) = -0.5.*(expint_E1(i.*y(real(z)>=0) )+expint_E1(-i.*y(real(z)>=0) )); Best regards, Jeroen Nijhof - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
Re: [OctDev] otave-forge/specfun/Ci.m: index mismatch
Jeroen Nijhof wrote: > Hello, > > Ci(t) fails when t = [0:0.1:10] : it complains about an array size > mismatch because of this line in > /trunk/octave-forge/main/specfun/inst/Ci.m (r4585): > >y(real(z)>0) = -0.5.*(expint_E1(i.*y(real(z)>=0) > )+expint_E1(-i.*y(real(z)>=0) )); > > the z=0 element _is_ included on the left hand side, but not on the > left. That should probably be replaced by > >y(real(z)>=0) = -0.5.*(expint_E1(i.*y(real(z)>=0) > )+expint_E1(-i.*y(real(z)>=0) )); > > Best regards, > > Jeroen Nijhof > Ok, I committed this fix to the SVN D. -- David Bateman[EMAIL PROTECTED] Motorola Labs - Paris+33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin+33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
Re: [OctDev] Java calling Octave via JNI
Hello all, again this nasty Java -> Octave connection. I also want to embed Octave into a Java program and call Octave functions from Java. Initially I started with programming an execution engine which starts octave.exe and connected to its standard input and output pipes. This concept works (in the meantime I also found two solutions which implement the same technique) but is somewhat ugly and inefficient due to conversions to and from strings What I tried now was to call the Octave DLLs (Windows platform) directly via a C wrapper and using JNI. This technique provides a very elegant solution and I have used this in the past to call C and FORTRAN codes from Java. I want to define some global variables, set the values from Java, execute some user supplied functions and finally return the results (global variables set inside the user functions) to Java. Now with the Octrave DLLs I stumbled across a problem. To study the interface to ther DLLs I started with a C++ program. Basically I used the following logic: //- // start and initialize Octave (once, then keep it alive) char * pArgs[] = {"octave.exe","--path", "C:\\Programme\\Octave", "--norc", NULL}; int iRet = octave_main (4 pArgs, true); //- // execute some commands std::string s = std::string("global Output;\nglobal Input;\nInput=12;\nOutput=2*Input;\n"); octave_value x = eval_string (s, false, parse_status); // examine the returned "x" with x.isnumeric() etc. works when code is in an executable (.exe) file // what does the follwing code do? It works, but where is the variable in Octave? set_global_value (std::string(cName), val); octave_value vReturn = get_global_value (std::string(cName)); // the variable has the correct value, but is_globally_visible (std::string(Name)) returns false... // what does global mean here? // terminate Octave do_octave_atexit(); //- All this works well when I have the code inside an executable C++ program (MSVC8.0). So far so good. Now for the interface via JNI I have to put this into a DLL which provides a thin layer between Java objects and the C interface to Octave. If I put the same code inside a DLL I can initialize Octave, but the eval_string () and other functions doe not work - they seem to do nothing. I found can do somethings with set_global_value () and get_global_value (), but this is not enough and also these "global" values seem to be something else than global variables in Octave. Anyway, I see that eval_string() seems to work when called from a C executable, but not when I call it from a DLL. Could this have something to do with i/o streams which are different in a DLL and in an EXE? Any ideas where to look and how to test? Thank You, Martin -- View this message in context: http://www.nabble.com/Java-package-tp15052296p19308994.html Sent from the octave-dev mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
Re: [OctDev] Java calling Octave via JNI
MartinHepperle wrote: > Hello all, > > again this nasty Java -> Octave connection. > > I also want to embed Octave into a Java program and call Octave functions > from Java. > > Initially I started with programming an execution engine which starts > octave.exe and connected to its standard input and output pipes. This > concept works (in the meantime I also found two solutions which implement > the same technique) but is somewhat ugly and inefficient due to conversions > to and from strings > > What I tried now was to call the Octave DLLs (Windows platform) directly via > a C wrapper and using JNI. > This technique provides a very elegant solution and I have used this in the > past to call C and FORTRAN codes from Java. I want to define some global > variables, set the values from Java, execute some user supplied functions > and finally return the results (global variables set inside the user > functions) to Java. > > Now with the Octrave DLLs I stumbled across a problem. > > To study the interface to ther DLLs I started with a C++ program. > Basically I used the following logic: > > //- > // start and initialize Octave (once, then keep it alive) > char * pArgs[] = {"octave.exe","--path", "C:\\Programme\\Octave", "--norc", > NULL}; > int iRet = octave_main (4 pArgs, true); > > //- > // execute some commands > std::string s = std::string("global Output;\nglobal > Input;\nInput=12;\nOutput=2*Input;\n"); > octave_value x = eval_string (s, false, parse_status); > // examine the returned "x" with x.isnumeric() etc. works when code is in an > executable (.exe) file > > // what does the follwing code do? It works, but where is the variable in > Octave? > set_global_value (std::string(cName), val); > octave_value vReturn = get_global_value (std::string(cName)); > // the variable has the correct value, but is_globally_visible > (std::string(Name)) returns false... > // what does global mean here? > > > > // terminate Octave > do_octave_atexit(); > //- > > All this works well when I have the code inside an executable C++ program > (MSVC8.0). > > So far so good. > > Now for the interface via JNI I have to put this into a DLL which provides a > thin layer between Java objects and the C interface to Octave. > If I put the same code inside a DLL I can initialize Octave, but the > eval_string () and other functions doe not work - they seem to do nothing. > I found can do somethings with set_global_value () and get_global_value (), > but this is not enough and also these "global" values seem to be something > else than global variables in Octave. > > Anyway, I see that eval_string() seems to work when called from a C > executable, but not when I call it from a DLL. Could this have something to > do with i/o streams which are different in a DLL and in an EXE? > > Any ideas where to look and how to test? > > > Thank You, > > Martin > > > > > eval_string can only work if the interpreter is initialized.. Check the mailing lists for how to initialize the interpreter. D. -- David Bateman[EMAIL PROTECTED] Motorola Labs - Paris+33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin+33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev
[OctDev] ode not installing with pkg
hi. my name is daniel sutton. i downloaded octave and freemat both and i am trying them out in a biomathematics course modeling population dynamics. i really need odepkg yet i seem to be unable to install it. i receive the following error message: octave-3.0.2:38> pkg list no packages installed. octave-3.0.2:39> pwd ans = /Users/danielsutton01/Downloads octave-3.0.2:40> ls FreeMat-3.6-1.dmg odepkg-0.6.4.tar.gz octave-3.0.2:41> pkg install odepkg-0.6.4.tar.gz configure: error: C compiler cannot create executables See `config.log' for more details. error: the configure script returned the following error: checking for gcc... gcc -O3 -ftree-vectorize -fforce-addr -march=i686 -mfpmath=sse, 387 -mieee-fp -msse3 -msse2 -msse -mmmx checking for C compiler default output file name... error: called from `pkg:configure_make' in file /Applications/ Octave.app/Contents/Resources/share/octave/3.0.2/m/pkg/pkg.m near line 1235, column 2 octave-3.0.2:41> i was wondering if you could help me with this - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev