kardokake / fanntool

Automatically exported from code.google.com/p/fanntool
0 stars 0 forks source link

How to build for 32bits system? #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
some README or INSTALL file would be welcome

Original issue reported on code.google.com by nicolas....@gmail.com on 6 Mar 2012 at 2:10

GoogleCodeExporter commented 8 years ago
Or at least a Makefile

Original comment by nicolas....@gmail.com on 6 Mar 2012 at 2:12

GoogleCodeExporter commented 8 years ago
there is Project File for an CodeBlocks IDE
use it

Original comment by bluekid70@gmail.com on 25 Mar 2012 at 3:43

GoogleCodeExporter commented 8 years ago
any success with this?
i have not been able to compile it even using codeblocks

a README file or INSTALL file or makefile would be great
thx

Original comment by sebastia...@gmail.com on 21 Apr 2012 at 11:00

GoogleCodeExporter commented 8 years ago
It appears that the tool "Code::Blocks" is being used to do the building.  
See: http://www.codeblocks.org/

Original comment by pwagner3...@gmail.com on 17 Jun 2012 at 2:53

GoogleCodeExporter commented 8 years ago
I have the same comment than comment 3. Even after the installation f fltk1.3 
headers I cannot install fanntools I miss windows.h and that's quit an issue 
for a said multiplatform software.

Do you have any solution or workaround?

Original comment by obrou...@gmail.com on 23 Jul 2012 at 6:34

GoogleCodeExporter commented 8 years ago
read about the CodeBlocks
http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/

there is no need windows.h 
FannTool uses FLTK and FANN anda both of the cross-platform

Original comment by bluekid70@gmail.com on 15 Feb 2013 at 2:12

GoogleCodeExporter commented 8 years ago
Attached are some notes that I made when getting FANNTool to compile on my 
Windows 7 64bit system. There is nothing intentionally 64bit specific, so it 
should work for 32bit systems too.

Perhaps bluekid can include the attached file in the next release of FANNTool, 
so others can more easily contribute to this project.

Original comment by stevenco...@gmail.com on 9 Apr 2013 at 12:10

Attachments:

GoogleCodeExporter commented 8 years ago
Here is a makefile which allowed successful compile of fannTool 1.1 under 
KUbuntu 12.4 with FANN 2.1:

ODIR = obj
OBJ = $(ODIR)/DataProcess.o $(ODIR)/FileSelect.o $(ODIR)/fl_ext_file_chooser.o 
$(ODIR)/Fl_PlotXY.o $(ODIR)/main.o $(ODIR)/Rotated.o
LIBRARIES = -lfltk -lXext -lX11  -lXpm -lfann -lm

$(ODIR)/%.o: %.cpp
    g++ -c -o $@ $< -I.
$(ODIR)/%.o: %.cxx 
    g++ -c -o $@ $< -I.
$(ODIR)/%.o: %.C 
    g++ -c -o $@ $< -I.
$(ODIR)/%.o: %.c
    gcc -c -o $@ $< -I.
FannTool: $(OBJ)
    gcc -o $@ $^ -I. $(LIBRARIES)
clean:
    rm $(ODIR)/*.o

Original comment by Achi...@googlemail.com on 31 Jul 2014 at 9:31

GoogleCodeExporter commented 8 years ago
Thanks Achi. I used that, and tweaked it to get it to work under Ubuntu 14.04. 
(Fann 2.2 is required - I built from source using cmake).

RotateD.C also needed this added: #define FL_LIBRARY

ODIR = obj
FLAGS = -Wno-write-strings -fpermissive -Wno-format-security -Wno-format 
-I/usr/local/include
OBJ = $(ODIR)/DataProcess.o $(ODIR)/fl_ext_file_chooser.o $(ODIR)/Fl_PlotXY.o 
$(ODIR)/main.o $(ODIR)/Rotated.o
LIBRARIES = -lfltk -lXext -lXpm -lfann -lm -lstdc++ -Wl,-Bsymbolic-functions 
-lfltk -lX11 -lfltk_images

$(ODIR)/%.o: %.cpp
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.cxx
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.C
        g++ -c -o $@ $(FLAGS) $< -I.
$(ODIR)/%.o: %.c
        gcc -c -o $@ $(FLAGS) $< -I.
FannTool: $(OBJ)
        gcc -o $@ $^ -I. $(LIBRARIES)
clean:
        rm $(ODIR)/*.o

Original comment by pwbec...@hotmail.com on 4 Aug 2014 at 2:42