Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-04

SDL example

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Nataraj S Narayan

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

Reply by email

Michael Van Canneyt
to Nataraj S Narayan

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.

Nataraj S Narayan wrote 30 lines
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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Nataraj S Narayan
to Michael Van Canneyt

Hi

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

regards

Nataraj

Michael Van Canneyt wrote 47 lines
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  -   > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Michael Van Canneyt
to Nataraj S Narayan
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.

Show quoted text 61 lines
regards Nataraj On Wed, Apr 20, 2011 at 11:54 AM, Michael Van Canneyt 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  -   >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal >> > _______________________________________________ > fpc-pascal maillist  -   > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email