Ask Your Question
0

working of fedora 16 64 bit in 32 bit system

asked 2013-02-28 22:48:19 -0500

kriscool gravatar image

updated 2013-03-01 18:56:30 -0500

FranciscoD_ gravatar image

I am having a 32 bit laptop, but i have installed fedora 64 bit OS for the execution of PLS program through opencv. At first time of installing the opencv i was succeeded in program by displaying a sample jpeg image. But after that i tried the same program for execution it is giving the reply as follows

 [coolkris@localhost ~]$ cd Desktop
 [coolkris@localhost Desktop]$ cd
 OpenCV-2.4.3 [coolkris@localhost
 OpenCV-2.4.3]$ cd samples
 [coolkris@localhost samples]$ cd c
 [coolkris@localhost c]$ sh
 build_all.sh compiling contours.c
 /usr/bin/ld: /tmp/ccM12IM5.o: undefined reference to symbol
 'sin@@GLIBC_2.2.5' /usr/bin/ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
 /lib64/libm.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status compiling convert_cascade.c compiling delaunay.c compiling fback_c.c compiling morphology.c compiling motempl.c 
 /usr/bin/ld: /tmp/ccQCtaaF.o: undefined reference to symbol 'sin@@GLIBC_2.2.5' /usr/bin/ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO
 /lib64/libm.so.6 so try adding it to the linker command line
 /lib64/libm.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status compiling polar_transforms.c compiling pyramid_segmentation.c compiling adaptiveskindetector.cpp compiling bgfg_codebook.cpp compiling blobtrack_sample.cpp compiling facedetect.cpp compiling find_obj_calonder.cpp compiling find_obj.cpp compiling find_obj_ferns.cpp compiling latentsvmdetect.cpp compiling mser_sample.cpp compiling mushroom.cpp compiling one_way_sample.cpp compiling tree_engine.cpp 
 [coolkris@localhost c]$ ./facedetect lena.jpg This program
 demonstrates the cascade recognizer.  Now you can use Haar or LBP features.
 This classifier can recognize many kinds of rigid objects, once the appropriate classifier is trained.  It's most known use is for faces.
 Usage: ./facedetect
 [--cascade=<cascade_path> this is the primary trained classifier such as frontal face]   
 [--nested-cascade[=nested_cascade_path this an optional secondary classifier such as eyes]]    
 [--scale=<image
 scale greater or equal to 1, try 1.3
 for example>]    [--try-flip]   
 [filename|camera_index]

 see facedetect.cmd for one call:
 ./facedetect
 --cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml"
 --nested-cascade="../../data/haarcascades/haarcascade_eye.xml"
 --scale=1.3

 During execution:  Hit any key to
 quit.  Using OpenCV version 2.4.3

 Processing 1 lena.jpg OpenCV Error:
 Unspecified error (The function is not
 implemented. Rebuild the library with
 Windows, GTK+ 2.x or Carbon support.
 If you are on Ubuntu or Debian,
 install libgtk2.0-dev and pkg-config,
 then re-run cmake or configure script)
 in cvNamedWindow, file
 /home/coolkris/Desktop/OpenCV-2.4.3/modules/highgui/src/window.cpp, line 602 terminate called after
 throwing an instance of
 'cv::Exception'   what(): 
/home/coolkris/Desktop/OpenCV-2.4.3/modules/highgui/src/window.cpp:602:
 error: (-2) The function is not
 implemented. Rebuild the library with
 Windows, GTK+ 2.x or Carbon support.
 If you are on Ubuntu or Debian,
 install libgtk2.0-dev and pkg-config,
 then re-run cmake or configure script
 in function cvNamedWindow

 Aborted (core dumped)

The above is the response ... (more)

edit retag flag offensive close merge delete

Comments

How do you run a 64bit OS on 32 bit hardware? As far as I know, you can run 32 bit software on 64 bit hardware but not vice versa.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-03-01 01:31:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-03-01 19:03:23 -0500

FranciscoD_ gravatar image
  1. You cannot install a 64 bit OS on 32 bit hardware. If it's working, you've got your information wrong.

  2. The above error is quite clear.

    'sin@@GLIBC2.2.5' /usr/bin/ld: note: 'sin@@GLIBC2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line

You need to add -lm to the linker command line, that is in the LDFLAGS. Refer to: http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

This doesn't seem like a fedora issue. It's more a compilation from source issue. You need to know how to use autotools and then fix the issue. I'd suggest getting help at the openCV users mailing list or IRC channel rather than this forum.

edit flag offensive delete link more
0

answered 2013-03-01 00:32:25 -0500

Mordoc gravatar image

If you compiled this from source, the error message says to "install libgtk2.0-dev and pkg-config, then re-run cmake or configure script." If you installed the .deb package remove the package and reinstall ensuring that libgtk2.0 Was installed...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-28 22:48:19 -0500

Seen: 1,280 times

Last updated: Mar 01 '13