Author Topic: Pascal  (Read 16821 times)

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #15 on: December 04, 2012, 09:43:11 PM »
Okay, I am doing it the crude way ... putting all necessary files from Vampyre into my working directory. Start with ImagingSDL.pas and you'll see what is missing. (Or better copy all files at once.)

Tomaaz

  • Guest
Re: Pascal
« Reply #16 on: December 04, 2012, 09:50:22 PM »
I did it and now all I get is:
Code: [Select]
fpc test.pas -MDelphi (w katalogu /home/tomek/Test)
Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling test.pas
test.pas(17,1) Warning: Library libopenjpeglinx86.a not found, Linking may fail !
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find libopenjpeglinx86.a
Kompilacja nie powiodła się
test.pas(17,1) Error: Error while linking
test.pas(17,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)


Aurel

  • Guest
Re: Pascal
« Reply #17 on: December 04, 2012, 11:42:09 PM »
Tomaaz ...
what you are trying to do ?    :o
Recompile EGSL source code to add your stuff ???   ;)
or fix something you don't like  ;D

I don't use linux ,and i am wondering is anyone else recompile egsl on windows maybe
just ask...
and don't worry i don't want change anything in egsl... ;D

good luck... :D

Tomaaz

  • Guest
Re: Pascal
« Reply #18 on: December 05, 2012, 01:21:13 AM »
Tomaaz ...
what you are trying to do ?    :o

I'm trying to use egslengine with FreePascal. Maybe Markus will waste his time and try to explain you what it means. I'm not gonna do it, because there is to big risk that you simply won't understand anything.

I don't use linux ,and i am wondering is anyone else recompile egsl on windows maybe

I didn't even touch EGSL source code. You've already showed me that you don't have an idea what machine code is. Now I can also see that you know absolutely nothing about Pascal and EGSL. So, there is a big question - why did you write your post? But you don't have to answer it. No one would understand your "poetry" anyway. Just please, do me a favour - don't start another pointless flame. Thanx.

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #19 on: December 05, 2012, 08:31:08 AM »
Search for the file
Quote
libopenjpeglinx86.a
in the Vampyre directory and put it into your working directory, too.

Tomaaz

  • Guest
Re: Pascal
« Reply #20 on: December 05, 2012, 01:08:48 PM »
I would if only... I could find it anywhere. ??? OK. How does it work under Windows? Do I need to copy manually all those files, too?

EDIT: If you've got all required files in one place, could you pack them and send me the archive? You're using Ubuntu so they might work on my Mint.
« Last Edit: December 05, 2012, 01:12:27 PM by Tomaaz »

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #21 on: December 05, 2012, 01:32:16 PM »
It's the same on Windows. You even have to add more libraries.
It should be in Imaging/Extras/Extensions/J2KObjects
Oh, and I don't use Ubuntu anymore. I got now a 64 bit Mageia 2 installed on my new PC ...

Tomaaz

  • Guest
Re: Pascal
« Reply #22 on: December 05, 2012, 01:44:26 PM »
It should be in Imaging/Extras/Extensions/J2KObjects

Yep. It finally works! Thanx a lot! :)

It's the same on Windows. You even have to add more libraries.

I hope Aurel will read this. ;)

Oh, and I don't use Ubuntu anymore. I got now a 64 bit Mageia 2 installed on my new PC ...

I heard this is a very nice distro. Support for Mint 9 I'm using at the moment is about to finished. I'm planning to stay with Mint, but who knows...? How is your experience with Mageia? Are you recommending it? No problems with running EGSL and BASICs (if you tried any of them)?

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #23 on: December 05, 2012, 02:35:52 PM »
No problems with EGSL. (Compiling is a bit more complicated because I switched to Lua 5.2 now and there are no suitable development libraries but it's also no problem to compile Lua yourself - with a little changed makefile).
I tried no BASIC on Magiea so far.

Aurel

  • Guest
Re: Pascal
« Reply #24 on: December 05, 2012, 06:45:57 PM »
Quote
You've already showed me that you don't have an idea what machine code is.
You telling me this ...man who don't understand the difference between machine code
and assembler code ...hahah ;D
Please stop telling lies - :P
oh no...you became a liar...no ..no... :-X
« Last Edit: December 05, 2012, 06:57:51 PM by Aurel »

Tomaaz

  • Guest
Re: Pascal
« Reply #25 on: December 05, 2012, 07:04:09 PM »
Markus, FreePascal with egslengine rocks! :) Extremely easy to use and really fast. Together with Lua + EGSL it's a perfect team. ;)
« Last Edit: December 05, 2012, 07:05:40 PM by Tomaaz »

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #26 on: December 05, 2012, 08:29:14 PM »
Glad, you like it.
Just a few hints: images, sounds, musics etc. are all plain pointers. Here an example:
Code: [Select]
var player:pointer;
..
player :=loadimage ('blabla.png');

Exceptions are bitmap fonts and animations; both are integers.

Tomaaz

  • Guest
Re: Pascal
« Reply #27 on: December 06, 2012, 07:11:27 PM »
Thanx for information. :)

I got it working under Windows as well. All I needed to do was to replace libopenjpeglinx86.a with libopenjpegwin32.a (what was rather obvious) and add libcrtdll.a to the working directory. Source code of my Mandelbrot animation and a Windows executable are attached. The question is - how standalone is this executable? Will it work on any Windows machines or only on those with additional libraries (for example when EGSL is already installed)?

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Pascal
« Reply #28 on: December 06, 2012, 08:08:45 PM »
It will need all required DLLs for distribution. Since I don't want to make chances to the System directory of Windows all DLLs are installed into the EGSL installation directory, so only EGSL itself has access to it. Either place all DLLs into System32 (or any appr. directories) or into the working directory of the mandelbrot file.

Tomaaz

  • Guest
Re: Pascal
« Reply #29 on: December 07, 2012, 02:01:47 AM »
That's what I thought. I guess it's not so easy on Linux...?