How can I easily install a C++ plot library on a Mac?

Click For Summary

Discussion Overview

The discussion revolves around the challenges of installing C++ plotting libraries on a Mac, specifically on OSX 10.8.5 with Xcode 5.1. Participants share their experiences with various libraries and the errors encountered during installation.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses frustration over multiple failed attempts to install libraries like MathGL, Plplot, Gnuplot, Chplot, and matplotpp, citing errors such as missing files and linker issues.
  • Another participant mentions a partial success with VTK, having completed the build and configure stages before encountering an error during installation.
  • A suggestion is made to check the PATH declaration to ensure all required directories are included, which may resolve issues with the make command.
  • One participant notes that some builds include a CMakeLists.txt file and suggests using the cmake command to facilitate the build process.
  • Another participant reports attempting to modify the CMakeLists.txt to remove the -fobjc-gc flag as advised, but continues to face the same error regarding garbage collection support.
  • A participant recalls using GNUplot in a data mining class and emphasizes the importance of ensuring that programming tools are properly set up in the distribution and user account before proceeding with make commands.

Areas of Agreement / Disagreement

Participants express varying degrees of success and frustration with different libraries, indicating that there is no consensus on a single solution or approach that works for everyone.

Contextual Notes

Participants mention specific errors and configurations that may depend on individual setups, such as the version of OSX and Xcode, which could affect the installation process.

KleZMeR
Messages
125
Reaction score
0
Hi All,

Not sure if this is the right place for this thread but it seemed like it was.

I have been trying for two whole days to get some plotting tools up and running that will work with my:
OSX 10.8.5, Xcode 5.1.

I have tried MathGL, Plplot, Gnuplot, Chplot, matplotpp, etc.

I get errors that I can't seem to fix when installing and/or running these. There's either missing files, linker errors, etc
I think my main issue is upon install when I am supposed to run 'make' in the active directory it does nothing on my machine. I have looked up all my errors, including the build errors, and tried valiantly to get just ONE of these working. I don't think it should be this hard?

Does anyone have any suggestions as to an easy install of a C++ plot library?

I also have an Ubuntu machine which I may just switch to, but I was really hoping to use Xcode being that my thesis work will be on a Mac/Xcode platform.

Thanks in advance, any help is appreciated.
 
Technology news on Phys.org
OK, so, VTK seems to be installing... I got through the build and configure... fingers crossed
 
And it errors out at 45% during install... If anyone can help I'd appreciate it, this is becoming frustrating
 
One thing you might look at if you are having trouble running a make file is to see if your PATH declaration has all the directories in it that are required.
 
I've noticed that some of these builds have a cMakeList.txt file and if I run: cmake . command it will carry out the list. I've gotten past this just now in VTK but the error and an internet search is telling me that I must "simply remove the -fobjc-gc flag from VTK_REQUIRED_OBJCXX_FLAGS" . I'm trying to do this now I guess.
 
So I've tried to update my CMakeList.txt to fix this error but to no avail: still getting this: error: garbage collection is no longer supported. I was told to "
simply remove the -fobjc-gc flag from VTK_REQUIRED_OBJCXX_FLAGS." , which I did, and it does not fix the error
 
When I did a data mining class the lecturer used GNUplot.

If your make command doesn't do anything you need to make sure the programming tools are setup in your distribution and your user account.

I would get the make issue fixed before anything else is done.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 15 ·
Replies
15
Views
8K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
7
Views
3K
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K