Author Topic: Problems with compilers  (Read 1350 times)

Tomaaz

  • Guest
Problems with compilers
« on: 12. December 2015, 13:46:24 »
While, PulsarLua works rather nice, Pulsar is quite unusable with FreeBASIC and FreePascal. FreeBASIC version seems to be unable to open graphics in format other than BPM. Under Linux, FreePascal complains about missing X module that is required by one of the FreePascal SDL headers (tested on Sparky Linux based on Debian testing).

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Problems with compilers
« Reply #1 on: 14. December 2015, 17:28:00 »
Sorry, but this I can not confirm.
For example the Particlesdemo uses PNG-Files which works without any problems here.
About which X module is FreePascal complaining? You should install the apropriate development library.
Since you said that PulsarLua works and PulsarLua is actually compiled with FreePascal, so you should be able to compile yourself Pulsar2D examples if all dependencies are installed ...
(I am using Kubuntu and Ubuntu MATE which are also based on Debian, so there should be all dependencies available.)
Best regards,
Cybermonkey

Tomaaz

  • Guest
Re: Problems with compilers
« Reply #2 on: 14. December 2015, 18:29:04 »
Sorry, but this I can not confirm.
For example the Particlesdemo uses PNG-Files which works without any problems here.

When I try to run this example compiled with FreeBASIC on Win 10, I get a SDL_LoadBMP error. It works with BMP files.

Since you said that PulsarLua works and PulsarLua is actually compiled with FreePascal, so you should be able to compile yourself Pulsar2D examples if all dependencies are installed ...

Of course, but I need to know what dependencies I need to have installed.

(I am using Kubuntu and Ubuntu MATE which are also based on Debian, so there should be all dependencies available.)

I'm pretty sure they are, but I don't think that "chasing dependencies" situation should take place in case of something like Pulsar. BTW I was wrong. PulsarLua also doesn't work on my distro. There are errors about GL something and division by zero.

Forget Linux. I'm more surprised with this FreeBASIC on Windows situation.

Aurel

  • Regular Member
  • Sr. Member
  • *
  • Posts: 272
    • View Profile
Re: Problems with compilers
« Reply #3 on: 15. December 2015, 08:32:25 »
Quote
Forget Linux
wow do you say that tomek  :o
new basic pro forum on;
http://basicpro.spacefor.site/smf/
GUEST posting enabled

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Problems with compilers
« Reply #4 on: 15. December 2015, 10:13:35 »

When I try to run this example compiled with FreeBASIC on Win 10, I get a SDL_LoadBMP error. It works with BMP files.


Hm, it also works on my Windows 10, so I can't tell what the problem ist. Maybe one or more DLLs are missing? (Sounds like SDL2_image dependency). I will soon upload all needed DLLs in one ZIP file, so you can try that.
Best regards,
Cybermonkey

Tomaaz

  • Guest
Re: Problems with compilers
« Reply #5 on: 15. December 2015, 17:04:40 »
Maybe one or more DLLs are missing? (Sounds like SDL2_image dependency).

It would probably generate an error during the compilation process. Also, why does it work with BMP files?

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Problems with compilers
« Reply #6 on: 16. December 2015, 10:30:03 »
Maybe one or more DLLs are missing? (Sounds like SDL2_image dependency).

It would probably generate an error during the compilation process. Also, why does it work with BMP files?
No, it wouldn't. You can compile AFAIK without the DLLs. All you need are the header files.
It works maybe with BMP files because they are not compressed. For PNGs you'll need the zlib and libpng libraries, too.
Can you load JPEGs?
Best regards,
Cybermonkey

Tomaaz

  • Guest
Re: Problems with compilers
« Reply #7 on: 16. December 2015, 17:31:24 »
No, it wouldn't. You can compile AFAIK without the DLLs.

Nope. You can't. I removed DLLs and this is what I get:
Quote
C:\FreeBASIC\bin\win32\ld.exe: cannot find -lSDL2
C:\FreeBASIC\bin\win32\ld.exe: cannot find -lSDL2_image
C:\FreeBASIC\bin\win32\ld.exe: cannot find -lSDL2_mixer
Press any key to continue . . .

But it's working now. I copied all the DLLs from PulsarLua. This is exactly why we need documentation. ;)

wow do you say that tomek  :o

I don't think I will be using FreeBASIC or FreePascal on Linux, so... But if you are planning to do so, I'm pretty sure Cybermonkey will help you. :)
« Last Edit: 16. December 2015, 17:45:26 by Tomaaz »

Aurel

  • Regular Member
  • Sr. Member
  • *
  • Posts: 272
    • View Profile
Re: Problems with compilers
« Reply #8 on: 02. January 2016, 01:04:40 »
FreeBASIC work fine on my Slitaz box
new basic pro forum on;
http://basicpro.spacefor.site/smf/
GUEST posting enabled