Author Topic: Could not execute gnuplot properly  (Read 941 times)

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Could not execute gnuplot properly
« on: January 31, 2010, 10:00:04 PM »
Hi MrMage!

First of all: this program is awesome! I tried some CAS many years ago, but it was very simple. These here is ways more sophisticated and more user friendly (I know, I know - you made only the interface ;) )

I have a problem with plotting graphs. After reading the following links, which seems to treat the same thing:

http://forum.pocketcas.com/index.php/topic,219.msg849.html#msg849
http://forum.pocketcas.com/index.php/topic,209.msg800.html#msg800 ,

I decided to start a new topic on this...

I get the very same error after klicking the "Plot" command in the "Plot" window: Could not execute gnuplot properly: (blah, blah meaning "An error message cannot be displayed because an optional resource assembly containing it cannot be found" in polish ;) )
Of course I tried all suggestions of the prior threads, but without success.

My device is Samsung Omnia i900 with polish WM 6.1 and Microsoft .NET CF 3.5 installed.

It is even more frustrating while I gave the installation cab files (copied via bluetooth) to my college, which has the same Omnia with a custom ROM file (manila and stuff like this - mine is the original ROM that came with the phone) and it worked like a charm - he could plot everything!

So I think, it is something with my Omnia - no idea what it could be...

Could you write which processes should be running and in which sequence?

I start the PocketCAS and see the PocketCAS.exe process running. After typing something in it and clicking e.g. "calculate" the cas-event-server.exe starts.

I could not trace any start of wgnuplot.exe after the "Plot" command and the error (the "Plot" window is of course visible).

If I start wgnuplot.exe as stand alone program, I can give it a command like "plot sin(x)", and it will plot it.

I tried to install it on the main memory of the Omnia, but there is not enough place. After installing the main cab in the main memory, and the large QVGA cab on the memory card (the fixed one - extended build in memory) the main program started, but could not find the components of the large QVGA cab.

Have you any idea what could be the reason of this error?

Regards

Mat

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Could not execute gnuplot properly
« Reply #1 on: January 31, 2010, 10:08:41 PM »
Hi Mat,

So far I have no idea what the cause might be. As long as gnuplot.exe is in the same place as PocketCAS.exe (or in a subdirectoy, I can't remember the directory structure right now), PocketCAS should find it and execute it - especially as starting xcas obviously works. I suggest you uninstall all PocketCAS packages and then just install the main and gnuplot package (onto the same storage, of course). You won't be able to use the CAS, but I think the plot dialog should still work.

Cheers

Daniel

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Could not execute gnuplot properly
« Reply #2 on: January 31, 2010, 10:25:12 PM »
I did this in the last minute, but it brought the very same error.

As you said, PocketCAS could not find the tex and the CAS components, but after confirmation has started, but could not plot the "sin(x)'...

Mat

PS. Your answer is amazingly quick ;)

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Could not execute gnuplot properly
« Reply #3 on: January 31, 2010, 10:33:56 PM »
Hmmm... The only thing I can think of is, the directory in which this all is installed is "Moja Pamięć/Program Files/PocketCAS" an so on.

I can imagine, that the polish diacritics are colliding with something in the software (not in the TEX or the CAS part, but only in the Plot part?).
It cold be, that my college has the folder named in english (at the moment I can't contact him).

Regards

Mat

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Could not execute gnuplot properly
« Reply #4 on: January 31, 2010, 10:36:19 PM »
Please install the package "netcfv35.messages.en.wm.cab" from this thread: http://forum.xda-developers.com/showthread.php?t=585071 Without them, I can't guess the error :-/

/update: I suppose that gnuplot won't recognize the diacritics, while xcas can work with them. Custom ROMs are English most of the time, so they don't have diacritics in folder names. If so, you could try to move the contents of the PocketCAS folder to any folder without diacritics, e.g. the root directory "\". I hope for you that your storage card path doesn't contain diacritics :-)
« Last Edit: January 31, 2010, 10:38:29 PM by MrMage »

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Could not execute gnuplot properly
« Reply #5 on: January 31, 2010, 11:00:16 PM »
You said it...

The extended storage names "Moja pamięć" and the additional storage card names "Karta pamięci".

Beautiful  :o

Both with diacritics.

Have the registry keys any meaning?

Btw. I couldn't get the error explanatory text even after installing the cab you pointed (tried on the main memory of the device too).

So... No possibility to install it on my extended memory (diacritics), too few main memory... No bright point in the tunnel at all?

Mat

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Could not execute gnuplot properly
« Reply #6 on: January 31, 2010, 11:06:41 PM »
You can try this version of gnuplot: https://meeting.uni.lu/andre.stemper/gnuplot.html. My ports are based on this, but with a different compiler. I don't know anymore if I messed with the code to adapt specifically it to PocketCAS, though.

The only other option would be to install it to the main storage. How much main storage does your device have? I always thought the Omnia to have plenty of flash... Could you maybe move some other programs? Also keep in mind that there _is_ (but less comfortable) a smaller executable package for PocketCAS.

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Could not execute gnuplot properly
« Reply #7 on: January 31, 2010, 11:32:08 PM »
So - it works now!

Installed the small version in the main memory followed by the gnuplot package.

The another possibility I will try later maybe.

Tanks for your quick help!

Mat

PS. No meaningful text in the error box even after installing the cab you pointed (tried in the main memory too).

Offline lares

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Could not execute gnuplot properly
« Reply #8 on: January 31, 2010, 11:57:09 PM »
So - I tried the newer version of gnupot. I think, it will not work. As I copied/overwritten the files in the executables folder, it refused to plot anything.

But - it works now for me, and I think, it would be a good point to deal with the diacritics in the future - it would be great!

Thank you once again!

Mat

PS. Omnia has something about 90MB of internal memory - the 16GB is treated as an extension USB card.