[MacPorts] #32486: objectmarker fails to build
#32486: objectmarker fails to build ------------------------------+--------------------------------------------- Reporter: mail@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: objectmarker ------------------------------+--------------------------------------------- {{{ [11:49:26] [uwe@ganymed ~]$ sudo port -v install objectmarker Password: ---> Computing dependencies for objectmarker. ---> Building objectmarker In file included from ObjectMarker.cpp:1: In file included from /opt/local/include/opencv/cv.h:69: In file included from /opt/local/include/opencv2/flann/flann.hpp:50: In file included from /opt/local/include/opencv2/flann/flann_base.hpp:44: In file included from /opt/local/include/opencv2/flann/all_indices.h:42: /opt/local/include/opencv2/flann/lsh_index.h:89:81: error: no matching constructor for initialization of 'cvflann::LshIndexParams' LshIndex(const Matrix<ElementType>& input_data, const IndexParams& params = LshIndexParams(), ^ /opt/local/include/opencv2/flann/lsh_index.h:59:5: note: candidate constructor not viable: requires 3 arguments, but 0 were provided LshIndexParams(unsigned int table_number, unsigned int key_size, unsigned int multi_probe_level) ^ /opt/local/include/opencv2/flann/lsh_index.h:57:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided struct LshIndexParams : public IndexParams ^ ObjectMarker.cpp:26:19: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings] char* window_name="<SPACE>add <ENTER>save and load next <ESC>exit"; ^ In file included from ObjectMarker.cpp:1: In file included from /opt/local/include/opencv/cv.h:69: In file included from /opt/local/include/opencv2/flann/flann.hpp:50: In file included from /opt/local/include/opencv2/flann/flann_base.hpp:41: In file included from /opt/local/include/opencv2/flann/params.h:33: /opt/local/include/opencv2/flann/any.h:88:67: error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup virtual void print(std::ostream& out, void* const* src) { out << *reinterpret_cast<T const*>(*src); } ^ /opt/local/include/opencv2/flann/any.h:136:44: note: in instantiation of member function 'cdiggins::anyimpl::big_any_policy<cdiggins::anyimpl::empty_any>::print' requested here static typename choose_policy<T>::type policy; ^ /opt/local/include/opencv2/flann/any.h:159:18: note: in instantiation of function template specialization 'cdiggins::anyimpl::get_policy<cdiggins::anyimpl::empty_any>' requested here : policy(anyimpl::get_policy<anyimpl::empty_any>()), object(NULL) ^ /opt/local/include/opencv2/flann/any.h:276:22: note: 'operator<<' should be declared prior to the call site or in namespace 'cdiggins::anyimpl' inline std::ostream& operator <<(std::ostream& out, const any& any_val) ^ 1 warning and 2 errors generated. shell command "/Developer/usr/bin/clang++ -arch x86_64 ObjectMarker.cpp `pkg-config --cflags opencv` -o objectmarker `pkg-config --libs opencv`" returned error 1 Error: Target org.macports.build returned: shell command failed (see log for details) Warning: the following items did not execute (for objectmarker): org.macports.activate org.macports.build org.macports.destroot org.macports.install Log for objectmarker is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_objectmarker/objectmarker/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} -- Ticket URL: <https://trac.macports.org/ticket/32486> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32486: objectmarker fails to build ------------------------------+--------------------------------------------- Reporter: mail@… | Owner: phw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: objectmarker ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => phw@… Comment: Please clean and try again, then attach the complete main.log. Since I see you are using clang, you should also try [wiki:ProblemHotlist#compiler using a different compiler], and let us know whether that works. -- Ticket URL: <https://trac.macports.org/ticket/32486#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32486: objectmarker fails to build ------------------------------+--------------------------------------------- Reporter: mail@… | Owner: phw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: objectmarker ------------------------------+--------------------------------------------- Comment(by mail@…): Done the following: 1. Used the App Store Xcode instead of the Beta (iOS 5.1) Xcode -> same problem 1. Used a different compiler (sudo port install objectmarker configure.compiler=llvm-gcc-4.2) -> works shouldn't the llvm-gcc-4.2 the standard compiler for this port? -- Ticket URL: <https://trac.macports.org/ticket/32486#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32486: objectmarker fails to build ----------------------------------+----------------------------------------- Reporter: mail@… | Owner: phw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: opencv objectmarker | ----------------------------------+----------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed * port: objectmarker => opencv objectmarker Comment: Seems to build OK against current opencv. The error was actually in the opencv headers. -- Ticket URL: <https://trac.macports.org/ticket/32486#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts