Jump to content

ilia_kr

OTW
  • Posts

    1498
  • Joined

  • Last visited

Posts posted by ilia_kr

  1. I wrote some program for my CG class using GLUT in Microsoft Visual Studio 6.0. It works on Windows but doesn't want to work on linux. I have GLUT installed on Mandriva2009, yet GCC gives me errors:

     

    $ gcc ex2.c
    ex2.c: In function ‘main’:
    ex2.c:45: warning: return type of ‘main’ is not ‘int’
    /home/ilia/tmp/ccMxXfmm.o: In function `main':
    ex2.c:(.text+0xe1): undefined reference to `glutInitWindowPosition'
    ex2.c:(.text+0xf5): undefined reference to `glutInitWindowSize'
    ex2.c:(.text+0x101): undefined reference to `glutInitDisplayMode'
    ex2.c:(.text+0x10d): undefined reference to `glutCreateWindow'
    ex2.c:(.text+0x119): undefined reference to `glutReshapeFunc'
    ex2.c:(.text+0x126): undefined reference to `glutDisplayFunc'
    ex2.c:(.text+0x12b): undefined reference to `glutMainLoop'
    /home/ilia/tmp/ccMxXfmm.o: In function `drawBonus':
    ex2.c:(.text+0x159): undefined reference to `glColor3f'
    ex2.c:(.text+0x165): undefined reference to `glBegin'
    ex2.c:(.text+0x17b): undefined reference to `glVertex2f'
    ex2.c:(.text+0x191): undefined reference to `glVertex2f'
    ex2.c:(.text+0x1a7): undefined reference to `glVertex2f'
    ex2.c:(.text+0x1bd): undefined reference to `glVertex2f'
    ex2.c:(.text+0x1c2): undefined reference to `glEnd'
    ex2.c:(.text+0x1e1): undefined reference to `glColor3f'
    ex2.c:(.text+0x1ee): undefined reference to `glLineWidth'
    ex2.c:(.text+0x1fa): undefined reference to `glBegin'
    ex2.c:(.text+0x210): undefined reference to `glVertex2f'
    ex2.c:(.text+0x226): undefined reference to `glVertex2f'
    ex2.c:(.text+0x22b): undefined reference to `glEnd'
    /home/ilia/tmp/ccMxXfmm.o: In function `drawCircle':
    ex2.c:(.text+0x2fa): undefined reference to `glColor3f'
    ex2.c:(.text+0x31b): undefined reference to `glColor3f'
    ex2.c:(.text+0x327): undefined reference to `glBegin'
    ex2.c:(.text+0x34b): undefined reference to `cos'
    ex2.c:(.text+0x375): undefined reference to `sin'
    ex2.c:(.text+0x390): undefined reference to `glVertex2f'
    ex2.c:(.text+0x3a2): undefined reference to `glEnd'
    /home/ilia/tmp/ccMxXfmm.o: In function `AspectRatio':
    ex2.c:(.text+0x3f7): undefined reference to `glViewport'
    ex2.c:(.text+0x3fc): undefined reference to `glLoadIdentity'
    ex2.c:(.text+0x434): undefined reference to `gluOrtho2D'
    ex2.c:(.text+0x460): undefined reference to `gluOrtho2D'
    /home/ilia/tmp/ccMxXfmm.o: In function `RenderCallBack':
    ex2.c:(.text+0x490): undefined reference to `glClearColor'
    ex2.c:(.text+0x49c): undefined reference to `glClear'
    ex2.c:(.text+0x4be): undefined reference to `glFlush'
    /home/ilia/tmp/ccMxXfmm.o: In function `drawShapes':
    ex2.c:(.text+0x507): undefined reference to `glColor3f'
    ex2.c:(.text+0x526): undefined reference to `glBegin'
    ex2.c:(.text+0x534): undefined reference to `glBegin'
    ex2.c:(.text+0x587): undefined reference to `glVertex2f'
    ex2.c:(.text+0x5a0): undefined reference to `glEnd'
    ex2.c:(.text+0x5cd): undefined reference to `glColor3f'
    ex2.c:(.text+0x5da): undefined reference to `glLineWidth'
    ex2.c:(.text+0x5ef): undefined reference to `glBegin'
    ex2.c:(.text+0x642): undefined reference to `glVertex2f'
    ex2.c:(.text+0x65b): undefined reference to `glEnd'
    collect2: ld returned 1 exit status

    It seems like the compiler (gcc) doesn't know where to look for some gl and glut functions even though i've included 'glut.h' header.

     

    I'll be glad to get some help on it.

  2. I found the artwork of all editions horrible.

     

    Mandriva's Gnome default look is horrible indeed, but that is why gnome-look.org exists, and a bunch of others...

    Used to like openSuse11.1 but for some reason it is way slower than Mandriva and its nVidia drivers are crappy ones.

    Mandriva 2009 was buggy when i first installed it but after few updates it become fine and i'm happy with it now.

     

    P.S. i'm talking about Mandriva One 2009 Gnome

  3. I never got the point of 'music library managers'. I use Audacious as music player (previously used Xmms) and my music library is organized as a hirarchical directory structure on the filesystem managed with 'mc'. Works perfectly for me...

     

    +1

     

     

    I'll check this one though...

  4. Pidgin has over 3 million users! It's impossible to get one-on-one feedback from everyone, hence we're asking as many people as possible to fill out this survey.

    This should take about 5 to 10 minutes to complete.

    Know other Pidgin users? Tell them to take this survey too!

    Take the survey here.

     

     

    [moved from Portal News by Greg2]

  5. Hi,

    So I want to compile hedgewars on openSuse and this is the error i get:

     

    suse:/home/ilia/Desktop/hedgewars-src-0.9.7 # cmake .
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    SDLMIXER_INCLUDE_DIR
      used as include directory in directory /home/ilia/Desktop/hedgewars-src-0.9.7/QTfrontend
    SDLMIXER_LIBRARY
    linked by target "hedgewars" in directory /home/ilia/Desktop/hedgewars-src-0.9.7/QTfrontend
    SDL_INCLUDE_DIR
      used as include directory in directory /home/ilia/Desktop/hedgewars-src-0.9.7/QTfrontend
    
    -- Configuring incomplete, errors occurred!
    suse:/home/ilia/Desktop/hedgewars-src-0.9.7 #

     

    I think i must tell cmake where are QT files located, but I'm not sure where to find them.

    How do I solve this?

     

    Thanks again...

×
×
  • Create New...