josephholsten / libdecodeqr

A C/C++ library for decoding QR code 2D barcodes
http://trac.koka-in.org/libdecodeqr
GNU Lesser General Public License v2.1
168 stars 61 forks source link

Compile error libdecodeqr 0.9.4 ubuntu 12.04 #2

Open nevixa opened 12 years ago

nevixa commented 12 years ago

Hello,

I was using this library on Ubuntu 10.10 with OpenCV 2.2 and it worked really good. Much better than the 0.9.3 version! Now I am updating my system and I still want to use libdecodeqr 0.9.4, but I get a compile error:

galois.cpp: In member function ‘Galois::Polynomial* Galois::Polynomial::lu(Galois::Polynomial)’: galois.cpp:400:48: error: taking address of temporary [-fpermissive] galois.cpp:403:65: error: taking address of temporary [-fpermissive] galois.cpp: In member function ‘Galois::Polynomial Galois::Polynomial::solve(Galois::Polynomial)’: galois.cpp:458:69: error: taking address of temporary [-fpermissive] galois.cpp:464:56: error: taking address of temporary [-fpermissive] galois.cpp:466:54: error: taking address of temporary [-fpermissive] galois.cpp: In member function ‘int Galois::BCH::decode(int)’: galois.cpp:565:56: error: taking address of temporary [-fpermissive] galois.cpp:567:59: error: taking address of temporary [-fpermissive] galois.cpp: In member function ‘Galois::Nomial_ Galois::BCH::_error_syndrome(int)’: galois.cpp:592:44: error: taking address of temporary [-fpermissive] make[1]: * [galois.lo] Error 1 make[1]: Leaving directory `/home/xxx/Downloads/libdecodeqr-0.9.4/libdecodeqr' make: * [all-recursive] Error 1

I am on Ubuntu 12.04 and OpenCV 2.4. What can I do to fix this?

Thank you

justelex commented 11 years ago

Same here.. ;-)

josephholsten commented 9 years ago

Sorry folks, I have no idea. I only put this up here b/c I fixed the build system. If you have a patch, I'll gladly merge it. But I have almost 0 experience with C++.

RealBrubru commented 8 years ago

Same here.. :-( How did you guys solved!? Thanks