Opened 9 years ago

Closed 4 years ago

#48218 closed defect (fixed)

opencv @3.0.0_0: debug variant not producing debug symbols

Reported by: jeff@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: opencv

Description

Running port install opencv +debug doesn't produce any libraries that contain debugging symbols. Not sure what's going on.

Change History (7)

comment:1 Changed 9 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to stromnov@…
Port: opencv added
Summary: opencv debug variant not producing debug symbolsopencv @3.0.0_0: debug variant not producing debug symbols

Thanks for the report. In future tickets, please Cc any port maintainers (port info --maintainers opencv).

The +debug variant comes from the cmake-1.0 portgroup. I don’t know if the opencv port respects it. (Frankly, I wish cmake-1.0 didn’t force +debug onto every port that uses it.)

comment:2 Changed 9 years ago by jeff@…

Sorry about that lack of notice.

So, I tested your hypothesis! OpenCV does actually support Debug builds and I was able to build a debug version with debug symbols from a checkout of 3.0.0 using cmake -DCMAKE_BUILD_TYPE=Debug

I'll see if I can't get a log from the Macports build.

comment:3 Changed 9 years ago by jeff@…

It looks like I just PEBKAC'ed something. Sorry. Feel free to close this as invalid.

comment:4 Changed 9 years ago by jeff@…

Oooor... actually I was correct. I just PEBKAC'ed my use of symbols.

Comparing the symbols in my hand-rolled Debug build to the one in macports definitely shows its definitely missing information about files, etc.

comment:5 Changed 9 years ago by jeff@…

Yeah, okay, no amount of keeplogs yes, port install -v or -d is getting me the info I need. Googling around for how to turn on more logging hasn't turned up anything either. Open to ideas! I'm sure there's a way to get what commands are actually being run.

comment:6 Changed 4 years ago by mascguy (Christopher Nielsen)

A formal +debug variant will be implemented via the following pull request:

https://github.com/macports/macports-ports/pull/9555

Can this be closed?

comment:7 Changed 4 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: newclosed

In ca9ffa681f453399942385f9ef34cf1c124b6ea4/macports-ports (master):

opencv/opencv4: eliminate conflicts, improve consistency, add variants; update gerbil and py-pytorch for opencv4 changes

opencv: eliminate conflict with opencv4; add variants debug, nonfree, tests
opencv4: eliminate conflict with opencv; switch to shared libs; rename variant opencv_contrib to contrib, to match opencv; add variants debug, java, python35..39, qt4, qt5, tbb, tests, vtk
gerbil: update for opencv4 library move
py-pytorch: update for opencv4 library move

Fixes: #61912
Fixes: #61801
Fixes: #60118
Fixes: #58845
Fixes: #57640
Fixes: #51734
Fixes: #48218
Fixes: #32528

Note: See TracTickets for help on using tickets.