ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using wxWidgets 2.5.4 for Windows and Linux.
I'm using wx-devcpp for the windows version of my app and KDevelop for the Linux version. Problem is that I'm having linker errors with the gtk gl libs or something, can't surely remember, in KDev in Linux (SuSE 9.1). I have gotten gtk and opengl to link in my app its just the gtk and ogl mix that I can't seem to fix.
I have to include something like a -lgtk_gl parameter (something like that) but I don't know where and I've tried just about everything.
Can anyone please help? It's for our 3rd Year project at our uni. MUST COMPILE UNDER LINUX. The Windows version works ok.
If the problem is just that you need to add -lgtk_gl to the linker parameters, then look through the project options in KDevelop until you find a place to provide linker options. I don't use KDevelop much myself so I can't tell you exactly where you would find that.
Depending on your actual errors, you may need other libraries as well. Like perhaps -lGL -lGLU... And you may need to add the path to those libraries to the library search path with something like -L/path/to/additional/libraries.
Ok, I have to add " -lwx_gtk_gl " to a ... wx-config --libs but I have no idea, plus I tried adding that to KDevelop's link field in the config window (whatever you call it).
I remember adding that line to a wx-config line in the config.in file and then when I tried compiling, the compiler kept spatting out something like : "nothing to make". Sorry I stopped trying a week or so ago.
I'm just trying as a dummy test to compile the penguin example from wxWidgets in KDevelop.
I added the -lGL and -lGLU to the linker field, and since that I havn't got linker errors for the opengl functions.
If someone already did this or know how to compile a program like the penguin example, please reply. Because I can then follow the same steps to compiling our 3rd year project prog. I once got it to compile in linux but I had to disable the opengl stuff.
Thanks, I hope this is all the info you need to help me out.
Ok it looks like you guys didn't understood me, I'll try to explain better.
I just want to get the pengiun example of wxWidgets to compile and link successfully through KDevelop. I know it has a makefile and all I type is 'make' and it gets compiled but I've imported those stuff into a KDev project and I just want to set it up sothat I can compile with KDev which obviously uses GCC.
All I sitll have to figure out is the ' -lwx_gtk_gl ' part. What I have determined was that calling wx-config --libs -lwx_gtk_gl, gives a couple of library names with the -l prefices. I copied those into the linker field in KDev's config window and if I can remember correctly, thats when the compiler kept saying "nothing to compile" or something.