Jump to content

DOlson

Members
  • Posts

    1215
  • Joined

  • Last visited

Posts posted by DOlson

  1. Here is the app I'm trying to compile:

     

    #include <SDL/SDL.h>
    
    #include <stdio.h>
    
    #include <stdlib.h>
    
    
    
    int main()
    
    {
    
     SDL_Surface *screen;
    
     SDL_Surface *background;
    
     SDL_Surface *logo;
    
     SDL_Rect src, dest;
    
     Uint32 colorkey;
    
    
    
     if (SDL_Init(SDL_INIT_VIDEO) != 0) {
    
       printf("Unable to initialize SDL: %sn", SDL_GetError());
    
       return 1;
    
     }
    
    
    
     atexit(SDL_Quit);
    
     
    
     screen = SDL_SetVideoMode(256,256,32,0);
    
     if (screen == NULL) {
    
       printf("Unable to set video mode: %sn",SDL_GetError());
    
       return 1;
    
     }
    
     
    
     background = SDL_LoadBMP("background.bmp");
    
     if (background == NULL) {
    
       printf("Unable to load bitmap.n");
    
       return 1;
    
     }
    
    
    
     logo = SDL_LoadBMP("logo.bmp");
    
     if (background == NULL) {
    
       printf("Unable to load bitmap.n");
    
       return 1;
    
     }
    
    
    
     src.x=0;  src.y=0;
    
     src.w=logo->w;  src.h=logo->h;
    
     
    
     dest.x=100;  dest.y=100;
    
     dest.w=logo->w;  dest.h=logo->h;
    
    
    
     SDL_BlitSurface(logo, &src, background, &dest);
    
     SDL_FreeSurface(logo);
    
    
    
     src.x=0;  src.y=0;
    
     src.w=background->w;  src.h=background->h;
    
     
    
     dest.x=0;  dest.y=0;
    
     dest.w=background->w;  dest.h=background->h;
    
     
    
     SDL_BlitSurface(background, &src, screen, &dest);
    
     SDL_FreeSurface(background);
    
     
    
     SDL_UpdateRect(screen, 0, 0, 0, 0);
    
     
    
     SDL_Delay(3000);
    
     
    
     return 0;
    
     
    
    }

     

    This is the output I get:

     

    [dana@digory PLG-4-3]$ make
    
    gcc -o sdl01.exe -lSDL main.cpp
    
    /tmp/cc0VcarP.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
    
    collect2: ld returned 1 exit status
    
    make: *** [all] Error 1
    
    [dana@digory PLG-4-3]$

     

    Is there any fix for this? I kinda NEED to be able to compile SDL stuff... For a school project.

     

    Thanks in advance!

  2. Well, isn't UT2003 is basically a similar engine as in UT and since most of the hardwork is done beforehand (making linux client that is) that they can ship linux client together with windows client with hardly a sweat.

     

    Not to defend Bioware or anything.. I am still miffed in not having NWN linux client, but Bioware did do a nice job in making NWN.

     

    Did you talk to Ryan about that? Does he feel that it was really a walk in the park?

  3. The way Creative wins and Aureal lose is because Creative is suing Aureal. Aureal wins, but went bankrupt from paying lawyers' fee. Creative then buy aureal and basically shuts them down. If that is not a dirty way to put people out of business, I don't know what is.

     

    Open sourced drivers from Creative? Yeah right, for a while the only way to get sound from newer creative sound cards is to get hacked drivers from either OSS or ALSA. At one time, the web page (opensource.creative.com) didn't get updated for ages. It wasn't until the hackers got the sound drivers working when creative people basically just "stole" their works and just host them up. Heck. Creative doesn't even have PCI soundcards until they buy Ensoniq and rebrand their cards under soundblaster name while other companies start creating pci soundcards. It is a case where marketting and size beats technical edge this time.

     

    I actually like NVidia. It is one of the few companies that comes from small fry to big giants. I still remember pre TNT Nvidia cards (Riva?) The one that bundles Panzer Dragoon. NVidia got big mainly because of good technology and good price (the fact that the king of the hill at the time, 3DFX makes blunders after blunders also help a lot)

     

    Sorry to be ranting about this. I just hate Creative Labs. It is the microsoft of the soundcards in my book.

     

    Creative have actually been helping the Linux situation.

     

    If you know of any other sound card that sounds as good and supports 4 speakers and doesn't suck ass in Linux, you let me know, and I'll see about switching.

  4. knowledge1.png

     

    That's as close as I've got it so far.

     

    I'm missing this:

     

    * GTK 1 AND 2 theme. I downloaded one, but I didn't install it yet, nor do I know how to select it.

     

    * Rounded window decor. Preferable an IceWM theme. And preferably with NO border, as Macs have no border.

     

    I guess that's about it. Possibly newer icons, but I just didn't set up the ones I did download yet.

  5. Hah! Good luck in petitioting Creative to do anything with linux. You stand a much better chance asking some other programmers (the ALSA project for example) to create that gui instead of Creative.  

     

    Yeah I am bitter to Creative. This is the company that kills Aureal even though it makes a better soundcard than Creative.

     

    Obviously Aureal didn't stand a chance, otherwise they would have been number one.

     

    Lemme ask you, do you hate NVidia too?

     

    Creative is one of the few companies that actually supported Linux at all. Hence their open-sourced drive...

  6. OK, ALSA or not - is there ever going to be some NORMAL GUI mixer/configurator app for SB Live! ? You know, like a Creative one for Windows? Choose headphones/2 speakers/4 speakers with two clicks, choose the EAX effects with 2 clicks, place this source here and this source there? And not just letting me experiment with the pure EMU10K1 registers?

     

    Since I don't work at Creative, I wouldn't know.

     

    How about you email/phone/fax them and see for yourself...

  7. If MacOSX has the single menubar on top [...] problem
    Not a prob.
    Do you mean that Linux can do that now? (move all menubars to the top and switch depending on focus)

     

    Always could, since I can remember... It just works with mostly only Qt apps (in KDE) and I think Gnome will do it with GTK apps, possibly by default... I can't recall.

  8. PLF is unavoidable for all Linux users. And PLF is entirely USA's fault :evil: 

    USA have a way or making stupid laws (or "bills" it seems to be called over there).

    As most distro want to be able to sell in the USA, they cannot include packages that go against USA's laws. But everywhere else in the world, PLF packages are legal. I hate Bush and his weak government, that is allowing the big corporations' will to become law :evil:

     

    I think that all PLF should be available as an ISO (kind of a 4th CD) to be used in other places than USA.

     

    Yves.

     

    ...should I Moderate myself for this post :? ...

     

    You know what... Someone has already thought of that idea, and it is being worked on. More information at a later date.

  9. It's the full version you download. The only thing that is a trial about it is the license agreement.

     

    I used it once (that time that it picked up a DOS virus in a compiled Wine file) and haven't used it since, so I probably won't buy it. I don't even have it installed either.

  10. I used to use gtk-theme-selector-capplet or something like that to switch between my different GTK themes. This program seems to be missing now. What is it that you use to change these?

×
×
  • Create New...