|
Re: How to include OpenGL + GLUT libraries in Eclipse in Mac OS X? [message #1835320 is a reply to message #1835276] |
Mon, 30 November 2020 15:54 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Generally,
- You need to tell the compiler where the include files can be found GCC -I (capital I) flag.
- You need to tell the linker where the libraries can be found and which to use GCC -L and -l (small L) flags
- If it is a dynamic library (*.so in Linux) you need to tell the operating system where it is when running
LD_LIBRARY_PATH environment variable in Linux
- Tell the Indexer where the include files can be found
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros, etc
I've assumed you are using gcc/g++.
If you are using something else you should use comparable options.
How you do the first two depends on the build system being used.
If it is a Managed Build (i.e., Eclipse creates a Makefile), set the options using
Project --> Properties --> Settings --> Tool Settings tab
For any other build methods (CMake, e.g., or your own makefiles), you should refer to tutorials on using them.
If none of that makes any sense, you have a large learning curve to climb.
Eclipse assumes you already know how to use the external tools.
Find some tutorials online and also read:
https://tldp.org/HOWTO/Program-Library-HOWTO/index.html
https://www.gnu.org/software/make/manual/make.html
https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
[Updated on: Mon, 30 November 2020 16:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02847 seconds