Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40

Thread: Graphix and FPC v1.0.10 Problem.

  1. #11

    Graphix and FPC v1.0.10 Problem.

    OK,i will give a try.
    I will check out the S2DL too.

  2. #12

    Graphix and FPC v1.0.10 Problem.

    1)When i try to call SDL is says usint nor found.
    I have the whole JediSDL pakag into usint directory under "JediSDL" folder name.
    2)Also the S2DL game template dont work...
    Logger not found and same for sysutils.

  3. #13

    Graphix and FPC v1.0.10 Problem.

    Did you just update FPC? you probably broken your paths. If sysutils is not found it means FPC.CFG points to wrong units or no units.
    Make sure the uncommented -Fu entries in FPC.CFG point to the right paths(make sure the paths version number is same as FPC version number)

    Best thing to do (easiest that is) is to uinstall FPC and get 1.9.6 and install it from scratch. If you're in win32 this should be easy.
    Feel the power of Open Source.
    <br />Feel the power of Free Pascal.

  4. #14
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    The previous versions of S2DL used the Logger.pas unit that came with JEFI-SDL. Based on my internal requirements of defining the level of logging I modified the logger.pas file to create S2DLLogger.pas.

    If a unit is using Logger.pas still it should be modified to use S2DLLogger.pas
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  5. #15

    Graphix and FPC v1.0.10 Problem.

    1)Ol,i isntalled 1.9.6 from the scratch.
    2)Got all the neede stuff an the latest s2dl units(for some reason i had v1.00 only!lol)

    i will post my result later.Thanks for your support people.

    EDIT:
    Didnt worked:
    I first entered all files of v1.01 uppon v1.00.the same till latest version (1.03)
    i tried to run ball.pp but got his:

    errorystem unit not found...

    Also why remove the -fu entries?It says not to touch them...However i post them here so if anyone could help.

    fp.cfg
    # Automaticly created file, don't edit.
    #IFDEF NORMAL
    -TGo32v2
    -Sg
    -O1
    -OG
    -Op3
    -Ratt
    -Fuc:\FPC\units\$FPCTARGET
    -Fuc:\FPC\units\$FPCTARGET\*
    -Fuc:\FPC\units\$FPCTARGET\rtl
    -Cs131072
    -Ch2097152
    -g-
    -p-
    -b-

    -T$3
    #ENDIF

    #IFDEF DEBUG
    -TGo32v2
    -Sg
    -Cr
    -Ci
    -Co
    -OG
    -Op3
    -Ratt
    -Fuc:\FPC\units\$FPCTARGET
    -Fuc:\FPC\units\$FPCTARGET\*
    -Fuc:\FPC\units\$FPCTARGET\rtl
    -Cs131072
    -Ch2097152
    -g
    -p-
    -b-

    -T$3
    #ENDIF

    #IFDEF RELEASE
    -TGo32v2
    -Sg
    -O1
    -O2
    -OG
    -Op3
    -Ratt
    -Fuc:\FPC\units\$FPCTARGET
    -Fuc:\FPC\units\$FPCTARGET\*
    -Fuc:\FPC\units\$FPCTARGET\rtl
    -Cs131072
    -Ch2097152
    -g-
    -p-
    -b-

    -T$3
    #ENDIF
    and fpc.cfg
    #
    # 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
    # ----------------

    # All assembler blocks are intel styled by default
    #-Rintel

    # All assembler blocks are AT&T styled by default
    #-Ratt

    # All assembler blocks are directly copied to asm
    #-Rdirect

    # Semantic checking
    # -S2 switch some Delphi 2 extensions on
    # -Sc supports operators like C (*=,+=,/= and -=)
    # -Sd tries to be Delphi compatible
    # -Se<x> compiler stops after the <x> errors (default is 1)
    # -Sg allow LABEL and GOTO
    # -Sh Use ansistrings
    # -Si support C++ styled INLINE
    # -Sm support macros like C (global)
    # -So tries to be TP/BP 7.0 compatible
    # -Sp tries to be gpc compatible
    # -Ss constructor name must be init (destructor must be done)
    # -St allow static keyword in objects
    # Allow goto, inline, C-operators
    -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
    # -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 PentiumII
    #-Og2p3


    # -----------------------
    # Set Filenames and Paths
    # -----------------------

    # Both slashes and backslashes are allowed in paths

    # path to the messagefile, not necessary anymore but can be used to override
    # the default language
    #-Frc:\FPC/msg/errore.msg
    #-Frc:\FPC/msg/errorn.msg
    #-Frc:\FPC/msg/errores.msg
    #-Frc:\FPC/msg/errord.msg
    #-Frc:\FPC/msg/errorr.msg

    # path to the gcclib
    #-Flc:\FPC/lib

    # searchpath for includefiles
    # release them only if you know what you do
    # because this could cause a rebuild of the runtime library
    # if you tell them compiler/ide to build the project (FK)
    #-Fic:\FPC/source/rtl/inc;c:\FPC/source/rtl/i386

    # searchpath for objectfiles
    #-Foc:\FPC/source/rtl/inc;c:\FPC/source/rtl/i386

    # searchpath for units and other system dependent things
    -Fuc:\FPC/units/$FPCTARGET
    -Fuc:\FPC/units/$FPCTARGET/*
    -Fuc:\FPC/units/$FPCTARGET/rtl

    # searchpath for libraries
    #-Flc:\FPC/lib
    #-Fl/lib;/usr/lib

    # searchpath for tools
    -FDc:\FPC/bin/$FPCTARGET

    # -------------
    # Linking
    # -------------

    # generate always debugging information for GDB (slows down the compiling
    # process)
    #-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 used files
    # n : Show notes t : Show tried 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)

    # Display Info, Warnings, Notes and Hints
    -viwn
    # If you don't want so much verbosity use
    #-vw

  6. #16

    Graphix and FPC v1.0.10 Problem.

    System unit not found means one of 2 things:
    Wrong paths or broken install.

    Can you post here where you got your FPC sources(if you got them) and there you got FPC itself? Without that knowlidge I can't help you.
    Feel the power of Open Source.
    <br />Feel the power of Free Pascal.

  7. #17

    Graphix and FPC v1.0.10 Problem.

    I will take some pictures and upload them somehwere,then post here.please wait a little.

    EDIT
    Badly i dound no space to up my pics.
    However here info:

    I got this pack of FPC:
    http://prdownloads.sourceforge.net/f...2.zip?download

    I use WinXP SP@

    Also hat do you mean FPC sources?

  8. #18

    Graphix and FPC v1.0.10 Problem.

    Ok well I reread the entire article again to get a clear picture of what your problem is.

    1st. you sayed you have your SDL/S2DL(?) libs in some directory.
    Make sure, when you compile your app(which uses them) to add
    -Fu<pathtoSDL/S2DL> -Fi<pathtoSDL/S2DL includes>
    Or if you use lazarus you can achieve this via:
    Projectc/Compiler Options/Other Unit Files and Include Files
    Fill in the fields approprietly and your app should compile.

    As for the missing System unit I'm not sure. If you installed from the official exe installer there shouldn't be any problems. Perhaps you had an older fpc version before? Maybe your fpc.cfg file points to some old location then.

    If nothing helps, try to delete all traces of FPC(sources/libs etc also fpc.cfg) and reinstall.
    Feel the power of Open Source.
    <br />Feel the power of Free Pascal.

  9. #19

    Graphix and FPC v1.0.10 Problem.

    OK,i found and solved some of the problems.
    1)I enabled Verbose mode and saw the errors.
    While it was search for Logger.PAS,it was searching anly root folder and no deeper.
    Example:
    C:\FPC\SDL\
    While Logger was located in:
    C:\FPC\SDL\Pas\
    2)I took all PAS files and put them under one dir and
    deleted all of SDL uneeded stuff(examples etc)
    3)Now it found Logger(I wonder why since it couldnt be found at the beggining)
    *Solved:Target was incorrect,sorry for this.
    4)I set target to Win32,now try to run Balls.pp,and the teplate.pp.
    Got these error on both:

    Balls.pp(Using Normal Logger.PAS)
    Error:Indentifier Not Found "Class"
    Fatal:You need either-S2 or -Sd mode to copile this module.
    Either i set parameters(via Run->Parameters)to -s2 or sd,none worked.

    Ball.pp (with S2DLLoger.PAS)
    Same as above.

    S2DL Template.pp(With and without mofified logger.pas/s2dllogger.pas)
    Same stuff as above.

    What could be wrong?

  10. #20
    Anonymous
    Guest

    Graphix and FPC v1.0.10 Problem.

    Quote Originally Posted by EmbranceII
    OK,i found and solved some of the problems.
    1)I enabled Verbose mode and saw the errors.
    While it was search for Logger.PAS,it was searching anly root folder and no deeper.
    Example:
    C:\FPC\SDL\
    While Logger was located in:
    C:\FPC\SDL\Pas\
    2)I took all PAS files and put them under one dir and
    deleted all of SDL uneeded stuff(examples etc)
    3)Now it found Logger(I wonder why since it couldnt be found at the beggining)
    *Solved:Target was incorrect,sorry for this.
    4)I set target to Win32,now try to run Balls.pp,and the teplate.pp.
    Got these error on both:

    Balls.pp(Using Normal Logger.PAS)
    Error:Indentifier Not Found "Class"
    Fatal:You need either-S2 or -Sd mode to copile this module.
    Either i set parameters(via Run->Parameters)to -s2 or sd,none worked.

    Ball.pp (with S2DLLoger.PAS)
    Same as above.

    S2DL Template.pp(With and without mofified logger.pas/s2dllogger.pas)
    Same stuff as above.

    What could be wrong?
    First, the path problem, next time do

    -Fuc:\SDL\*

    The * will make FPC recurse directories.

    Second, one can't make the error message more clear than that. The code you are trying to compile is written for Delphi and Kylix, and needs delphi mode (-Sd) enabled. (or -Sd on a line in fpc.cfg, or {$mode delphi} in all sources)

    Keep in mind that in a virgin FPC install defaults to turbo pascal mode, not Delphi.

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

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