Re: [Lprof-devel] CVS changes affect Mac version
Brought to you by:
hvengel
From: Mark <de...@ci...> - 2007-10-10 08:31:48
|
OK about the latest Lprof: I cleaned all Lprof folders/settings of my =20= knowledge: ~/.lprof ~/Library/Application Support/lprof lprof.plist files under ~/Library/ Preferences Now running it: 0) the info.plist file is now again under lprof.app instead of =20 lprof.app/Contents (thus it is not used and well, the lprof icon does =20= not apper correctly) 1) complains about QAssistant not found (old news - more on that below) 2) says no reference file is installed - which is correct 3) when I try to install a ref. file, the dialog box for selecting =20 the file appears but it is not possible to select any file (they all =20 appear grayed and cannot be clicked). Here's the console log until this point. templateFileCopied() copyNumTempFile =3D 7 templateFileCopied() copyNumTempFile =3D 6 templateFileCopied() copyNumTempFile =3D 6 templateFileCopied() copyNumTempFile =3D 5 templateFileCopied() copyNumTempFile =3D 5 templateFileCopied() copyNumTempFile =3D 4 templateFileCopied() copyNumTempFile =3D 4 templateFileCopied() copyNumTempFile =3D 3 templateFileCopied() copyNumTempFile =3D 3 templateFileCopied() copyNumTempFile =3D 2 templateFileCopied() copyNumTempFile =3D 2 templateFileCopied() copyNumTempFile =3D 1 templateFileCopied() copyNumTempFile =3D 1 templateFileCopied() copyNumTempFile =3D 0 lprofMain: init_env() Apple section lprofBaseDir =3D /Library/Application Support/lprof mon_profile =3D /Library/ColorSync/Profiles in_profile =3D /Library/ColorSync/Profiles outprofile =3D /Users/maolimu/Library/ColorSync/Profiles ConfigFile =3D /Users/maolimu/Library/Application Support/lprof/=20 config/lprof.cfg measurement_dir =3D /Users/maolimu/Library/Application Support/=20 lprof/measurements measfile =3D /Users/maolimu/Library/Application Support/lprof/temp/=20= meaurement.cgt templates =3D /Users/maolimu/Library/Application Support/lprof/=20 templates WorkTempFileName =3D /Users/maolimu/Library/Application Support/=20 lprof/temp/$$q60$$.$$$ ref_dir =3D /Users/maolimu/Library/Application Support/lprof/=20 target_refs temp_dir =3D /Users/maolimu/Library/Application Support/lprof/temp lprofMain: init_env() done Something wrong with call to coms -> get_paths(coms) PATH =3D /usr/bin:/bin:/usr/sbin:/sbin execpath first time (QTDIR) =3D /bin execpath + / + assist =3D /bin/assistant.app/Contents/MacOS/assistant execpath parsed from path =3D /usr/bin execpath + / + assist =3D = /usr/bin/assistant.app/Contents/MacOS/assistant execpath parsed from path =3D /bin execpath + / + assist =3D /bin/assistant.app/Contents/MacOS/assistant execpath parsed from path =3D /usr/sbin execpath + / + assist =3D = /usr/sbin/assistant.app/Contents/MacOS/assistant execpath parsed from path =3D /sbin execpath + / + assist =3D /sbin/assistant.app/Contents/MacOS/assistant InstallRefFileBase::slotTemplateChanged(): Not implemented yet InstallRefFileBase::slotTemplateChanged(): Not implemented yet InstallRefFileBase::slotTemplateChanged(): Not implemented yet To get past this point I restored the trashed preferences =20 (lprof.plist) and edited them a bit. Now I have a reference file =20 installed. 4) under Camera/Scanner profile all seems ok (as on the last versions) 5) under Monitor Profiler, Build a coarse profile... when I enter the =20= values and click Create Profile I get the following error message: =EF=BF=BC The first part of the message is clear. The problem is the path. I =20 looked into the ...lprof/temp folder and I see there's a =20 meaurement.cgt file in there (note, the file IS misspelled, it is not =20= a typo from me). Well, besides being misspelled it seem like the file =20= should actually be named moncalibration.cgt. The second part of the =20 message is a mystery to me... Hitting OK crashes Lprof: lprof(3156,0xa000d000) malloc: *** Deallocation of a pointer not =20 malloced: 0xa2dffc48; This could be a double free(), or free() called =20= with the middle of an allocated block; Try setting environment =20 variable MallocHelp to see tools to help debug 6) the spider is still not found, I haven't tweaked any settings though. About QT Assistant not being found: looking at the console log I see =20 you are just checking for the assistant on the path provided by the =20 system (/usr/bin:/bin:/usr/sbin:/sbin) now when a Mac user logs in =20 the path is normally expanded through a file called .profile. But, =20 that only affects terminal windows, the new path is not broadcast to =20 applications started over the OS X Dock. Thats why the assistant was =20 not found on my Mac.... I have QT installed on ~/bin and I also have =20 the QTDIR variable set, but only for my terminal windows. I believe you are not checking the Applications folder, this would =20 also be a good standard location (both gobal /Applications and for =20 the user ~/Applications). Still this does not solve the distribution =20 problem on the Mac platform (my last email). In any case, I moved the assistant to the /bin folder and now the =20 message does not appear. Still, when Lprof opens if I hit the help =20 button I just see a that an app is about to start on the Dock for =20 say atenth of a second, then it immediately disappears. The console =20 shows: execpath first time (QTDIR) =3D /bin execpath + / + assist =3D /bin/assistant.app/Contents/MacOS/assistant which is correct - I have no ideas here. Now, I checked the Lprof.app folder and saw the Help is actually =20 HTML. I propose we forget about the QT Assistant: it is probably good =20= to use it on a system which already has it (so you can perhaps keep =20 the check) but if it is not found (likelly on most Macs) why not just =20= open the HTML on the standard browser? I think this makes things =20 simpler, the same could be done for Windows. Cheers Mark |