Hi Tim (or another programmer),
"AssistantPanel.cpp", "CPEditorPanel.cpp" and "ImagesPanel.cpp" contain the
following code to use the celeste.model for the celeste calculations.
<snip>
// SVM model file
char buf[100];
strcpy( buf, INSTALL_XRC_DIR );
strcat( buf, "data/");
strcat( buf, HUGIN_CELESTE_MODEL);
string modelfile = buf;
</snip>
In a Mac bundle the celeste.model file (as defined by HUGIN_CELESTE_MODEL)
is in the Mac bundle Resource path. See my "crippled" code below:
<snip>
// SVM model file
#if __WXMAC__ && defined MAC_SELF_CONTAINED_BUNDLE
wxString strFile;
strFile =
MacGetPathToBundledResourceFile(CFSTR("xrc/data/HUGIN_CELESTE_MODEL"));
string modelfile = strFile.mb_str(wxConvUTF8);
#else
char buf[100];
strcpy( buf, INSTALL_XRC_DIR );
strcat( buf, "data/");
strcat( buf, HUGIN_CELESTE_MODEL);
string modelfile = buf;
#endif
</snip>
I googled around and found several functions to do the string conversion
from wxstring to normal string, but nothing works . Is there a programmer
"in the house" that can do such a simple conversion. In that case I can
update the MacOSX bundle to also work with celeste.
Hoi,
Harry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---