Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error loading fonts
01-24-2012, 02:08 AM,
#4
 
"ls -l" shows the file existing.

Code:
-rw-r--r-- 1 shonumi shonumi 1831113 Jan 21 17:28 /usr/local/share/games/vdrift/data/textures/weather/cubereflection-nosun.png

Scons won't build VDrift when I added the IMG_Init() call because the function is out of scope.

Code:
src/game.cpp: In member function 'void GAME::Start(std::list<std::basic_string<char> >&)':
src/game.cpp:149:11: error: 'IMG_Init' was not declared in this scope
src/game.cpp: At global scope:
src/game.cpp:2532:6: warning: unused parameter 'dt'
scons: *** [build/game.o] Error 1
scons: building terminated because of errors.

But I believe you were right about SDL_image being compiled without PNG support. I tried to build my own game, Mass Blaster, which uses SDL and SDL_image to load PNGs. All of the images refused to load. I'm not sure how I managed to build it that way; all the other times went just fine.

I'll try rebuilding SDL_image and report on how that goes. At this moment, it's not just about playing VDrift; I need SDL_image to make my games too. :p
Reply


Messages In This Thread
Error loading fonts - by Shonumi - 01-22-2012, 12:58 AM
[No subject] - by joevenzon_phpbb2_import3 - 01-23-2012, 10:18 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-23-2012, 10:34 PM
[No subject] - by Shonumi - 01-24-2012, 02:08 AM
New Problem - High Frame Rate - by Shonumi - 01-24-2012, 03:21 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-24-2012, 09:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)