tsdconseil / opencv-demonstrator

OpenCV demonstrator (GUI)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
GNU Lesser General Public License v3.0
141 stars 57 forks source link

Can't build under Debian 8 #30

Closed efournival closed 8 years ago

efournival commented 8 years ago

Hello,

Here is what I got after launching make linux on my Debian Jessie:

...
Building project library: build/debug/lib.a...
ar: création de build/debug/lib.a
Building reduced library: build/debug/lib-base.a...
ar: création de build/debug/lib-base.a
Compiling c++ file src/utilities/model-editor.cc...
Building executable build/debug/model-editor.exe...
Compiling c++ file src/utilities/rcgene.cc...
src/utilities/rcgene.cc: In function ‘int main(int, char**)’:
src/utilities/rcgene.cc:23:12: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   maj = mx.getAttribute("maj").toInt();
            ^
src/utilities/rcgene.cc:24:12: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   min = mx.getAttribute("min").toInt();
            ^
src/utilities/rcgene.cc:25:14: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   build = mx.getAttribute("build").toInt();
              ^
src/utilities/rcgene.cc:26:16: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   company = mx.getAttribute("company").toString();
                ^
src/utilities/rcgene.cc:27:18: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   copyright = mx.getAttribute("copyright").toString();
                  ^
src/utilities/rcgene.cc:28:18: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   file_desc = mx.getAttribute("file_desc").toString();
                  ^
src/utilities/rcgene.cc:29:22: error: ‘class utils::model::MXml’ has no member named ‘getAttribute’
   original_file = mx.getAttribute("original_file").toString();
                      ^
../libcutil/data/std-makefile-defs:201: recipe for target 'build/debug/rcgene.o' failed
make[1]: *** [build/debug/rcgene.o] Error 1
rm build/debug/model-editor.o
make[1]: Leaving directory '/---/opencv-demonstrator/libcutil'
Makefile:33: recipe for target 'linux' failed
make: *** [linux] Error 2

I've done everything as specified here: https://github.com/tsdconseil/opencv-demonstrator/blob/master/doc/build-instructions.md

Excepted that I had to manually install flex (otherwise I was getting a "ld can't find -lfl" error) and Aptitude did not find any candidates for libjpeg8-dev and libtiff4-dev.

Thanks for your help

applemuncy commented 8 years ago

Some coding style changes have broken several files. setAttribute changes to set_attribute. hasAttribute changes to has_attribute. toString changes to_string.

I'm submitting a push.

juliena82 commented 8 years ago

Sorry I have done an incomplete refactoring of the code. The last commit has solved that...

juliena82 commented 8 years ago

@applemuncy Thanks for your push. I merged with the main branch (apparently we did the same corrections).

efournival commented 8 years ago

I can confirm it is working now. Thanks for your work, opencv-demonstrator is amazing :)