Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples won't complie in ubuntu #2

Open
GoogleCodeExporter opened this issue Jun 15, 2015 · 4 comments
Open

examples won't complie in ubuntu #2

GoogleCodeExporter opened this issue Jun 15, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Simply make won't generate the bin directory neither the example binaries 

What is the expected output? What do you see instead?
The binaries. After you create the directory by hand, the compiler will 
complain about undefined references to gl functions


What version of the product are you using? On what operating system?
Latest on Ubuntu 12.04


Please provide any additional information below.
After creating the bin directory as mentioned before, you have to apply the 
following change in the Makefile in order to get things work:
In examples/Makefile in every row you have to change the order of the included 
libraries for example:
original:
$(CC) $(LIB) $(INCDIR) -o bin/ex101_creating_a_plot ex101_creating_a_plot.cc 
$(ALIB)
corrected:
$(CC) $(INCDIR) -o bin/ex101_creating_a_plot ex101_creating_a_plot.cc $(ALIB) 
$(LIB)
and so on.
I didn't solve the bin creation problem


Original issue reported on code.google.com by [email protected] on 29 Sep 2012 at 8:54

Attachments:

@GoogleCodeExporter
Copy link
Author

I forgot to say that this work is awesome.

Original comment by [email protected] on 29 Sep 2012 at 9:12

@GoogleCodeExporter
Copy link
Author

Excellent work! I fixed the bin creation issue too.

Original comment by [email protected] on 16 Oct 2012 at 12:39

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks for the fix!

Original comment by [email protected] on 30 Apr 2013 at 9:11

@GoogleCodeExporter
Copy link
Author

To fix bin problem, type 'makedir bin' in the examples directory before typing 
'make'. I also needed to add '#include <unistd.h>" to matplotpp.h

Original comment by [email protected] on 16 Jan 2015 at 4:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant