01-17-2006, 10:15 AM
If I wanted to port the FANN Library to FB, what would be the steps that I would take?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Porting a lib?
|
01-17-2006, 10:15 AM
If I wanted to port the FANN Library to FB, what would be the steps that I would take?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
01-17-2006, 02:11 PM
well I never port libs before but, here is a way that I might think of :
1. the hard way, rewrite all the lib source to FB ( total port ) :p, and then recompile in FB (you dont want to do this tho ) 2. just take the library file in MingW / GCC format (".a") and then translate the header to FB format. thats it. hope it helps
01-17-2006, 03:38 PM
I think someone created a sort of automatic header translator, am I right? Then basicly you obtain the .a file (compiling the C source in mingw32, for example), translate the headers into .bi files and do some manual editing/double checks.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
01-17-2006, 07:00 PM
Yes, v1ctor created a SWIG script to translate .h to .bi, you can have the package here http://www.freebasic.net/temp/swig_fb.zip
Antoni
01-17-2006, 07:44 PM
Ok, so how do I use that program for one. Two, so all I need is the .a file? Wether that be in C or not?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
01-18-2006, 02:49 AM
I need to compile the library, but I have no clue how. Could somebody walk me through the steps in Dev-C++ or MSVC.NET?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
01-18-2006, 08:44 AM
The lib is in C for C++ or dotnet you need only the language bindings.
Why you will build the lib new? Joshy
sorry about my english
01-18-2006, 08:59 AM
For MSVC, the library has a project for you to compile, which should automatically make the new library file. However, it creates error upon error when it does this. I don't know what to do.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
01-18-2006, 09:39 AM
Sorry about my bad english i don't know what you try.
You don't need to compile the whole lib. If you will use the lib in FreeBASIC you must declare the functions. This is the FreeBASIC code from "simple_test.c" in the example folder. I have test it and it works. (it must be in the same folder as "xor_float.net") Joshy Code: type fann as any ptr Code: #include <stdio.h>
sorry about my english
|
« Next Oldest | Next Newest »
|