Fire Installation problem

234 views
Skip to first unread message

Tuan Dang

unread,
Sep 25, 2013, 11:59:10 AM9/25/13
to fire...@googlegroups.com

Hi,
I try to install FIRE on my Mac OS X Mountain Lion 10.8.5. I use Eclipse for C++, attached is how I setup the Fire project in Eclispe.
I am stuck by the installation for 2 days and I don't think I can find the solution without your help. Here is the entire error message:

10:31:58 **** Build of configuration Debug for project BBB ****
make all
Building file: ../src/basefeature.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/basefeature.d" -MT"src/basefeature.d" -o "src/basefeature.o" "../src/basefeature.cpp"
Finished building: ../src/basefeature.cpp
 
Building file: ../src/diag.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/diag.d" -MT"src/diag.d" -o "src/diag.o" "../src/diag.cpp"
Finished building: ../src/diag.cpp
 
Building file: ../src/extractcolorhistogram.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/extractcolorhistogram.d" -MT"src/extractcolorhistogram.d" -o "src/extractcolorhistogram.o" "../src/extractcolorhistogram.cpp"
In file included from ../src/extractcolorhistogram.cpp:20:
../src/getpot.hpp:1138:34: warning: initialization of pointer of type 'const char *' to null from a constant boolean expression [-Wbool-conversion]
    if( ! search_loop_f ) return false;
                                 ^~~~~
In file included from ../src/extractcolorhistogram.cpp:23:
In file included from ../src/imagefeature.hpp:26:
In file included from ../src/Magick++.h:9:
In file included from ../src/Magick++/Include.h:13:
../src/Magick++/../magick/magick-config.h:29:3: warning: "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-W#warnings]
# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
  ^
../src/Magick++/../magick/magick-config.h:30:3: warning: "this is an obsolete behavior please fix your makefile" [-W#warnings]
# warning "this is an obsolete behavior please fix your makefile"
  ^
../src/Magick++/../magick/magick-config.h:52:3: warning: "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" [-W#warnings]
# warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
  ^
../src/Magick++/../magick/magick-config.h:53:3: warning: "this is an obsolete behavior please fix yours makefile" [-W#warnings]
# warning "this is an obsolete behavior please fix yours makefile"
  ^
5 warnings generated.
Finished building: ../src/extractcolorhistogram.cpp
 
Building file: ../src/gzstream.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/gzstream.d" -MT"src/gzstream.d" -o "src/gzstream.o" "../src/gzstream.cpp"
Finished building: ../src/gzstream.cpp
 
Building file: ../src/histogramfeature.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/histogramfeature.d" -MT"src/histogramfeature.d" -o "src/histogramfeature.o" "../src/histogramfeature.cpp"
Finished building: ../src/histogramfeature.cpp
 
Building file: ../src/imagefeature.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/imagefeature.d" -MT"src/imagefeature.d" -o "src/imagefeature.o" "../src/imagefeature.cpp"
In file included from ../src/imagefeature.cpp:18:
In file included from ../src/imagefeature.hpp:26:
In file included from ../src/Magick++.h:9:
In file included from ../src/Magick++/Include.h:13:
../src/Magick++/../magick/magick-config.h:29:3: warning: "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-W#warnings]
# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
  ^
../src/Magick++/../magick/magick-config.h:30:3: warning: "this is an obsolete behavior please fix your makefile" [-W#warnings]
# warning "this is an obsolete behavior please fix your makefile"
  ^
../src/Magick++/../magick/magick-config.h:52:3: warning: "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" [-W#warnings]
# warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
  ^
../src/Magick++/../magick/magick-config.h:53:3: warning: "this is an obsolete behavior please fix yours makefile" [-W#warnings]
# warning "this is an obsolete behavior please fix yours makefile"
  ^
4 warnings generated.
Finished building: ../src/imagefeature.cpp
 
Building file: ../src/vectorfeature.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/vectorfeature.d" -MT"src/vectorfeature.d" -o "src/vectorfeature.o" "../src/vectorfeature.cpp"
Finished building: ../src/vectorfeature.cpp
 
Building target: BBB
Invoking: MacOS X C++ Linker
g++ -L"/Users/nhontuan/Desktop/download Sep/ImageMagick-6.8.7/lib/ImageMagick-6.8.7/config-Q16" -o "BBB"  ./src/basefeature.o ./src/diag.o ./src/extractcolorhistogram.o ./src/gzstream.o ./src/histogramfeature.o ./src/imagefeature.o ./src/vectorfeature.o  
Undefined symbols for architecture x86_64:
  "Magick::Color::Color(char const*)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Color::~Color()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::colorSpace(MagickCore::ColorspaceType)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::pixelColor(long, long, Magick::Color const&)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::syncPixels()", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::read(std::string const&)", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::Image::write(std::string const&)", referenced from:
      ImageFeature::save(std::string const&, unsigned int const&, unsigned int const&, unsigned int const&) in imagefeature.o
  "Magick::Image::display()", referenced from:
      ImageFeature::display(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::quality(unsigned long)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::Image(Magick::Geometry const&, Magick::Color const&)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::Image()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::Image::~Image()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
      ImageFeature::display(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
      ImageFeature::save(std::string const&, unsigned int const&, unsigned int const&, unsigned int const&) in imagefeature.o
  "Magick::ColorRGB::ColorRGB(double, double, double)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::ColorRGB::ColorRGB()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::ColorRGB::~ColorRGB()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::ColorRGB::operator=(Magick::Color const&)", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::Geometry::Geometry(unsigned long, unsigned long, long, long, bool, bool)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Geometry::~Geometry()", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::ColorGray::ColorGray(double)", referenced from:
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::ColorGray::ColorGray()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::ColorGray::~ColorGray()", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
      ImageFeature::makeMagickImage(unsigned int const&, unsigned int const&, unsigned int const&) const in imagefeature.o
  "Magick::Image::colorSpace() const", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "Magick::Image::constImage() const", referenced from:
      Magick::Image::columns() const in imagefeature.o
      Magick::Image::rows() const in imagefeature.o
  "Magick::Image::pixelColor(long, long) const", referenced from:
      ImageFeature::load(std::string const&, bool) in imagefeature.o
  "_gzclose", referenced from:
      gzstreambuf::close() in gzstream.o
  "_gzopen", referenced from:
      gzstreambuf::open(char const*, int) in gzstream.o
  "_gzread", referenced from:
      gzstreambuf::underflow() in gzstream.o
  "_gzwrite", referenced from:
      gzstreambuf::flush_buffer() in gzstream.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [BBB] Error 1

10:32:03 Build Finished (took 4s.745ms)

-------------------------------------------------------------------------------------

Thomas Deselaers

unread,
Sep 26, 2013, 5:05:54 AM9/26/13
to fire-cbir
Hi Tuan,

I have successfully build fire on a mac in the past using the tools that came with Xcode and fink. 
I have no idea how Eclipse works. 

Best,
Thomas


--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fire-cbir+...@googlegroups.com.
To post to this group, send email to fire...@googlegroups.com.
Visit this group at http://groups.google.com/group/fire-cbir.
For more options, visit https://groups.google.com/groups/opt_out.



--
http://thomas.deselaers.de

Tuan Dang

unread,
Sep 27, 2013, 2:43:58 AM9/27/13
to fire...@googlegroups.com
Thanks for your reply Dr.Deselaers,
I tried XCode on Mac and it got the same problem. I think this is system/compatibility problem.

Anyways, I followed the direction to install Fire on Ubuntu (Virtual Box). I have managed to get Fire running. The only problem is that the retrieval results are incorrect. The same set of 10 images are returned does not matter which random image that I have selected (see attachment). Are these incorrect images are the default images of retrieval? I am confused.

Please advise me how to fix it.
Thanks

Tuan Dang
------------------------------------------------------------------------------------
Screen Shot 2013-09-27 at 12.38.30 AM.png

Thomas Deselaers

unread,
Sep 27, 2013, 3:09:40 AM9/27/13
to fire-cbir
You either don't have featuers extracted or configured or you don't have distances configured. 


--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fire-cbir+...@googlegroups.com.
To post to this group, send email to fire...@googlegroups.com.
Visit this group at http://groups.google.com/group/fire-cbir.
For more options, visit https://groups.google.com/groups/opt_out.

Tuan Dang

unread,
Sep 27, 2013, 3:25:56 AM9/27/13
to fire...@googlegroups.com
I think I have features extracted. Here is an example of color histogram (attached). How to check if the distances configured correctly?
Which function do you call from fire.py to C++ (probably retriever.cpp) for querying relevant images?

BTW, can you send me the scripts/codes that you used for testing results in the FIRE paper (including timing test Table 1, Error rates Table 3, and Mean average precision Table 4). I want to run on new data sets.   

I highly appreciate it!

Tuan Dang
------------------------------------------------------------------------------------------------
Screen Shot 2013-09-27 at 2.17.30 AM.png

Thomas Deselaers

unread,
Sep 27, 2013, 3:54:28 AM9/27/13
to fire-cbir
Hi, 

I don't think my scripts would be meaningful to you in any way since they were specific to the cluster on which I have been running it. (Also, I don't think I still have them). 
Maybe you can run fire with -D to set default distances on all configured features.

fire.py and the c++ code communicate through a network socket, there's not a simple function that is called. 
You can also use telnet instead of fire.py.

cheers,
thomas
Message has been deleted

Tuan Dang

unread,
Oct 3, 2013, 9:34:43 PM10/3/13
to fire...@googlegroups.com
Thanks for your instructions!
I got the color histogram working using option -D.
What is the default distance for color histogram? Is that also the default distance for other feature extraction techniques?

I am trying local feature extraction but it does not work. I have tried different options (--minmaxnorm --hostonorm ...) but always get 0 local feature.
Please also let me know how to ask local feature extraction to run on different methods (LF histograms, LF signatures, LF global search).

Thanks again!

Tuan Dang

Thomas Deselaers

unread,
Oct 4, 2013, 4:42:25 AM10/4/13
to fire-cbir
On Fri, Oct 4, 2013 at 3:34 AM, Tuan Dang <nhon...@gmail.com> wrote:
Thanks for your instructions!
I got the color histogram working using option -D.
What is the default distance for color histogram? Is that also the default distance for other feature extraction techniques?

You can find that out in distancemaker.cc
 

I am trying local feature extraction but it does not work. I have tried different options (--minmaxnorm --hostonorm ...) but always get 0 local feature.
Please also let me know how to ask local feature extraction to run on different methods (LF histograms, LF signatures, LF global search).

You probably need to change the interest point detector options.

t.

Tuan Dang

unread,
Oct 5, 2013, 1:48:03 AM10/5/13
to fire...@googlegroups.com
I was able to run localfeature by adding the option –-alignedgrid. So which method am I running (LF histograms, LF signatures, or LF global search)? How can I run other LF methods? 
Thanks,

Tuan Dang

Thomas Deselaers

unread,
Oct 5, 2013, 4:22:07 AM10/5/13
to fire-cbir


--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fire-cbir+...@googlegroups.com.
To post to this group, send email to fire...@googlegroups.com.
Visit this group at http://groups.google.com/group/fire-cbir.
For more options, visit https://groups.google.com/groups/opt_out.

Tuan Dang

unread,
Oct 5, 2013, 5:47:49 PM10/5/13
to fire...@googlegroups.com
Hi Thomas,
I run LF SIFT one 1 image:

~/fire-cbir/bin/extractsift – image ~/fire-image/ucid00001.jpg

ucid00001.jpg  sizes 1024x768.  It took more than 10 minutes to compute.
Is this correct or just because I did not run it with the right options?
Most of the computing time is in Extract orientations and descriptors.
Thanks,

Tuan


Thomas Deselaers

unread,
Oct 6, 2013, 4:19:30 AM10/6/13
to fire-cbir
It's because of the options.


--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fire-cbir+...@googlegroups.com.
To post to this group, send email to fire...@googlegroups.com.
Visit this group at http://groups.google.com/group/fire-cbir.
For more options, visit https://groups.google.com/groups/opt_out.

Tuan Dang

unread,
Oct 6, 2013, 10:27:35 PM10/6/13
to fire...@googlegroups.com
Please let me know what are the right options to run LF SIFT.

Tuan

Thomas Deselaers

unread,
Oct 7, 2013, 3:44:57 AM10/7/13
to fire-cbir
Hi Tuan, 

I don't know these by heart. 

Independently of this specific problem: 
You should know, that you will need to read the papers/documentation/help/code in order to be able to use FIRE, which was meant as a tool for research.

Best,
thomas


On Mon, Oct 7, 2013 at 4:27 AM, Tuan Dang <nhon...@gmail.com> wrote:
Please let me know what are the right options to run LF SIFT.

Tuan

--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fire-cbir+...@googlegroups.com.
To post to this group, send email to fire...@googlegroups.com.
Visit this group at http://groups.google.com/group/fire-cbir.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages