Announcement

Collapse
No announcement yet.

Problems linking libraries in kdevelop

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems linking libraries in kdevelop

    Oki folks I have the follwoing code:
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <IL/il.h>
    #include <IL/ilut.h>
    #include <GL/gl.h>
    
    
    int main()
    {
     GLuint image;
    
     iluInit();
     ilInit();
     ilutInit(); 
     // Initialize ILUT with OpenGL support
     ilutRenderer(ILUT_OPENGL);
     //ilLoadImage("gramado.jpg");
     image = ilutGLLoadImage("gramado.jpg");
     glBindTexture(GL_TEXTURE_2D, image);
     glTexImage2D( GL_TEXTURE_2D, 0, 3, 320, 240, GL_BGR_EXT, 0, GL_UNSIGNED_BYTE, &image ); //glDisplayTexture(GL_TEXTURE_2D);
     printf("here\n"); 
    
     return 0;
    
    }
    I'm using lib devil, to link this program in command line I use the following arguments:
    gcc -lIL -lILUT -lglut -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXi -lm
    So I want to use KDevelop to manage this projects Ive created a project and did the following setup:
    Libraries to link to: -lm -lIL -lILUT -lglut -lGL -lGLU -lX11 -lXi -lsdl
    Optional Include Path: -I/usr/include -l/usr/X11R6/lib

    But when building I have the follwoing error:
    make[2]: Leaving directory `/home/imanewbie/Desktop/colortograyscale/debug/src'
    make[2]: Entering directory `/home/imanewbie/Desktop/colortograyscale/debug/src'
    /bin/sh ../libtool --mode=link gcc -O0 -g3 -o colortograyscale colortograyscale.o -lsdl -lX11 -lGLU -lGL -lglut -lILUT -lIL
    libtool: link: cannot find the library `/usr/lib/libSDL.la'

    Do you have any ideas?
    Thanks in advance.

    #2
    Re: Problems linking libraries in kdevelop

    Do you need to change -lsdl in your kdevelop project settings to -lSDL ?

    Comment

    Working...
    X