[fpc-pascal] SDL example

Michael Van Canneyt michael at freepascal.org
Wed Apr 20 14:11:58 CEST 2011



On Wed, 20 Apr 2011, Nataraj S Narayan wrote:

> Hi
>
> I had copied it from SDL4Freepascal
> (http://sourceforge.net/projects/sdl4fp/).  It works well on i386.

In that case, you should actually ask the question of the SDL4Freepascal maintainers :-)

Most likely, there is a {$linklib X11} statement somewhere in demo03.pas, 
and that must simply be removed.

Michael.

>
> regards
>
> Nataraj
>
>
>
>
> On Wed, Apr 20, 2011 at 11:54 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>>
>>
>> Which sources are this ?
>>
>> I looked in todays SVN, and I find neither examples, nor a dependency on X11
>> in the sdl package.
>> In fact, the whole FPC package sources do not contain a demo03.pas file.
>> (unless SVN and my harddrive are screwed up)
>>
>> Michael.
>>
>> On Wed, 20 Apr 2011, Nataraj S Narayan wrote:
>>
>>> Hi
>>>
>>> I am on fpc/packages/sdl/examples.
>>>
>>> # ppcrossarm demo03.pas -darm -XD -CX
>>>
>>> Free Pascal Compiler version 2.5.1 [2011/03/01] for arm
>>> Copyright (c) 1993-2010 by Florian Klaempfl
>>> Target OS: Linux for ARM
>>> Compiling demo03.pas
>>> Assembling demo03
>>> Linking demo03
>>> /uclibc-tc/arm-linux-ld: warning: link.res contains output sections;
>>> did you forget -T?
>>> /uclibc-tc/arm-linux-ld: cannot find -lX11
>>> demo03.pas(284) Error: Error while linking
>>> demo03.pas(284) Fatal: There were 1 errors compiling module, stopping
>>> Fatal: Compilation aborted
>>>
>>> Since I am linking against SDL library which uses DirectFB on Arm, I
>>> don't need  X.
>>> How do I disable -lX11 from linking?
>>>
>>> regards
>>>
>>> Nataraj
>>> _______________________________________________
>>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


More information about the fpc-pascal mailing list