[hugin-ptx] Re: Mac Build

2016-05-26 Thread Niklas Mischkulnig
Hi Thomas,

What does OSXStoreOpenFiles do? With this code added, MacOpenFiles never 
gets called,
also not via Finder; that of course means that it doesn't get called either 
when Hugin opens it, so
that is now works if opened by Hugin, but not if opened by Finder.

Niklas

#ifdef __WXMAC__
wxArrayString emptyFiles;
OSXStoreOpenFiles(emptyFiles);
#endif

Am Donnerstag, 26. Mai 2016 21:48:00 UTC+2 schrieb T. Modes:
>
> Hello,
>
> Am Donnerstag, 26. Mai 2016 21:28:13 UTC+2 schrieb Niklas Mischkulnig:
>>
>> Hello,
>>
>>>
>> Does it then works? Does it also works when starting from finder?
>>>
>>
>> From Hugin, it makes no difference but it still works perfectly with 
>> Finder.
>>
>> (I don't know if it's important, but MacOpenFiles gets always called 
>> after the first text
>> in the log window appears.)
>>
>
> That's strange.
> You should get the filename 2 times First with args .. and  then with 
> param prefix.
> Are you sure that all was correctly rebuild?
>
> I searched in the code of wxWidgets and added some more code (beside 
> commented out in my last mail).
> Could you apply the attached code and try again? (Please check that it is 
> correctly applied.) 
> Thanks.
>
> Thomas
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/e1a835b6-d6bf-4c65-90e3-5f4aa5198844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[hugin-ptx] Re: Mac Build

2016-05-26 Thread T. Modes
Hello,

Am Donnerstag, 26. Mai 2016 21:28:13 UTC+2 schrieb Niklas Mischkulnig:
>
> Hello,
>
>>
> Does it then works? Does it also works when starting from finder?
>>
>
> From Hugin, it makes no difference but it still works perfectly with 
> Finder.
>
> (I don't know if it's important, but MacOpenFiles gets always called after 
> the first text
> in the log window appears.)
>

That's strange.
You should get the filename 2 times First with args .. and  then with param 
prefix.
Are you sure that all was correctly rebuild?

I searched in the code of wxWidgets and added some more code (beside 
commented out in my last mail).
Could you apply the attached code and try again? (Please check that it is 
correctly applied.) 
Thanks.

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/2b7573e8-7448-4256-8458-ccab70848c95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  5422e269f546cdad9d305767a1e608420d10bcf3

diff --git a/src/hugin1/ptbatcher/PTBatcherGUI.cpp b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
--- a/src/hugin1/ptbatcher/PTBatcherGUI.cpp
+++ b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
@@ -167,6 +167,12 @@
 };
 wxCmdLineParser parser(cmdLineDesc, argc, argv);
 
+for (int i = 0; i < argc; ++i)
+{
+wxString s;
+s << "argv " << i << ": " << argv[i];
+wxLogMessage(s);
+};
 switch ( parser.Parse() )
 {
 case -1: // -h or --help was given, and help displayed so exit
@@ -221,7 +227,7 @@
 }
 };
 
-#ifdef __WXMAC__
+#if 0 //def __WXMAC__
 // see PTBatcherGUI::MacOpenFile for explanation
 m_macFileNameToOpenOnStart = wxT("");
 wxYield();
@@ -267,6 +273,9 @@
 while (parser.GetParamCount() > count)
 {
 wxString param = parser.GetParam(count);
+wxString s;
+s << "Param " << count << ": " << param;
+wxLogMessage(s);
 count++;
 if (!projectSpecified)	//next parameter must be new script file
 {
@@ -396,6 +405,10 @@
 {
 m_frame->RunBatch();
 }
+#ifdef __WXMAC__
+wxArrayString emptyFiles;
+OSXStoreOpenFiles(emptyFiles);
+#endif
 return true;
 }
 


[hugin-ptx] Re: Mac Build

2016-05-26 Thread Niklas Mischkulnig
Hello,

>
Does it then works? Does it also works when starting from finder?
>

>From Hugin, it makes no difference but it still works perfectly with Finder.

(I don't know if it's important, but MacOpenFiles gets always called after 
the first text
in the log window appears.)

Niklas 

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/0ad93a66-ab79-4826-b66d-6c4c2bc72638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[hugin-ptx] Re: Mac Build

2016-05-26 Thread T. Modes
Hi Niklas,

Am Donnerstag, 26. Mai 2016 20:19:38 UTC+2 schrieb Niklas Mischkulnig:
>
> Hi Thomas,
>
> PTBatcher opens the specified project correctly but when it starts 
> stitching, MacOpenFiles get called with the prefix. There are two 
> possibilities: 
>

I have an idea number 3:

comment out lines 224-234 in PTBatcherGUI.cpp
#if 0 // def __WXMAC__
// see PTBatcherGUI::MacOpenFile for explanation
m_macFileNameToOpenOnStart = wxT("");
wxYield();
if(!m_macFileNameToOpenOnStart.IsEmpty())
{
wxFileName fn(m_macFileNameToOpenOnStart);
m_frame->AddToList(fn.GetFullPath());
}
else
#endif
 
Does it then works? Does it also works when starting from finder?

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/ad0f2bbe-8894-4d34-b8ff-f40ca60507aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[hugin-ptx] Re: Mac Build

2016-05-26 Thread Niklas Mischkulnig
Hi Thomas,

PTBatcher opens the specified project correctly but when it starts 
stitching, MacOpenFiles get called with the prefix. There are two 
possibilities: 
1. a hack in MacOpenFiles to not add files without a extension 
or
2.(the better one) Why does it get called at all? Note that it doesn't make 
any difference either if Hugin calls PTG or if I call it via bash with the 
same command as hugin ( 
/Users/niklas/development/cmake/build/src/hugin1/ptbatcher/PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI
 
 -b -v "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto" 
"/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692" )

Niklas

argv 0: 
/Users/niklas/development/cmake/build/src/hugin1/ptbatcher/PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI
argv 1: -b
argv 2: -v
argv 3: /Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto
argv 4: /Users/niklas/Desktop/pano/DSC_5691 - DSC_5692

Am Mittwoch, 25. Mai 2016 17:53:42 UTC+2 schrieb T. Modes:
>
> Hi Niklas,
>
> Am Dienstag, 24. Mai 2016 20:45:57 UTC+2 schrieb Niklas Mischkulnig:
>>
>> Thomas, I rolled back to wxWidgets 3.0. 
>> Can I hardcode wxColour col(128,128,128) (dark grey, how it looked 
>> previously)
>> because that color isn't available via wxSYS_COLOUR_?*?*?  in 3.1?
>>
> Yes, no problem, if you like. Maybe wrapping into #if defined __WXMAC__ && 
> wxCHECK_VERSION(3,1,0) 
>
>>
>> When I call it like this, the log windows opens, the cursor turns into a 
>> watch and I can't do anything, because it tries to stitch the
>> first (=invalid) project file(see below), code in repository calls 
>> PTBatcherGUI this way.
>> PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI  -b -v 
>> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692" 
>> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto"
>>
>
> I changed the order in Hugin back. So it's in sync with Windows and Linux 
> again. I was still wondering why it worked on Mac with the false order.
>  
>
>>
>> This way(arguments swapped), it gets added once correctly and the second 
>> entry has the prefix as the projectfile and "first image - last image" as 
>> output prefix:
>> PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI  -b -v 
>> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692.pto" 
>> "/Users/niklas/Desktop/pano/DSC_5691 - DSC_5692"
>>
>> If you checked already the call from hugin, we have to go a step further 
> and debug it in PTBatcherGUI. Could you apply the attached patch and then 
> call PTBatcherGUI from Hugin. This should print a window with the 
> parameters PTBatcherGUI gets. Maybe this shed some light on the issue.
>
> Thomas
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/c26a817d-438c-45cf-89be-4aa3293f237a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[hugin-ptx] Re: pto2mk replacement

2016-05-26 Thread T. Modes


Am Donnerstag, 26. Mai 2016 00:46:13 UTC+2 schrieb Sybren A. Stüvel:
>
> Unfortunately, Hugin is no longer shipped with pto2mk, and suggests using 
> hugin_executor instead (http://wiki.panotools.org/Pto2mk). To my sadness, 
> hugin_executor does NOT run enfuse in parallel, making the stitching much 
> slower.
> Can anyone give me some hints on how to finish the stitching process at 
> maximum speed?
>

Using the OpenMP powered enfuse.

Running 8 instances of OpenMP-enfuse with 8 threads each one (as the 
multi-threaded enfuse does) (as your make -j8) spawns a lot of threads and 
is using a lot of memory.
So we prefer currently running only one multithreaded program at one time, 
and this is supported by hugin_executor.

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/9106a72c-2644-4e58-8aac-982537a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] pto2mk replacement

2016-05-26 Thread Sybren A . Stüvel
On Thursday 26 May 2016 07:02:23 Bruno Postle wrote:
> There is a tool called pto2mk2 in the Panotools::Script Perl module that
> should work in more or less the same way.

Thanks for the pointer. However, the page states that the tool "is not 
intended to replace pto2mk in the future". Also, I'd rather not have to 
install Perl on every machine & platform I create my panoramas on (I use a 
mixture of Windows and Linux machines). If anyone knows a tool in Python, or 
something that gets compiled into an executable, you'd make me a very happy 
man.

Cheers,
-- 
Sybren A. Stüvel

https://stuvelfoto.nl/
https://stuvel.eu/

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/2881672.GK2JV73IMO%40herrie.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Hugin-2016.0.0. cmake fails

2016-05-26 Thread Stefan Peter
Hi Simone Montrasio

Am 25.05.2016 um 21:32 schrieb Simone Montrasio:
> Same problem as above on fresh Ubu 16.04!
> Any suggestion?
> Life is difficult without hugin... :)

You can try out the “Hugin PPA Packagers” teams releases, either
Hugin 2016.0 from
https://launchpad.net/~hugin/+archive/ubuntu/hugin-builds
or the bleeding edge nightly builds from
https://launchpad.net/~hugin/+archive/ubuntu/nightly


With kind regards

Stefan Peter

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/5746A288.8030309%40swissonline.ch.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Hugin no longer works in OS X El Capitan

2016-05-26 Thread Stefan Peter
Dear Ken Barber
Am 25.05.2016 um 16:25 schrieb Ken Barber:
> With the latest "security" update to El Capitan, the stitcher no longer
> runs.  It has something to do with it not being an official Apple product.
> 
> There is supposedly a workaround to that, but the workaround doesn't work.

Sorry, I'm not a Mac user so I can not really help you there. Some
questions and remarks, though:

o What (precompiled) version of Hugin do you use?

o If it is a recent version, you could try to switch
  the stitcher processor from PTBatcherGUI to
  Hugin_stitch_project. (File->Preferences->Stitching)

o There is an ongoing MAC build discussion for the 2016.0 version at
  https://groups.google.com/d/msg/hugin-ptx/Rz-LY9isDIs/QrV-9tC1DQAJ
  Maybe you can chime in there?
> 
> And Hugin won't compile on a Mac under Macports.
> 
> I tried to compile Hugin in a Linux VM, but it won't compile under Linux
> either.

Most Linux distributions have precompiled Hugin versions available in
their repositories.

With kind regards

Stefan Peter

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/57469FD9.7010306%40swissonline.ch.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] pto2mk replacement

2016-05-26 Thread Bruno Postle


On 25 May 2016 21:57:11 BST, "Sybren A. Stüvel" wrote:
>
>I'm a happy user of Hugin. You can see some of my work at 
>https://stuvelfoto.nl/panorama. To stitch those, I used to use pto2mk,
>and 
>then "make -j8". This runs 8x enfuse in parallel, giving maximum speed
>on 
>my Intel Core i7.
>Unfortunately, Hugin is no longer shipped with pto2mk, and suggests
>using 
>hugin_executor instead (http://wiki.panotools.org/Pto2mk).
 
There is a tool called pto2mk2 in the Panotools::Script Perl module that should 
work in more or less the same way.

-- 
Bruno

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/BB760642-22DF-4C0F-9AFE-F0531818A965%40postle.net.
For more options, visit https://groups.google.com/d/optout.