Recent

Author Topic: Porting FANN  (Read 31715 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #15 on: March 30, 2010, 01:45:44 pm »
Done.

Now I have the following messages:

Hint: Start of reading config file C:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.4 [2009/10/25] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling ProjectXor.lpr
Compiling XorSample.pas
Compiling FannNetwork.pas
Compiling FANN.pas
FannNetwork.pas(189,17) Hint: Local variable "l" does not seem to be initialized
FannNetwork.pas(21,10) Hint: Unit "windows" not used in FannNetwork
FannNetwork.pas(21,20) Hint: Unit "messages" not used in FannNetwork
Compiling resource C:\Documents and Settings\antonio\Desktop\Texto\XorTFannNetwork\fann.dcr
windres [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex
FannNetwork.pas(722,1) Error: Error while linking
Hint: Start of reading config file C:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.4 [2009/10/25] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling ProjectXor.lpr
Compiling XorSample.pas
Compiling FannNetwork.pas
Compiling FANN.pas
FannNetwork.pas(189,17) Hint: Local variable "l" does not seem to be initialized
FannNetwork.pas(21,10) Hint: Unit "windows" not used in FannNetwork
FannNetwork.pas(21,20) Hint: Unit "messages" not used in FannNetwork
Compiling resource C:\Documents and Settings\antonio\Desktop\Texto\XorTFannNetwork\fann.dcr
Usage: c:\lazarus\fpc\2.2.4\bin\i386-win32\windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
c:\lazarus\fpc\2.2.4\bin\i386-win32\windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex
FannNetwork.pas(722,1) Error: Error while linking
FannNetwork.pas(722,1) Fatal: There were 1 errors compiling module, stopping

And the compiler stops.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8262
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Porting FANN
« Reply #16 on: March 30, 2010, 02:08:24 pm »
Quote
Compiling resource C:\Documents and Settings\antonio\Desktop\Texto\XorTFannNetwork\fann.dcr
dcr = Delphi Compiled Resource? What's compiled there? If it's application icon, try using Lazarus way instead (specify in project options).

FPC uses windres and it doesn't know anything about Delphi resources.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #17 on: March 30, 2010, 11:12:59 pm »
Well, almost all solved, except the LRS file, which I commented, but nothing appears in the form. IDE opens the LRS file and message is:

XorSample.lrs(3,17) Error: Identifier not found "LazarusResources"
« Last Edit: March 30, 2010, 11:14:48 pm by typo »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #18 on: March 31, 2010, 09:34:43 am »
OK, demo project works now in Lazarus. Thanks to all.

weedape

  • Newbie
  • Posts: 1
Re: Porting FANN
« Reply #19 on: June 23, 2010, 06:23:17 pm »
OK, demo project works now in Lazarus. Thanks to all.

Am i missing something? Why don't you supply us with information on porting it or the source  :D

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #20 on: June 23, 2010, 07:11:52 pm »
Files exceed the size limit for posting them.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8262
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Porting FANN
« Reply #21 on: June 25, 2010, 11:57:35 pm »
Could you post it somewhere like google code or sourceforge?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #22 on: June 26, 2010, 01:51:55 am »

avra

  • Hero Member
  • *****
  • Posts: 1998
    • Additional info
Re: Porting FANN
« Reply #23 on: August 24, 2011, 12:49:08 am »
Link is dead. Could someone please put it somewhere so it can be downloaded? Or even better, give it to FANN author to put it on FANN bindings page?
Thanks!
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Porting FANN
« Reply #24 on: August 24, 2011, 01:04:11 am »
I have tested the link and it is OK.

avra

  • Hero Member
  • *****
  • Posts: 1998
    • Additional info
Re: Porting FANN
« Reply #25 on: August 24, 2011, 01:32:05 am »
I have tested the link and it is OK.
Thanks for the info. I have tried again and it could still not be reached (not even the home page). Also PING didn't work. Then I tried some PROXY and IT WORKED!!! Thanks typo, without your info I would have never tried this. Somehow my DNS considers that domain unknown...
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

avra

  • Hero Member
  • *****
  • Posts: 1998
    • Additional info
Re: Porting FANN
« Reply #26 on: December 27, 2013, 02:19:31 pm »
FANN network demos for Lazarus:
http://code.google.com/p/fann-lazarus-demos/downloads/list

Evolable neural networks experiment for Lazarus (not FANN related):
http://code.google.com/p/evonet/source/browse/#svn%2Ftrunk%2Fsrc
« Last Edit: December 27, 2013, 02:30:10 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018