|
#17
| |||
| |||
| I've already done all of that. Gnuplot is in /usr/local/bin which is set in the file environment.plist. I can also launch gnuplot from any location via terminal, but gnuplot_i cannot find it in Xcode. |
|
#18
| |||
| |||
| Hi folks, How have you installed gnuplot_i? Have you compiled it and installed the binary in /usr/local/lib/ and the header in /usr/local/include/ ? You will then need to link against using something like: -lgnuplot_i.o or -lgnuplot_i or -gnuplot_i.o in the other linker flag section I think (not to sure about this, it's been a while but I did the above and got it working at some point in the past!). However, if you don't want to mess around with all that linking stuff (this is what I currently do): Just import the gnuplot_i.h and gnuplot_i.c into your xcode project that way xcode handles it all for you. Cheers, Last edited by boyfarrell; September 17th, 2006 at 08:05 AM. |
|
#19
| |||
| |||
| Hi, it's not a problem of getting to run gnuplot_i from within Xcode. When I try to call gnuplot_init() I get the message mentioned in my first post ("cannot find DISPLAY variable", "cannot find gnuplot in your PATH"). This is a result of gnuplot_get_program_path() failing, obviously. The strange thing is that I can call gnuplot from anywhere in the terminal and it works. I guess this tells me that the path to gnuplot is set, as far as I understand it. Thanks. |
|
#20
| |||
| |||
| Hi, As an experiment I deleted the gnuplot directory from my .MacOS/environment.plist file. I then logged out and back in again and managed to replicate your error: Quote:
If this isn't the answer, I'm not to sure what is? Are you using a new version of gnuplot and aquaterm? The only other thing I can think of is that you are using X11 terminal rather that 'termial'; you see they have seperate enviromental variables. I ran into this problem once, I set the the DYLD_LIBRARY_PATH in the terminal and then when I changed to X11 terminal it didn't have clue what I was meaning! I really don't think that is the case here I'm just racking my brain for possibilties. Dan. Last edited by boyfarrell; September 25th, 2006 at 07:46 PM. |
|
#21
| |||
| |||
| Hi, there was indeed a problem with my environment.plist file. Seems like I had accidentally saved it as .rtf instead of .txt before I changed the extension to .plist. It had a RTF preamble that did not show up in TextEdit, but was obvious when I opened the file with BBEdit. Stupid me. Anyway, works fine now. Thanks a lot for your help! |
|
#22
| |||
| |||
| Great! Happy plotting :0) Dan. |
|
#23
| |||
| |||
| Hello, ![]() I've the same problem with XCode and gnuplot_i ... When I try to run my program (in C++) I get Quote:
Is it possible the reason is I installed gnuplot using fink? Could be I don't write the right adress in environment.plist? Please help me! |
|
#24
| |||
| |||
| Hi, You will need to edit the .plist file originally posted by Viro so that it links to where fink stores the binary files. If I remember correctly fink would put it in /sw/bin so try this: Quote:
~/.MacOS/environment.plist |