What is the TMouse Object lazarus / 1-Linux ---------------------------------------------------------------------- rastrahm · 2005-06-09 17:09 I speack spanish, my english is very back. I need help with this I compile the lazarus and then indicate what need the system.pp, I repair this agree that line -Fu/usr/share/fpcsrc/i386, and compile to next line then indicate what need the control.pp, I indicate the -Fu/usr/share/fpcscr/linux. Ok My problem is the compile what indicate in mouse.inc indicate what a problem wich TMouse object and not indicate this ---------------------------------------------------------------------- matthijs · 2005-06-10 15:10 Check your fpc.cfg has this lines: Code: [Select] # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl If this is the case you should give some more info about Compiler options set in Lazarus. ---------------------------------------------------------------------- rastrahm · 2005-06-10 20:07 Tank you, I include this sugestion and this is the result: Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling alllclunits.pp Compiling /usr/share/fpcsrc/rtl/linux/system.pp set.inc(26,9) Error: Unrecognized opcode stw set.inc(26,17) Error: Assembler syntax error set.inc(27,9) Error: Unrecognized opcode li set.inc(27,17) Error: Assembler syntax error set.inc(28,9) Error: Unrecognized opcode stw set.inc(28,17) Error: Assembler syntax error set.inc(29,9) Error: Unrecognized opcode stw set.inc(29,17) Error: Assembler syntax error set.inc(30,9) Error: Unrecognized opcode stw set.inc(30,17) Error: Assembler syntax error set.inc(31,9) Error: Unrecognized opcode stw set.inc(31,17) Error: Assembler syntax error set.inc(32,9) Error: Unrecognized opcode stw set.inc(32,17) Error: Assembler syntax error set.inc(33,9) Error: Unrecognized opcode stw set.inc(33,17) Error: Assembler syntax error set.inc(34,9) Error: Unrecognized opcode stw set.inc(34,17) Error: Assembler syntax error set.inc(47,9) Error: Unrecognized opcode li set.inc(47,17) Error: Assembler syntax error set.inc(48,9) Error: Unrecognized opcode stw set.inc(48,17) Error: Assembler syntax error set.inc(49,9) Error: Unrecognized opcode stw set.inc(49,17) Error: Assembler syntax error set.inc(50,9) Error: Unrecognized opcode stw set.inc(50,17) Error: Assembler syntax error set.inc(51,9) Error: Unrecognized opcode stw set.inc(51,17) Error: Assembler syntax error set.inc(52,9) Error: Unrecognized opcode stw set.inc(52,17) Error: Assembler syntax error set.inc(53,9) Error: Unrecognized opcode stw set.inc(53,17) Error: Assembler syntax error set.inc(54,9) Error: Unrecognized opcode stw set.inc(54,17) Error: Assembler syntax error set.inc(55,9) Error: Unrecognized opcode stw set.inc(55,17) Error: Assembler syntax error set.inc(59,9) Error: Unrecognized opcode li set.inc(59,17) Error: Assembler syntax error set.inc(60,9) Error: Unrecognized opcode rlwnm set.inc(60,17) Error: Assembler syntax error set.inc(65,9) Error: Unrecognized opcode rlwinm set.inc(65,17) Error: Assembler syntax error set.inc(68,9) Error: Unrecognized opcode stwx set.inc(68,17) Error: Assembler syntax error set.inc(81,8) Error: Unrecognized opcode lfd set.inc(81,17) Error: Assembler syntax error set.inc(82,8) Error: Unrecognized opcode lfd set.inc(82,17) Error: Assembler syntax error set.inc(83,8) Error: Unrecognized opcode lfd set.inc(83,17) Error: Assembler syntax error set.inc(83,17) Fatal: There were 50 errors compiling module, stopping make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/usr/share/lazarus/lcl' make: *** [lcl] Error 2 Ok, my instalation include fpc-1.9.8, fpcscr-1.9.8 and lazarus 0.9.6, in a debian sarge whit kernel 2.4.8, and I previus install a fpc-1.9.7-src and i386, and lazarus 0.9.4, but i install with alien the 1.9.8 version my fpc.cfg is # # Example fpc.cfg for Free Pascal Compiler # # ---------------------- # Defines (preprocessor) # ---------------------- # # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed # # -d is the same as #DEFINE # -u is the same as #UNDEF # # # Some examples (for switches see below, and the -? helppages) # # Try compiling with the -dRELEASE or -dDEBUG on the commandline # # For a release compile with optimizes and strip debuginfo #IFDEF RELEASE   -OG2p3   -Xs   #WRITE Compiling Release Version #ENDIF # For a debug version compile with debuginfo and all codegeneration checks on #IFDEF DEBUG   -g   -Crtoi   #WRITE Compiling Debug Version #ENDIF # ---------------- # Parsing switches # ---------------- # Pascal language mode #      -Mfpc      free pascal dialect (default) #      -Mobjfpc   switch some Delphi 2 extensions on #      -Mdelphi   tries to be Delphi compatible #      -Mtp       tries to be TP/BP 7.0 compatible #      -Mgpc      tries to be gpc compatible #      -Mmacpas   tries to be compatible to the macintosh pascal dialects # # Turn on Object Pascal extensions by default #-Mobjfpc # Assembler reader mode #      -Rdefault  use default assembler #      -Ratt      read AT&T style assembler #      -Rintel    read Intel style assembler # # All assembler blocks are AT&T styled by default #-Ratt # Semantic checking #      -S2        same as -Mobjfpc #      -Sc        supports operators like C (*=,+=,/= and -=) #      -Sa        include assertion code. #      -Sd        same as -Mdelphi #      -Se     compiler stops after the errors (default is 1) #      -Sg        allow LABEL and GOTO #      -Sh        Use ansistrings #      -Si        support C++ styled INLINE #      -SI     set interface style to #         -SIcomCOM compatible interface (default) #         -SIcorbaCORBA compatible interface #      -Sm        support macros like C (global) #      -So        same as -Mtp #      -Sp        same as -Mgpc #      -Ss        constructor name must be init (destructor must be done) #      -St        allow static keyword in objects # # Allow goto, inline, C-operators, C-vars -Sgic # --------------- # Code generation # --------------- # Uncomment the next line if you always want static/dynamic units by default # (can be overruled with -CD, -CS at the commandline) #-CS #-CD # Set the default heapsize to 8Mb #-Ch8000000 # Set default codegeneration checks (iocheck, overflow, range, stack) #-Ci #-Co #-Cr #-Ct # Optimizer switches for i386 compiler # -Og        generate smaller code # -OG        generate faster code (default) # -Or        keep certain variables in registers (still BUGGY!!!) # -Ou        enable uncertain optimizations (see docs) # -O1        level 1 optimizations (quick optimizations) # -O2        level 2 optimizations (-O1 + slower optimizations) # -O3        level 3 optimizations (same as -O2u) # -Op        target processor #     -Op1  set target processor to 386/486 #     -Op2  set target processor to Pentium/PentiumMMX (tm) #     -Op3  set target processor to PPro/PII/c6x86/K6 (tm) # Optimize always for Size and PII #-OG2p3 # ----------------------- # Set Filenames and Paths # ----------------------- # Slashes are also allowed under dos # path to the messagefile, not necessary anymore but can be used to override # the default language #-Frfpcdir/msg/errore.msg #-Frfpcdir/msg/errorn.msg # searchpath for includefiles #-Fi/pp/inc;/pp/rtl/inc -Fi/usr/share/lazarus/lcl/include -Fi/usr/share/fpcsrc/units/i386-linux/rtl -Fi/usr/share/fpcsrc/rtl/* -Fi/usr/share/fpcsrc/rtl/unix -Fi/usr/share/fpcsrc/rtl/inc -Fi/usr/share/fpcsrc/rtl/linux -Fi/usr/share/fpcsrc/rtl/linux/i386 -Fi/usr/share/fpcsrc/rtl/objpas -Fi/usr/share/fpcsrc/rtl/objpas/sysutils -Fi/usr/share/fpcsrc/rtl/objpas/classes -Fi/usr/share/fpcsrc/fcl/unix # searchpath for units and other system dependent things -Fu/fpcdir/units/$fpctarget -Fu/fpcdir/units/$fpctarget/* -Fu/fpcdir/units/$fpctarget/rtl #-Fu~/fpc/packages/base/*/units/;~/fpc/fcll/units/;~/fpc/rtl/units/ -Fu/usr/lib/fpcscr/units/$fpctarget -Fu/usr/lib/fpcscr/units/$fpctarget/* -Fu/usr/lib/fpcscr/units/$fpctarget/rtl # search path for cross compiled units # -Fu/usr/lib/fpc/1.9.8/cross/$fpccpu-$target/units/* # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl #Incluido para la compilacion del lazarus -Fu/usr/share/fpcsrc/ide -Fu/usr/share/fpcsrc/packages/extra/gtk2/glib/ -Fu/usr/share/lazarus/lcl -Fu/usr/share/lazarus/lcl/* -Fu/usr/share/lazarus/lcl/include -Fu/usr/share/lazarus/lcl/units -Fu/usr/share/lazarus/lcl/units/* -Fu/usr/share/lazarus/lcl/units/i386/linux/gtk -Fu/usr/share/lazarus/components/units -Fu/usr/share/lazarus/components/units/i386/linux -Fu/usr/share/fpcsrc/rtl -Fu/usr/share/fpcsrc/rtl/* -Fu/usr/share/lazarus/lcl/interfaces/gtk -Fu/usr/share/lazarus/lcl/widgetset -Fu/usr/share/fpcsrc/units/i386-linux/ -Fu/usr/share/fpcsrc/rtl/inc -Fu/usr/share/fpcsrc/rtl/i386 -Fu/usr/share/fpcsrc/rtl/linux -Fu/usr/share/fpcsrc/rtl/unix -Fu/usr/share/fpcsrc/rtl/objpas -Fu/usr/share/fpcsrc/fcl/inc -Fu/usr/share/fpcsrc/fcl/image -Fu/usr/share/fpcsrc/packages/base/paszlib -Fu/usr/share/fpcsrc/fcl/xml -Fu/usr/share/fpcsrc/fcl/db -Fu/usr/share/fpcsrc/fcl/db/sqldb -Fu/usr/share/fpcsrc/compiler -Fu/usr/share/fpcsrc/packages/base/netdb # searchpath for libraries -Fl/usr/lib/gcc-lib/i486-linux/3.3.5 -Fl/usr/lib/gcc/i486-linux/3.4.4/units/ #-Fl/pp/lib #-Fl/lib;/usr/lib # ------------- # Linking # ------------- # generate always debugging information for GDB (slows down the compiling # process) #      -gc        generate checks for pointers #      -gd        use dbx #      -gg        use gsym #      -gh        use heap trace unit (for memory leak debugging) #      -gl        use line info unit to show more info for backtraces #      -gv        generates programs tracable with valgrind #      -gw        generate dwarf debugging info # # Enable debuginfo and use the line info unit by default #-gl # always pass an option to the linker #-k-s # Always strip debuginfo from the executable -Xs # ------------- # Miscellaneous # ------------- # Write always a nice FPC logo -l # Verbosity #      e : Show errors (default)       d : Show debug info #      w : Show warnings               u : Show unit info #      n : Show notes                  t : Show tried/used files #      h : Show hints                  m : Show defined macros #      i : Show general info           p : Show compiled procedures #      l : Show linenumbers            c : Show conditionals #      a : Show everything             0 : Show nothing (except errors) #      b : Show all procedure          r : Rhide/GCC compatibility mode #          declarations if an error    x : Executable info (Win32 only) #          occurs # # Display Info, Warnings, Notes and Hints -viwn # If you don't want so much verbosity use #-vw # # That's all folks # I need to indicate what is my error in this file Tank you ---------------------------------------------------------------------- Vincent Snijders · 2005-06-10 21:10 You cannot / should not add -Fu directories from fpcsrc. The fpcsrc packages is provided for the code tools of the IDE, not for compilation. The compiler should use the units in the directories indicated by Matthijs. Remove the directories with fpcsrc from fpc.cfg. ---------------------------------------------------------------------- Anonymous · 2005-06-11 20:40 Tank you, but don't run this, next is the compiler error Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling alllclunits.pp Compiling /usr/share/fpcsrc/rtl/linux/system.pp set.inc(26,9) Error: Unrecognized opcode stw set.inc(26,17) Error: Assembler syntax error set.inc(27,9) Error: Unrecognized opcode li set.inc(27,17) Error: Assembler syntax error ..... Unrecognized opcode lfd set.inc(83,17) Error: Assembler syntax error set.inc(83,17) Fatal: There were 50 errors compiling module, stopping make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/usr/share/lazarus/lcl' make: *** [lcl] Error 2 Well, i reinstall all (fpc-1.9.8, fpcscr-1.9.8 and lazarus 0.9.6) in a debian sarge with kernel 2.4.8 my fpc.cfg contens this lines in -Fi an -Fu # searchpath for includefiles #-Fi/pp/inc;/pp/rtl/inc -Fi/usr/share/lazarus/lcl/include -Fi/usr/share/fpc-1.9.8-src/fpc/units/i386-linux/rtl -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/* -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/unix -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/inc -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/linux -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/linux/i386 -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/objpas -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/objpas/sysutils -Fi/usr/share/fpc-1.9.8-src/fpc/rtl/objpas/classes -Fi/usr/share/fpc-1.9.8-src/fpc/fcl/unix # searchpath for units and other system dependent things -Fu/fpcdir/units/$fpctarget -Fu/fpcdir/units/$fpctarget/* -Fu/fpcdir/units/$fpctarget/rtl #-Fu~/fpc/packages/base/*/units/;~/fpc/fcll/units/;~/fpc/rtl/units/ -Fu/usr/lib/fpc/1.9.8/units/$fpctarget -Fu/usr/lib/fpc/1.9.8/units/$fpctarget/* -Fu/usr/lib/fpc/1.9.8/units/$fpctarget/rtl # search path for cross compiled units -Fu/usr/lib/fpc/1.9.8/cross/$fpccpu-$target/units/* # searchpath for units and other system dependent things -Fu/usr/lib/fpc/1.9.8/units/$fpctarget -Fu/usr/lib/fpc/1.9.8/units/$fpctarget/* -Fu/usr/lib/fpc/1.9.8/units/$fpctarget/rtl #Incluido para la compilacion del lazarus -Fu/usr/share/fpc-1.9.8-src/fpc/ide -Fu/usr/share/fpc-1.9.8-src/fpc/packages/extra/gtk2/glib/ -Fu/usr/share/lazarus/lcl -Fu/usr/share/lazarus/lcl/* -Fu/usr/share/lazarus/lcl/include -Fu/usr/share/lazarus/lcl/units -Fu/usr/share/lazarus/lcl/units/* -Fu/usr/share/lazarus/lcl/units/i386/linux/gtk -Fu/usr/share/lazarus/components/units -Fu/usr/share/lazarus/components/units/i386/linux -Fu/usr/share/fpc-1.9.8-src/fpc/rtl -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/* -Fu/usr/share/lazarus/lcl/interfaces/gtk -Fu/usr/share/lazarus/lcl/widgetset -Fu/usr/share/fpc-1.9.8-src/fpc/units/i386-linux/ -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/inc -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/i386 -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/linux -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/unix -Fu/usr/share/fpc-1.9.8-src/fpc/rtl/objpas -Fu/usr/share/fpc-1.9.8-src/fpc/fcl/inc -Fu/usr/share/fpc-1.9.8-src/fpc/fcl/image -Fu/usr/share/fpc-1.9.8-src/fpc/packages/base/paszlib -Fu/usr/share/fpc-1.9.8-src/fpc/fcl/xml -Fu/usr/share/fpc-1.9.8-src/fpc/fcl/db -Fu/usr/share/fpc-1.9.8-src/fpc/fcl/db/sqldb -Fu/usr/share/fpc-1.9.8-src/fpc/compiler -Fu/usr/share/fpc-1.9.8-src/fpc/packages/base/netdb # searchpath for libraries -Fl/usr/lib/gcc-lib/i486-linux/3.3.5 -Fl/usr/lib/gcc/i486-linux/3.4.4/units/ #-Fl/pp/lib #-Fl/lib;/usr/lib I accept some help ---------------------------------------------------------------------- Vincent Snijders · 2005-06-11 22:02 Remove from fpc.cfg all lines starting with -Fi/usr/share/fpc-1.9.8-src and from #Incluido para la compilacion del lazarus  to -Fu/usr/share/fpc-1.9.8-src Then in /usr/share/lazarus type make. If that doesn't work, report back the error. I assume you have read the Installing lazarus wiki page. It might be interesting to know, where something went wrong in your case. ---------------------------------------------------------------------- rastrahm · 2005-06-11 22:40 Tank you, this compile very good, I question this That not compiled if the path not is general? And, tank you very much ---------------------------------------------------------------------- Anonymous · 2005-06-12 12:21 Quote from: "rastrahm"I question this That not compiled if the path not is general? Sorry, I don't understand this. What do you mean? ---------------------------------------------------------------------- rastrahm · 2005-06-13 22:07 Ok, my english need practice. Well, the compiler need a look general to directories for process all components, but not a look directly or especifit for each component. Then this implicate what a compilation need this parameters general and not parameters especifits ---------------------------------------------------------------------- matthijs · 2005-06-14 06:07 Sorry, your last post doesnot clarify much, but I'll try to give you an answer on what I think you are asking. If this is not the answer you are looking for, please try to explain your question a bit more. In fpc.cfg you only need to tell where the FPC stuff can be found. The compiler options and evironment options of Lazarus will tell where all Lazarus components and sources can be found. Lazarus will tell FPC where it can find the lazarus stuff. If you add more to the FPC.cfg you might override the settings of Lazarus which has the effect that FPC will start looking in the wrong places. ---------------------------------------------------------------------- rastrahm · 2005-06-14 17:17 Ok, your request is for me very clarifity, this is I need understand, tank you