Recent

Author Topic: win7 sdl2 lazarus 32bit  (Read 2527 times)

krolikbest

  • Full Member
  • ***
  • Posts: 246
win7 sdl2 lazarus 32bit
« on: December 10, 2017, 06:19:20 pm »
Hi,

recently i've installed win7 (i know that we have new century, i know... :) ) and then lazarus 32 bit ver.1.6 (the same i have on xp machine), then sdl2 (identical to the one on xp). I can compile even launch compiled program but then instead of bitmap that should be loaded in sdl window i see black screen in this window. On xp machine after compiling it works. Maybe someone had/have similar problem?

Regards,

Martin

jamie

  • Hero Member
  • *****
  • Posts: 6091
Re: win7 sdl2 lazarus 32bit
« Reply #1 on: December 10, 2017, 09:31:30 pm »
 Your image fail to load ?

 You are ignoring the Errors reported ?

    Maybe the source of the image is coming from a read only folder and the
 SDL lib has opened it as Read/WRite etc ..
 
 Remember that with Win7, you need to be careful with file permissions.

 I would think the SDL code would have Error checking?
The only true wisdom is knowing you know nothing

krolikbest

  • Full Member
  • ***
  • Posts: 246
Re: win7 sdl2 lazarus 32bit
« Reply #2 on: December 10, 2017, 11:03:52 pm »
hi

i don't have any errors. could be something wrong with privileges but i can load this file into  Timage on the other form..

laz is 32bit, sdl header the same, sdl2 as well. maybe  sdl2 32bits is no longer suitable for win7 64 bit?  :-\

Regards,

Martin

jamie

  • Hero Member
  • *****
  • Posts: 6091
Re: win7 sdl2 lazarus 32bit
« Reply #3 on: December 10, 2017, 11:15:41 pm »
 When I said errors, I was referring to the libraries functions of reporting an issue,
something you may need to call a function within the SDL libs to get info on.

 I don't use image libs since I have most of all units with formats you use for my
code already, I just link it all in..

 Is there a specific image format you need or do you need the option of
many known formats?


The only true wisdom is knowing you know nothing

krolikbest

  • Full Member
  • ***
  • Posts: 246
Re: win7 sdl2 lazarus 32bit
« Reply #4 on: December 10, 2017, 11:23:24 pm »
thread to close, simply have forgotten to copy lib*.dll to sysWow64 in win7. now works well.

Bye.

 

TinyPortal © 2005-2018