Opened 15 years ago

Closed 10 years ago

#22857 closed defect (fixed)

lprof install error

Reported by: adamlogan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: haspatch Cc: michaelld (Michael Dickens)
Port: lprof

Description

I got this error installing lprof on Snowleopard. I guess no one is maintaining it? lcms seems to have installed fine, so i can probably just try using lcms via cli. Even still, it'd be nice to have a working lprof port.

adamlogan:~ adamlogan$ port info lcms
lcms @1.19 (graphics)
Variants:             universal

Description:          LCMS is the Little Color Management System, a portable
                      Color Matching Method (CMM) library which implements fast
                      transforms between ICC profiles. Color management refers
                      to techniques that ensure consistent color as images are
                      transferred from scanners or cameras to monitors and
                      printers.
Homepage:             http://www.littlecms.com/

Library Dependencies: jpeg, tiff, zlib
Platforms:            darwin
License:              MIT
Maintainers:          nomaintainer@macports.org
adamlogan:~ adamlogan$ port info lprof
lprof @20090113, Revision 2 (graphics)
Variants:             universal

Description:          LProf is an open source color profiler that creates ICC
                      compliant profiles for devices such as cameras, scanners
                      and monitors. Origanally authored by Marti Maria the
                      creator of LCMS. Marti has graciously consented to the
                      creation of this project.
Homepage:             http://lprof.sourceforge.net

Fetch Dependencies:   cvs
Build Dependencies:   cmake
Library Dependencies: qt4-mac, libusb-compat
Platforms:            darwin
License:              GPL
Maintainers:          nomaintainer@macports.org
adamlogan:~ adamlogan$ sudo port install lprof
Password:
--->  Computing dependencies for lprof
--->  Fetching libidn
--->  Attempting to fetch libidn-1.15.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/libidn
--->  Verifying checksum(s) for libidn
--->  Extracting libidn
--->  Configuring libidn
--->  Building libidn
--->  Staging libidn into destroot
^C
adamlogan:~ adamlogan$ sudo port install lcms
--->  Computing dependencies for lcms
--->  Cleaning lcms
adamlogan:~ adamlogan$ whoami
adamlogan
adamlogan:~ adamlogan$ sudo port install lprof
--->  Computing dependencies for lprof
--->  Staging libidn into destroot
--->  Installing libidn @1.15_0
--->  Activating libidn @1.15_0
--->  Cleaning libidn
--->  Fetching cmake
--->  Attempting to fetch cmake-2.8.0.tar.gz from http://www.cmake.org/files/v2.8/
--->  Verifying checksum(s) for cmake
--->  Extracting cmake
--->  Applying patches to cmake
--->  Configuring cmake
--->  Building cmake
--->  Staging cmake into destroot
--->  Installing cmake @2.8.0_0
--->  Activating cmake @2.8.0_0
--->  Cleaning cmake
--->  Fetching libusb
--->  Attempting to fetch libusb-1.0.6.tar.bz2 from http://internap.dl.sourceforge.net/libusb
--->  Verifying checksum(s) for libusb
--->  Extracting libusb
--->  Applying patches to libusb
--->  Configuring libusb
--->  Building libusb
--->  Staging libusb into destroot
--->  Installing libusb @1.0.6_0
--->  Activating libusb @1.0.6_0
--->  Cleaning libusb
--->  Fetching libusb-compat
--->  Attempting to fetch libusb-compat-0.1.3.tar.bz2 from http://internap.dl.sourceforge.net/libusb
--->  Verifying checksum(s) for libusb-compat
--->  Extracting libusb-compat
--->  Configuring libusb-compat
--->  Building libusb-compat
--->  Staging libusb-compat into destroot
--->  Installing libusb-compat @0.1.3_0
--->  Activating libusb-compat @0.1.3_0
--->  Cleaning libusb-compat
--->  Fetching lprof
--->  Verifying checksum(s) for lprof
--->  Extracting lprof
--->  Configuring lprof
--->  Building lprof
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof" && /usr/bin/make -j2 all " returned error 2
Command output:                  from /opt/local/libexec/qt4-mac/include/Qt3Support/q3frame.h:45,
                 from /opt/local/libexec/qt4-mac/include/Qt3Support/q3hbox.h:45,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/libqtlcmswidgets/qtlcmswidgets.h:38,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/qtdrawcurve.cpp:31:
/opt/local/libexec/qt4-mac/include/QtCore/qglobal.h:315:6: warning: #warning "Support for this version of Mac OS X is still preliminary"
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/CMakeFiles 62
[ 79%] Building CXX object src/CMakeFiles/lprof.dir/gammaqt/setgamma.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src && /usr/bin/g++-4.2   -DQT_DLL -DQT3_SUPPORT -DQT_3SUPPORT_LIB -DQT_ASSISTANT_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNON_WINDOWS -DUSE_FLOAT -DLPROF_ERROR_TRAP -DUNIX -DQT_NO_DEBUG -mmacosx-version-min=10.6 -O2 -arch x86_64  -O3 -DNDEBUG -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/gammaqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/IDqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/lprofqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/moncalcontrolqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/moncalqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/monqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/parmsqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/reference_inst_qt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/libqtlcmswidgets -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/liblprof -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/videoLUTutils -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/lcms/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui -I/opt/local/libexec/qt4-mac/include/QtSvg -I/opt/local/libexec/qt4-mac/include/Qt3Support -I/opt/local/libexec/qt4-mac/include/QtAssistant -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/h -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/cgats -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/gamut -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/icc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/numlib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/plot -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/rspl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/spectro -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/argyll/xicc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/3rdparty/vigra/include -I/opt/local/include   -F/opt/local/libexec/qt4-mac/lib   -DVIGRA_STATIC_LIB -o CMakeFiles/lprof.dir/gammaqt/setgamma.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/gammaqt/setgamma.cpp
In file included from /opt/local/libexec/qt4-mac/include/QtCore/qnamespace.h:45,
                 from /opt/local/libexec/qt4-mac/include/QtCore/qobjectdefs.h:45,
                 from /opt/local/libexec/qt4-mac/include/QtCore/qobject.h:47,
                 from /opt/local/libexec/qt4-mac/include/QtGui/qbuttongroup.h:45,
                 from /opt/local/libexec/qt4-mac/include/Qt3Support/q3buttongroup.h:45,
                 from /opt/local/libexec/qt4-mac/include/Qt3Support/Q3ButtonGroup:1,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/ui_monitorvaluesbase.h:13,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/monqt/monitorvalues.h:35,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/gammaqt/setgamma.cpp:31:
/opt/local/libexec/qt4-mac/include/QtCore/qglobal.h:315:6: warning: #warning "Support for this version of Mac OS X is still preliminary"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp: In member function 'virtual void ProfileChecker::slotSelectOutputFile()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp:818: error: 'Q3FileDialog' has not been declared
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp: In member function 'virtual void ProfileChecker::slotSelectScanoutIT8()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp:844: error: 'Q3FileDialog' has not been declared
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp: In member function 'void ProfileChecker::slotHelpButton()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/checkerqt/profilechecker.cpp:884: warning: format not a string literal and no format arguments
make[2]: *** [src/CMakeFiles/lprof.dir/checkerqt/profilechecker.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/gammaqt/setgamma.cpp: In member function 'void SetGamma::slotHelpButton()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_lprof/work/lprof/src/gammaqt/setgamma.cpp:365: warning: format not a string literal and no format arguments
make[1]: *** [src/CMakeFiles/lprof.dir/all] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.
adamlogan:~ adamlogan$ 

Attachments (2)

lprof-sl-patch.txt (5.9 KB) - added by lassi.tuura@… 15 years ago.
LProf patch to build macports lprof version on 10.6
lprof-current-patch.txt (6.5 KB) - added by lassi.tuura@… 15 years ago.
LProf patch for update to 10.6 plus update to current cvs version

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by rishi.j.sanyal@…

I have the same exact problem on OS X 10.6.2

When I try to compile the latest LPROF from CVS, I also get similar errors. What seems to be common is the following error:

'Q3FileDialog' has not been declared

Any idea what this is or how to fix it? I admit I haven't re-installed all ports from scratch since upgrading my OS from 10.5 to 10.6. I'll try & do that this weekend to see if it helps.

Rishi

comment:2 Changed 15 years ago by rishi.j.sanyal@…

Ok I reinstalled all ports by first uninstalling & then cleaning & reinstalling them, as described under the 'Migration to a new OS' page.

I still get the same failure. Again, about:

'Q3FileDialog' has not been declared

Someone must know how to fix this. Would somehow disabling Qt3 support fix this issue? If so, how to do it?

Thanks, Rishi

comment:3 Changed 15 years ago by bernard@…

The Q3FileDialog error has been fixed with qt4-mac version 4.6.0. See this ticket http://trac.macports.org/ticket/22078 for details.

The LProf port was published in Jan 2009 and it needs to be updated. In the mean time, see the Lprof project help forum on how to compile LProf with Snow Leopard. https://sourceforge.net/projects/lprof/forums/forum/488888/topic/3390686/index/page/1

Changed 15 years ago by lassi.tuura@…

Attachment: lprof-sl-patch.txt added

LProf patch to build macports lprof version on 10.6

Changed 15 years ago by lassi.tuura@…

Attachment: lprof-current-patch.txt added

LProf patch for update to 10.6 plus update to current cvs version

comment:4 Changed 15 years ago by lassi.tuura@…

I've attached two patches to lprof that should help make it work on Snow Leopard.

The first patch, lprof-sl-patch.txt, updates lprof as currently defined in macports so it builds on 10.6 systems, fixing the argyll unixio problem as described on lprof sourceforge page. The second patch, lprof-current-patch.txt, does the same but simultaneously updates to the current version of lprof in cvs as of today. I've not tested either except simply launching the program to see that it runs, and in particular I haven't checked any profiles built with these versions. I did use the 20090113 version a lot, so presumably that should be a safe upgrade.

Both patches include a patch to enable column sorting in profile info dialog. I've submitted it to sourceforge tracker, but it doesn't seem to find its way to the code, and I used it a lot in previous round of profiling (to find largest dE data). If you don't want to include it in macports version, feel free to drop the corresponding patch.

Note that lprof hasn't made a release tar ball in ages and I have no idea what's considered the "current" version of lprof, so I just pick dated versions from cvs.

comment:5 Changed 15 years ago by mf2k (Frank Schima)

Cc: adamlogan@… removed
Keywords: haspatch added

comment:6 Changed 14 years ago by nerdling (Jeremy Lavergne)

Version: 1.8.11.9.99

I ran into an issue with lprof building it's own vigra that then conflicted with libpng. By installing vigra I avoided this issue: I'll be adding it to the depends_lib.

However, even with the patch (to build on snow leopard, not latest version) I ran into the agryll/nsbeep issue:

Undefined symbols:
  "_CGGetDisplayTransferByTable", referenced from:
      gamma_ramp::getGammaRamp()       in LUTutil-OSX.o
  "_CGDisplayGammaTableCapacity", referenced from:
      gamma_ramp::getGammaRampSize()       in LUTutil-OSX.o
      gamma_ramp::gamma_ramp(int, int, int)in LUTutil-OSX.o
  "_CGGetDisplaysWithPoint", referenced from:
      getDisplay()     in LUTutil-OSX.o
      gamma_ramp::gamma_ramp(int, int, int)in LUTutil-OSX.o
  "_CGSetDisplayTransferByTable", referenced from:
      gamma_ramp::setGammaRamp()       in LUTutil-OSX.o
  "_NSBeep", referenced from:
      _delayed_beep in libargyll.a(unixio.o)
      _msec_beep in libargyll.a(unixio.o)

I'll try the newer version and see if that happens to do anything better.

comment:7 Changed 14 years ago by nerdling (Jeremy Lavergne)

Same error using 20100119.

comment:8 Changed 14 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

lprof @20090113_6 installs fine for me now. Please retry.

comment:10 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

No response; closing as per comment:9.

Note: See TracTickets for help on using tickets.