hey,

sorry, newborn kid in the house, i just wanted to push out what i
have.. it's certainly not very polished.

there is a `darktable/tools/noiseprofile/build.sh' script to build the
program `noiseprofile'. also, as henrik pointed out, `make.sh' (with
the interesting name) will need some manual editing. i guess it could
do some $0 tricks to avoid that.

-jo

On Thu, Dec 13, 2012 at 8:38 AM, Ger Siemerink <[email protected]> wrote:
> one step futher, I have to be patience
>
> as you said I do have to hand-compile something?
>
>
> output/backtrace
>
> root@ubuntu:~/vcs/darktable/tools/noise# LANG=C
> root@ubuntu:~/vcs/darktable/tools/noise# gcc -O3 -o noiseprofile 
> noiseprofile.c
> noiseprofile.c: In function 'invert_histogram':
> noiseprofile.c:103:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:103:3: note: use option -std=c99 or -std=gnu99 to
> compile your code
> noiseprofile.c:106:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:108:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c: In function 'main':
> noiseprofile.c:173:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:175:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:187:13: error: redefinition of 'k'
> noiseprofile.c:173:13: note: previous definition of 'k' was here
> noiseprofile.c:187:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:189:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:198:13: error: redefinition of 'k'
> noiseprofile.c:187:13: note: previous definition of 'k' was here
> noiseprofile.c:198:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:208:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:213:13: error: redefinition of 'k'
> noiseprofile.c:208:13: note: previous definition of 'k' was here
> noiseprofile.c:213:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:215:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:229:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:231:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:234:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:243:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:245:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:248:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:279:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:282:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:284:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:293:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:341:13: error: redefinition of 'i'
> noiseprofile.c:243:11: note: previous definition of 'i' was here
> noiseprofile.c:341:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:342:7: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:346:11: error: redefinition of 'i'
> noiseprofile.c:341:13: note: previous definition of 'i' was here
> noiseprofile.c:346:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:347:13: error: redefinition of 'k'
> noiseprofile.c:342:15: note: previous definition of 'k' was here
> noiseprofile.c:347:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:349:11: error: redefinition of 'i'
> noiseprofile.c:346:11: note: previous definition of 'i' was here
> noiseprofile.c:349:3: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c:355:5: error: 'for' loop initial declarations are only
> allowed in C99 mode
> noiseprofile.c: In function 'read_pfm':
> noiseprofile.c:61:9: warning: ignoring return value of 'fscanf',
> declared with attribute warn_unused_result [-Wunused-result]
> noiseprofile.c:65:8: warning: ignoring return value of 'fread',
> declared with attribute warn_unused_result [-Wunused-result]
> noiseprofile.c: In function 'read_histogram':
> noiseprofile.c:79:11: warning: ignoring return value of 'fscanf',
> declared with attribute warn_unused_result [-Wunused-result]
> noiseprofile.c:88:11: warning: ignoring return value of 'fscanf',
> declared with attribute warn_unused_result [-Wunused-result]
>
>
>
>
> 2012/12/12 Henrik Andersson <[email protected]>:
>> Just looked at the code, and alot of assumtions are made:
>>
>> First you should have darktable source tree at following location:
>>
>> /home/ger/vcs/darktable
>>
>> then there are also a c file in there that probably needs to be handcompiled:
>>
>> # cd ~/vcs/darktable/tools/noise
>> # gcc -O3 -o noiseprofile noiseprofile.c
>>
>> /Henrik
>>
>> 2012/12/12 Ger Siemerink <[email protected]>:
>>> /home/ger/vcs/darktable/tools/noise/noiseprofile
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> darktable-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/darktable-devel

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to