Results 1 to 2 of 2

Thread: link error

  1. #1
    grantfullen NNTP User

    Default link error

    First time Linux user.
    I have opensuse 10 and Lazarus 0.9.24 it installed fine but when i try to compile a form1 hello world i get.

    granthost:~ # lazarus
    TApplication.IconChanged - TODO: convert this implementation in gtk or win32
    NOTE: miscellaneous options file not found - using defaults
    NOTE: codetools config file not found - using defaults
    NOTE: help options config file not found - using defaults
    TMainIDE.DoNewProject A
    TMainIDE.DoNewEditorFile A NewFilename=
    [TCustomFormEditor.CreateComponent] Class='TForm'
    TMainIDE.DoNewEditorFile end unit1.pas
    [TMainIDE.DoRunProject] A
    TMainIDE.DoInitProjectRun A True 0
    TMainIDE.DoInitProjectRun B
    TMainIDE.DoSaveProject End
    TCompiler.Compile WorkingDir="/tmp/" CompilerFilename="/usr/bin/ppc386" CompilerParams=" -S2cgi -OG1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -dLCL -dLCLgtk2 /tmp/project1.lpr"
    [TCompiler.Compile] CmdLine="/usr/bin/ppc386 -S2cgi -OG1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/i386-linux/ -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -dLCL -dLCLgtk2 /tmp/project1.lpr"
    Hint: Start of reading config file /etc/fpc.cfg
    Hint: End of reading config file /etc/fpc.cfg
    Warning: You are using the obsolete switch -OG
    Free Pascal Compiler version 2.2.0 [2008/02/12] for i386
    Copyright (c) 1993-2007 by Florian Klaempfl
    Target OS: Linux for i386
    Compiling /tmp/project1.lpr
    Compiling unit1.pas
    Linking /tmp/project1
    /usr/bin/ld: cannot find -lX11
    project1.lpr(17,1) Error: Error while linking
    project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping
    TMessagesView.CollectLineParts WARNING: 11<>9 SrcLine=project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping

    I am a long time windows Delphi user and would love to start useing and developing apps for linux with lazarus.
    BE NICE I know nothing about linux or lazarus.
    THanks for any comments or help.

  2. #2
    Join Date
    Jun 2008
    Albuquerque, NM, USA

    Default Re: link error

    There could be many problems. First, I would start with using one of the pre-packaged versions from the build service. After that, I would report the bug upstream to the lazarus developers.
    It's really that much fun!
    Geeko Samurai (cc)
    My Recent Tracks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts