On Mon, Oct 13, 2008 at 10:49 PM, Bruno Postle <[EMAIL PROTECTED]> wrote:
>
> On Mon 13-Oct-2008 at 21:41 +0200, Tomas Klacko wrote:
>>
>>>>- take the ~/.hugin configuration file and set NonaExe to myRemoteNona
>>>
>>> This won't work, the ~/.hugin file is only accessed by the GUI (it
>>> is a wxwidgets thing).
>>
>>~/.hugin stores the configuration for the wxwidgets?
>>(with some values being editable (like actualPath)
>>and some values being constants (like NonaExe))
>
> Hugin shouldn't reset any changes you make manually to ~/.hugin, but
> this file is ignored by the command-line tools, it is only used by
> the GUI.
>
> pto2mk reads these lines in the .pto file when it creates the
> .pto.mk Makefile:
>
> #hugin_remapper nona
>
> So you could edit them rather than setting $NONA in the environment.
>
> Though I'm not sure why you need to execute nona remotely, surely
> you only need to run 'make' and this will run the remote copy of
> nona?
>
>>Example, makefile rule:
>>974-1-975-10001.tif: 975-1.jpg $(PROJECT_FILE)
>> $(NONA) $(NONA_LDR_REMAPPED_COMP) -r ldr -m TIFF_m -o
>>$(LDR_REMAPPED_PREFIX_SHELL) -i 1 $(PROJECT_FILE_SHELL)
>
>> But it will fail if 974-1.jpg is not present (nona will complain)
>
> This sounds like a bug in nona, there is no need to check for the
> existence of a file that isn't going to used.
I am running the latest hugin release now (0.7.0 2008-10-04) and I get
this behaviour:
$ cd /home/blackhole/hugin
$ ls
974-1-975-1.pto 974-1-975-1.pto.mk 975-1.jpg
$ make 974-1-975-10001.tif -f *.mk
nona -z PACKBITS -r ldr -m TIFF_m -o 974-1-975-1 -i 1
/home/blackhole/hugin/974-1-975-1.pto
ContractViolation:
Precondition violation!
Unable to open file '/home/blackhole/hugin/974-1.jpg'.
(/mnt/sda6/blackhole/hugin_src/hugin-0.7.0/src/foreign/vigra/vigra_impex/codecmanager.cxx:206)
caught exception:
Precondition violation!
Unable to open file '/home/blackhole/hugin/974-1.jpg'.
(/mnt/sda6/blackhole/hugin_src/hugin-0.7.0/src/foreign/vigra/vigra_impex/codecmanager.cxx:206)
make: *** [974-1-975-10001.tif] Error 1
# image lines from the pto file:
#-hugin cropFactor=6.04396
i w800 h600 f0 Eb1 Eev13.5306015210061 Er1 Ra0 Rb0 Rc0 Rd0 Re0 Va1 Vb0
Vc0 Vd0 Vx0 Vy0 a0 b0 c0 d0 e0 g0 p0.25281112318361
r-0.0479656335808995 t0 v34.9340631830443 y-11.6690376346351 Vm5 u10
n"974-1.jpg"
#-hugin cropFactor=6.04395579059493
i w800 h600 f0 Eb1 Eev13.5306015210061 Er1 Ra=0 Rb=0 Rc=0 Rd=0 Re=0
Va=0 Vb=0 Vc=0 Vd=0 Vx=0 Vy=0 a=0 b=0 c=0 d=0 e=0 g=0
p1.27128059196055 r-1.77978936535995 t=0 v=0 y10.7338098101952 Vm5
u10 n"975-1.jpg"
# corresponding makefile rules and variables
PROJECT_FILE=/home/blackhole/hugin/974-1-975-1.pto
PROJECT_FILE_SHELL=/home/blackhole/hugin/974-1-975-1.pto
974-1-975-10000.tif: /home/blackhole/hugin/974-1.jpg $(PROJECT_FILE)
$(NONA) $(NONA_LDR_REMAPPED_COMP) -r ldr -m TIFF_m -o
$(LDR_REMAPPED_PREFIX_SHELL) -i 0 $(PROJECT_FILE_SHELL)
974-1-975-10001.tif: /home/blackhole/hugin/975-1.jpg $(PROJECT_FILE)
$(NONA) $(NONA_LDR_REMAPPED_COMP) -r ldr -m TIFF_m -o
$(LDR_REMAPPED_PREFIX_SHELL) -i 1 $(PROJECT_FILE_SHELL)
Should I try/provide anything else?
Tomas Klacko
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---