You are not logged in.

#1 2010-11-22 05:01:50

santodelaespada
Member
Registered: 2009-04-15
Posts: 50

insight3d problem compiling [solved]

Hi, I've found this software I'd like to compile using ABS: http://insight3d.sourceforge.net/
the README file contains:

README.txt wrote:

INSIGHT 3D, VERSION 0.3.2
-------------------------

COMPILING UNDEX LINUX
---------------------

To compile insight3d under Linux, you must have the following libraries:

    - opencv
    - opengl
    - SDL
    - libxml2 (to parse xml files)
    - lapack and blas (to do some math)
    - libgtk+-2.0

And this should be pretty much everything. Also, pkg-config should know about those libraries.

Makefile and source code is in the "insight3d" subdirectory. There's no configuration, just execute "make" in the "insight3d" subdirectory.

my PKGBUILD so far is: http://pastebin.com/M3AUG32j

when making the package with "makepkg -s" the output is:

==> Iniciando build()...
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ actions.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ application.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ core_constants.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ core_debug.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ core_image_loader.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ core_math_routines.cpp
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ core_state.cpp
In file included from geometry_structures.h:38:0,
                 from actions.h:28,
                 from actions.cpp:25:
./sift/include/utils.h:159:45: error: declaración nueva 'char* basename(const char*)'
/usr/include/string.h:603:28: error: hace ambigua la declaración antigua 'const char* basename(const char*)'
make: *** [actions.o] Error 1
make: *** Se espera a que terminen otras tareas....
In file included from geometry_structures.h:38:0,
                 from application.h:28,
                 from application.cpp:25:
./sift/include/utils.h:159:45: error: declaración nueva 'char* basename(const char*)'
/usr/include/string.h:603:28: error: hace ambigua la declaración antigua 'const char* basename(const char*)'
make: *** [application.o] Error 1
    Abortando...

I'm not sure if it is a package I'm missing or the compiler.
errors about making the old statement ambiguous?, I'm no pro compiling, this is the first time I've encountered such error.

Last edited by santodelaespada (2010-11-24 17:11:56)

Offline

#2 2010-11-24 10:35:09

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: insight3d problem compiling [solved]

I have discovered this software today and it compiles and runs (but crashes after a special step). You have to do the following steps to compile it:
http://isenmann.wordpress.com/2010/11/2 … rch-linux/

Offline

#3 2010-11-24 17:11:16

santodelaespada
Member
Registered: 2009-04-15
Posts: 50

Re: insight3d problem compiling [solved]

ise wrote:

I have discovered this software today and it compiles and runs (but crashes after a special step). You have to do the following steps to compile it:
http://isenmann.wordpress.com/2010/11/2 … rch-linux/

Thanks for the information posted there, I was missing libANN and ,since I have nvidia graphics, I belive it removes libgl.
Makes no sense to build it if it crashes before the work is done, so I'll just wait until it becomes stable enought.
I'll mark as solved and keep track of your blog ;)

Last edited by santodelaespada (2010-11-24 17:13:56)

Offline

Board footer

Powered by FluxBB