Join Today
+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: SDL lib

  1. #21

    Default Re: SDL lib

    well changing 32 to 16 didn't work. I also replaced my SDL binary with your pre-compompiled one.. same thing.

    flag is set to:

    int flag = SDL_SWSURFACE;

    Actually, I'm doing something very wrong.. even this doesn't work. Exits with the same segmentation fault:

    #include <stdio.h>
    #include <stdlib.h>

    #include <SDL/SDL.h>

    int main(int argc, char *argv[])
    {

    printf("Init SDL");
    if ( SDL_Init(SDL_INIT_VIDEO) < 0 )
    {
    printf("Unable to init SDL: %s\n", SDL_GetError());
    exit(1);
    }
    printf("Init SDL done");
    return 0;
    }
    Can someone post some sample code where SDL_Init works?

    I've also tried this:

    int SDL_main(int argc, char *argv[])
    {

    printf("Init SDL");
    if ( SDL_Init(SDL_INIT_VIDEO) < 0 )
    {
    printf("Unable to init SDL: %s\n", SDL_GetError());
    exit(1);
    }
    printf("Init SDL done");
    return 0;
    }

    int main(int argc, char *argv[])
    {
    // Exit here because if return is used, the application
    // doesn't seem to quit correctly.
    exit(SDL_main(argc, argv));
    }

  2. #22

    Default Re: SDL lib

    Ok.. fixed it.. intoxicated pointed me to

    thunor.org.uk/pipepanic

    which has a nice and simple makefile that newbie's can modify to get working...


 
+ Reply to Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. SDL compiled. Can't run SDL apps
    By riteshtonk in forum Development
    Replies: 6
    Last Post: 11-21-2007, 03:06 PM
  2. a1200 framebuffer lib, ezfb and cximage released !!
    By serverclient2004 in forum Development
    Replies: 3
    Last Post: 08-20-2007, 03:49 PM
  3. Can we use qpe lib to create A780 application
    By madhurvyas in forum Development
    Replies: 2
    Last Post: 08-28-2006, 10:06 AM
  4. Replies: 1
    Last Post: 05-12-2006, 08:28 AM
  5. Wad can .lib be programmed?
    By admin in forum E680 General Chat
    Replies: 9
    Last Post: 02-26-2005, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1