[MacPorts] #41241: vxl fails to build on OS X 10.9 Maverick
#41241: vxl fails to build on OS X 10.9 Maverick --------------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: vxl, maverick, os x 10.9 | Port: vxl --------------------------------------+-------------------------------- {{{ :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f core/vbl/tests/CMakeFiles/vbl_test_all.dir/build.make core/vbl/tests/CMakeFiles/vbl_test_all.dir/depend :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core/vul/vul_psfile.cxx:2: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core/vul/vul_psfile.h:40:28: error: cannot cast from type 'std::ofstream' (aka 'basic_ofstream<char>') to pointer type 'void *' :info:build operator bool() { return (void*)output_filestream!=(void*)0; } :info:build ^~~~~~~~~~~~~~~~~~~~~~~~ }}} When I change this line to {{{ // or should this be !output_filestream.bad() && !output_filestream.fail() ? return output_filestream.good() }}} it continues past this point but then I get the following error: {{{ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core/vbl/io/tests && /usr/bin/clang++ -DVXL_LEGACY_ERROR_REPORTING -DVXL_WARN_DEPRECATED -DVXL_WARN_DEPRECATED_ONCE -pipe -Os -Werror=gnu -Wno-error=vla -I/opt/local/include -arch x86_64 -DNDEBUG -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/vcl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core -o CMakeFiles/vbl_io_test_all.dir/test_smart_ptr_io.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core/vbl/io/tests/test_smart_ptr_io.cxx :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_vxl/vxl/work/vxl-1.17.0/core/vil/file_formats/vil_openjpeg.cxx:107:3: error: unknown type name 'opj_codec_t'; did you mean 'opj_poc_t'? :info:build opj_codec_t *codec_; :info:build ^~~~~~~~~~~ }}} -- Ticket URL: <https://trac.macports.org/ticket/41241> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: vxl, maverick, os x 10.9 => mavericks Comment: Could you please [http://sourceforge.net/projects/vxl/support report this problem to the developers of vxl] so that they can fix it? -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by andreas.schuh.84@…): I sent an email to the vxl-users list as they don't seem to use an issue tracker like Trac. -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by andreas.schuh.84@…): For documentation, I managed to solve the openjpeg2 related 'unknown type name 'opj_codec_t' error as follows: - Set '''VXL_FORCE_V3P_OPENJPEG2''' to ON - Add the following to '''core/vil/CMakeLists.txt''' around line 133 after all dependencies were looked for. Required because the more recent (incompatible) OpenJPEG2 header files were in the same MacPorts installation directory as other dependencies. {{{ IF(NOT VXL_USING_NATIVE_OPENJPEG2) INCLUDE_DIRECTORIES(BEFORE ${OPENJPEG2_INCLUDE_DIR}) ENDIF() }}} -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by christian.frisson@…): Hi, I could manage to make it work, attached are the modified Portfile and 3 diffs. It uses a newer git revision from https://github.com/vxl/vxl rather than the release. As mentioned in ticket #42872, using {{{PortGroup cmake 1.0}}} in the Porfile has CMake automatically fed with too many (too early) includes of {{{$prefix/include}}}, what prevents the compilation of vxl against an internal openjpeg 2.x. This is an issue if for instance ffmpeg is installed, which currently depends on openjpeg15 which gets precedence in the included directories order, even if cmake command {{{include_directories(BEFORE ...)}}} is used as proposed by Andreas above. Adding {{{ configure.cflags-delete ${configure.cppflags} configure.cxxflags-delete ${configure.cppflags} }}} didn't work for me, so I uglily pasted the contents of {{{${prefix}/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/cmake-1.0.tcl}}}, commenting out the configure.cppflags appends. I'm not sure the cmake files are installed in the proper directory which is currently {{{${prefix}/share/vxl/cmake}}}. For instance OpenCV doesn't have the trailing cmake subdir. Best regards, Christian. -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by macsforever2000@…): [https://guide.macports.org/#development.patches Per the guidelines], please instead attach a unified diff of the Portfile so we can easily see what changes you are proposing. -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by christian.frisson@…): Hi, I've just attached the unified diff of the Portfile. Best regards, Christian -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by rfabbri@…): Replying to [comment:3 andreas.schuh.84@…]:
{{{ IF(NOT VXL_USING_NATIVE_OPENJPEG2) INCLUDE_DIRECTORIES(BEFORE ${OPENJPEG2_INCLUDE_DIR}) ENDIF() }}}
I have VXL privileges to commit that change. And it solves my problem. Do you think I should just go ahead? -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Comment (by mojca@…): The issue is the cmake PortGroup has been fixed. How does that affect vxl? -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#41241: vxl fails to build on OS X 10.9 Mavericks ---------------------------------+-------------------------------- Reporter: andreas.schuh.84@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: vxl | ---------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: garry@… (added) Comment: Has duplicate #44539. -- Ticket URL: <https://trac.macports.org/ticket/41241#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts