ASM Library on 64bit linux (ubuntu lucid)

225 views
Skip to first unread message

Tamas Lengyel

unread,
Jul 1, 2010, 12:53:43 PM7/1/10
to ASMLibrary
Hi Yao,
the library included for the linux version of asm library fails to
compile on i386:x86-64 (64 bit) as it is for i386:x86. It works on 32
bit version, so you might want to create a 64 bit library version of
it for future releases ;) Please see that attached log for reference:

amas@tamas-desktop:~/Documents/asmlibrary-5.0/src$ make
g++ -fpic -O2 -Wall -g -MD -I../include -I/usr/local/include/opencv -
c -o demo_fit.o demo_fit.cpp
g++ -fpic -O2 -Wall -g -MD -I../include -I/usr/local/include/opencv -
c -o vjfacedetect.o vjfacedetect.cpp
g++ -fpic -O2 -Wall -g -MD -I../include -I/usr/local/include/opencv -
c -o video_camera.o video_camera.cpp
g++ -o fit demo_fit.o vjfacedetect.o video_camera.o ../libs/linux/
libasmlibrary.a -Wl,-rpath=/usr/local/lib -L/opt/opencv/lib -lcv -
lcxcore -lhighgui
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(asm_shape.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(asm_common.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(asmfitting.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(asm_model.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(asm_profile.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: i386 architecture of input file `../libs/linux/
libasmlibrary.a(lbp.o)' is incompatible with i386:x86-64 output
../libs/linux/libasmlibrary.a(asm_shape.o): In function
`asm_shape::Resize(int)':
/root/桌面/asmlibrary-4.0/src/asm_shape.cpp:69: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_shape.o): In function
`asm_shape::operator=(asm_shape const&)':
/root/桌面/asmlibrary-4.0/src/asm_shape.cpp:37: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_shape.o): In function `asm_shape':
/root/桌面/asmlibrary-4.0/src/asm_shape.cpp:28: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_shape.cpp:28: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asmfitting.o): In function
`asmfitting::Read(char const*)':
/root/桌面/asmlibrary-4.0/src/asmfitting.cpp:65: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asmfitting.o):/root/桌面/asmlibrary-4.0/
src/asmfitting.cpp:66: more undefined references to `operator new[]
(unsigned int)' follow
../libs/linux/libasmlibrary.a(asm_model.o): In function
`asm_model::ReadModel(_IO_FILE*)':
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1086: undefined reference to
`operator new(unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1105: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1108: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1062: undefined reference to
`operator new(unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1064: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1065: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1066: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1069: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:1076: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_model.o):/root/桌面/asmlibrary-4.0/src/
asm_model.cpp:839: more undefined references to `operator new[]
(unsigned int)' follow
../libs/linux/libasmlibrary.a(asm_model.o): In function
`asm_model::Build(char const**, int, asm_shape const*, int, bool, int,
double, int, ASM_PROFILE_TYPE)':
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:142: undefined reference to
`operator new(unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:167: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:177: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:180: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:183: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:125: undefined reference to
`operator new(unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_model.cpp:131: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_profile.o): In function
`asm_profile::Resize(int)':
/root/桌面/asmlibrary-4.0/src/asm_profile.cpp:57: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_profile.o): In function
`asm_profile::operator=(asm_profile const&)':
/root/桌面/asmlibrary-4.0/src/asm_profile.cpp:44: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(asm_profile.o): In function
`asm_profile':
/root/桌面/asmlibrary-4.0/src/asm_profile.cpp:37: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/asm_profile.cpp:37: undefined reference to
`operator new[](unsigned int)'
../libs/linux/libasmlibrary.a(lbp.o):/root/桌面/asmlibrary-4.0/src/
lbp.cpp:229: more undefined references to `operator new[](unsigned
int)' follow
../libs/linux/libasmlibrary.a(lbp.o): In function `LBP_InitTable':
/root/桌面/asmlibrary-4.0/src/lbp.cpp:68: undefined reference to
`operator new(unsigned int)'
/root/桌面/asmlibrary-4.0/src/lbp.cpp:72: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/lbp.cpp:76: undefined reference to
`operator new[](unsigned int)'
/root/桌面/asmlibrary-4.0/src/lbp.cpp:80: undefined reference to
`operator new[](unsigned int)'
collect2: ld returned 1 exit status
make: *** [fit] Error 1

Yao Wei

unread,
Jul 2, 2010, 3:37:42 AM7/2/10
to asmli...@googlegroups.com
Ihavenot any 64-bit machine in hand. sorry.

2010/7/2 Tamas Lengyel <tamas.k...@gmail.com>



--
Yao Wei, P.R. China
Mobile: (+86) 138-1698-4972

Everything should be made as simple as possible, but not simpler.

Tamas Lengyel

unread,
Jul 2, 2010, 9:40:48 AM7/2/10
to ASMLibrary
Maybe you can try installing a 64bit machine inside VirtualBox. But
it's just for future releases, it's not really a must. ;)

On Jul 2, 3:37 am, Yao Wei <njus...@gmail.com> wrote:
> Ihavenot any 64-bit machine in hand. sorry.
>
> 2010/7/2 Tamas Lengyel <tamas.k.leng...@gmail.com>
Reply all
Reply to author
Forward
0 new messages