Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: C++, SDL and crosscompiling
Posted by: Laurent / Thadoss Mar,26.2015-09:53 

> -lgem :)

lol. That was it. Great.


> You should use 'sdl-config --libs' and 'sdl-config --cflags' to be sure you've got all the dependencies.

How can I test this ?
I use the cross compiler from Vincent Riviere under linux for my tests.


Another problem now ;) :

My little program compiles well for both Linux+SDL and Atari+SDL
(No error, no warning).

I can run it under linux (it works).
When I run the atari one, it waits some time, then I get :

Unable to init SDL

This happen at the early beginning of the code, here :

int error_number = 0;

error_number = SDL_Init(SDL_INIT_EVERYTHING);

if(error_number < 0)
{
printf("Unable to init SDL: %d %s ", error_number, SDL_GetError());
SDL_Quit();
getchar();
std::exit(1);

}

I get -1 in error_number and an empty string for the SDL error message.

Any idea of my problem ?

regards

Laurent








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
C++, SDL and crosscompiling Laurent / Thadoss Mar,25.2015-23:06
  Re: C++, SDL and crosscompiling mikro Mar,26.2015-09:12
    Re: C++, SDL and crosscompiling Laurent / Thadoss Mar,26.2015-09:53
      Re: C++, SDL and crosscompiling Patrice Mandin Mar,26.2015-20:33
        Re: C++, SDL and crosscompiling Laurent / Thadoss Mar,26.2015-22:21
          Re: C++, SDL and crosscompiling deez Mar,26.2015-22:37
            Re: C++, SDL and crosscompiling Laurent / Thadoss Mar,26.2015-22:48
              Re: C++, SDL and crosscompiling Laurent/Thadoss Mar,27.2015-09:27
                Re: C++, SDL and crosscompiling Patrice Mandin Mar,27.2015-21:15
                  SDL 1.2.15 - 20150328 Patrice Mandin Mar,28.2015-10:37
                    Re: SDL 1.2.15 - 20150328 Beetle Apr,18.2015-14:07
                      Re: SDL 1.2.15 - 20150328 mikro Apr,20.2015-09:00
                        Re: SDL 1.2.15 - 20150328 Beetle Apr,20.2015-10:30
                          Re: SDL 1.2.15 - 20150328 Beetle Apr,20.2015-10:33
                            Re: SDL 1.2.15 - 20150328 mikro Apr,20.2015-11:36
                              Re: SDL 1.2.15 - 20150328 Beetle Apr,20.2015-20:14


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson