<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>samurai-apps</title>
	<atom:link href="http://samurai-apps.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://samurai-apps.com</link>
	<description>Geisha, Fujiyama, Samurai-apps.</description>
	<lastBuildDate>Sat, 07 Apr 2012 09:21:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to get people to rate your IOS app</title>
		<link>http://samurai-apps.com/en/2012/04/07/%e3%80%90ios%e3%80%91%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%abuialert%e3%82%92%e5%87%ba%e3%81%97%e3%81%a6%e8%a9%95%e4%be%a1%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e9%a3%9b%e3%81%b0%e3%81%99/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2012/04/07/%e3%80%90ios%e3%80%91%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%abuialert%e3%82%92%e5%87%ba%e3%81%97%e3%81%a6%e8%a9%95%e4%be%a1%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e9%a3%9b%e3%81%b0%e3%81%99/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 09:20:02 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=850</guid>
		<description><![CDATA[How to display UIAlert like &#8220;Rate this application&#8221; when application starts. You should write about UIAlert to didFinishLaunchingWithOptions. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { CGRect frameForWindow = [[UIScreen mainScreen] bounds]; window = [[UIWindow alloc] initWithFrame:frameForWindow]; //write about window //ウインドウについて記載 [window addSubview:navigationController.view]; //From here about UIAlert and rating popup. //manage displaying UIAlert by NSUserDefaults //ここからUIAlertについて記載。表示するかどうかはNSUserDefaultsで制御する。 NSUserDefaults [...]]]></description>
			<content:encoded><![CDATA[<p>How to display UIAlert like &#8220;Rate this application&#8221; when application starts.</p>
<p><img title="NewImage.png" src="http://samuraiapps.sakura.ne.jp/wp-content/uploads/2012/04/NewImage1.png" border="0" alt="NewImage" width="320" height="480" /></p>
<p>You should write about UIAlert to didFinishLaunchingWithOptions.</p>
<pre class="brush:c">- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    CGRect frameForWindow = [[UIScreen mainScreen] bounds];
    window = [[UIWindow alloc] initWithFrame:frameForWindow];

    //write about window
    //ウインドウについて記載

    [window addSubview:navigationController.view];

    //From here about UIAlert and rating popup.
    //manage displaying UIAlert by NSUserDefaults
    //ここからUIAlertについて記載。表示するかどうかはNSUserDefaultsで制御する。
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    NSInteger executeTime = [userDefaults integerForKey: @"executeTime"];
    NSInteger alertDispFlag = [userDefaults integerForKey: @"alertDispFlag"];

    executeTime++;

    //If this application is started 6 times or more and alertDispFlag == 0, then alert is displayed.
    //もし６回以上起動していて、alertDispFlagが０なら表示する
    if (executeTime &gt; 5 &amp;&amp; alertDispFlag == 0) {
        // アラート表示

        UIAlertView *alertView = [[UIAlertView alloc] init];
        alertView.delegate = self;
        alertView.title=NSLocalizedString(@"pleaseReview", @"Please Rate");
        alertView.message=NSLocalizedString(@"appliciate", @"Please Rate this apps.");
        [alertView addButtonWithTitle:NSLocalizedString(@"Review", @"Rate now.")];
        [alertView addButtonWithTitle:NSLocalizedString(@"Later", @"Remind me later.")];
        [alertView addButtonWithTitle:NSLocalizedString(@"nothanks", @"No, thanks.")];
        [alertView show];
        [alertView release];

    }

    [userDefaults setInteger:executeTime forKey: @"executeTime"];
    [userDefaults synchronize];

    return YES;
}

//UIAlartのデリゲート。UIAlertの動作を記載する。
//delegate to UIAlret

-(void)alertView:(UIAlertView*)alertView
clickedButtonAtIndex:(NSInteger)buttonIndex {

    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    switch (buttonIndex) {
        case 0:
            //go to rate page
            [userDefaults setInteger: 1 forKey: @"alertDispFlag"];
            [userDefaults synchronize];
            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:NSLocalizedString(@"reviewURL", @"") ]];
            break;

        case 1:

            break;
        case 2:
            [userDefaults setInteger: 1 forKey: @"alertDispFlag"];
            [userDefaults synchronize];
            break;
    }

}
</pre>
<p>review URL is</p>
<blockquote><p>itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=（9 digit itunes app id)&amp;onlyLatestVersion=true&amp;pageNumber=0&amp;sortOrdering=1&amp;type=Purple+Software</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2012/04/07/%e3%80%90ios%e3%80%91%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%abuialert%e3%82%92%e5%87%ba%e3%81%97%e3%81%a6%e8%a9%95%e4%be%a1%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e9%a3%9b%e3%81%b0%e3%81%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino uno + ethernet shield + iPhone + iOSC(OSC Application)</title>
		<link>http://samurai-apps.com/en/2011/06/11/arduino-osc/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2011/06/11/arduino-osc/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 01:31:41 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=755</guid>
		<description><![CDATA[Arduino uno + ethernet shield + iPhone + iOSC(OSC Application) A LCD didn&#8217;t work when I was coding like below. LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); Take care about a LCD connection port. I referred to UDPSendReceiveString, Arduino examples (Ethernet). /* UDPSendReceive.pde: */ #include // needed for Arduino versions later than 0018 #include [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="225" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=20fd7a9700&amp;photo_id=5804698592" /><param name="bgcolor" value="#000000" /><param name="allowFullScreen" value="true" /><param name="src" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="400" height="225" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" allowfullscreen="true" bgcolor="#000000" flashvars="intl_lang=en-us&amp;photo_secret=20fd7a9700&amp;photo_id=5804698592" data="http://www.flickr.com/apps/video/stewart.swf?v=71377"></embed></object></p>
<p>Arduino uno + ethernet shield + iPhone + iOSC(OSC Application)</p>
<p>A LCD didn&#8217;t work when I was coding like below.</p>
<pre class="brush:c">LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);</pre>
<p>Take care about a LCD connection port.</p>
<p>I referred to UDPSendReceiveString, Arduino examples (Ethernet).</p>
<pre class="brush:c">/*
  UDPSendReceive.pde:
 */

#include          // needed for Arduino versions later than 0018
#include
#include          // UDP library from: bjoern@cs.stanford.edu 12/30/2008
#include

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[]	= { 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
byte ip[]	= { 192 , 168 , 1 , 1 } ;  //

unsigned int localPort = 10000;      // local port to listen on

// the next two variables are set when a packet is received
byte remoteIp[4];        // holds received packet's originating IP
unsigned int remotePort; // holds received packet's originating port

// buffers for receiving and sending data
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
char  ReplyBuffer[] = "acknowledged";       // a string to send back
LiquidCrystal lcd(8, 7, 6, 5, 4, 3, 2);

void setup() {
  // start the Ethernet and UDP:
  Ethernet.begin(mac,ip);
  Udp.begin(localPort);

  lcd.begin(16,2);
  lcd.clear();
  lcd.setCursor(0, 0);

  Serial.begin(9600);
}

void loop() {
  // if there's data available, read a packet
  int packetSize = Udp.available(); // note that this includes the UDP header
  if(packetSize)
  {
    packetSize = packetSize - 8;      // subtract the 8 byte header
    Serial.print("Received packet of size ");
    Serial.println(packetSize);

    // read the packet into packetBufffer and get the senders IP addr and port number
    Udp.readPacket(packetBuffer,UDP_TX_PACKET_MAX_SIZE, remoteIp, remotePort);
    char* c = packetBuffer;
    if( strcmp(c, "/osc/button1") == 0 ){
      lcd.setCursor(0,0);
      lcd.print("button 1 pushed");
    }
    if ( strcmp(c, "/osc/button2") == 0 ){
      lcd.setCursor(0,0);
      lcd.print("button 2 pushed");
    }
    Udp.sendPacket( ReplyBuffer, remoteIp, remotePort);
  }
  delay(500);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2011/06/11/arduino-osc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>NEON Support for Four Android Devices</title>
		<link>http://samurai-apps.com/en/2011/04/12/checkneonsupport/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2011/04/12/checkneonsupport/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 18:11:42 +0000</pubDate>
		<dc:creator>munepi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[開発者ブログ]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=687</guid>
		<description><![CDATA[（2011-04-14 Modified） We add multiple new Android devices to our Android development environment. Our lineup become as follows; NTT DoCoMo HT-03A (HTC Magic), EMOBILE PocketWiFi S (Huawei IDEOS U8150), NTT DoCoMo SO-01C (Sony Ericsson Xperia arc), and Motorola Xoom WiFi. To see difference between them, we checked these devices support a SIMD instruction for ARM architecture, [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>（2011-04-14 Modified）</p>
<p>We add multiple new Android devices to our Android development environment. Our lineup become as follows;</p>
<ul>
<li>NTT DoCoMo HT-03A (HTC Magic),</li>
<li>EMOBILE PocketWiFi S (Huawei IDEOS U8150),</li>
<li>NTT DoCoMo SO-01C (Sony Ericsson Xperia arc), and</li>
<li>Motorola Xoom WiFi.</li>
</ul>
<p>To see difference between them, we checked these devices support a SIMD instruction for ARM architecture, called &#8220;NEON&#8221;, which <a href="http://semiaccurate.com/2011/04/06/nvidia-in-full-philosophical-retreat-for-tegra-3/">t</a><a href="http://semiaccurate.com/2011/04/06/nvidia-in-full-philosophical-retreat-for-tegra-3/">he next version of Tegra would have</a>.<span id="more-687"></span></p>
<p>A routine which contains many calculations may achieve significant performance increase with NEON. To use NEON instructions, you build a native shared library (.so) written in C/C++ and call functions in it through JNI (Java Native Interface) form a  Java app. A CPU which is compatible with ARM v7 or later and supports NEON circuit is required. Apps may switch routines by checking for a device to have NEON support.</p>
<p>We checked for our Android devices to support NEON by using HelloNeon  in <a href="http://developer.android.com/intl/ja/sdk/ndk/index.html">Android NDK r5b</a>.</p>
<p>Additionally, we show basic specifications and display specifications obtained by <a href="https://market.android.com/details?id=jp.co.taosoftware.android.dpiinfo">tDpiInfo</a>.</p>
<table style="border: navy 1px solid; text-align: center;">
<tbody>
<tr>
<th>Name</th>
<td>NTT docomo</p>
<p>HT-03A</td>
<td>EMOBILE</p>
<p>PocketWiFi S</td>
<td>NTT docomo</p>
<p>Xperia arc SO-01C</td>
<td>Xoom</td>
</tr>
<tr>
<th>Vender</th>
<td>HTC</td>
<td>Huawei</td>
<td>Sony Ericsson</td>
<td>Motorola</td>
</tr>
<tr>
<th>OS Version</th>
<td>1.6</td>
<td>2.2</td>
<td>2.3.2</td>
<td>3.0.1</td>
</tr>
<tr>
<th>CPU</th>
<td>Qualcomm</p>
<p>MSM7200A</p>
<p><a href="http://www.htc.com/www/product/magic/specification.html">→see</a></td>
<td>Qualcomm</p>
<p>MSM7201A</p>
<p><a href="http://pdadb.net/index.php?m=specs&amp;id=2578&amp;c=huawei_ideos_u8150">→see</a></td>
<td>Qualcomm</p>
<p>Snapdragon MSM8255</p>
<p><a href="http://pdadb.net/index.php?m=specs&amp;id=2809&amp;c=sony_ericsson_xperia_arc_so-01c_se_anzu">→see</a></td>
<td>NVIDIA</p>
<p>Tegra 2 250</p>
<p><a href="http://pdadb.net/index.php?m=specs&amp;id=2788&amp;c=motorola_xoom_mz604">→see</a></td>
</tr>
<tr>
<th>Clock</th>
<td>384MHz *1</td>
<td>528MHz</td>
<td>1000MHz</td>
<td>1000MHz</p>
<p>(Dual Core)</td>
</tr>
<tr>
<th>ARMv7 or later</th>
<td>No</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<th>NEON</th>
<td>No</td>
<td>No</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<th>Height [px]</th>
<td>480</td>
<td>320</td>
<td>854</td>
<td>800</td>
</tr>
<tr>
<th>Width [px]</th>
<td>320</td>
<td>240</td>
<td>480</td>
<td>1280</td>
</tr>
<tr>
<th>Density</th>
<td>1.0</td>
<td>0.75</td>
<td>1.5</td>
<td>1.0</td>
</tr>
<tr>
<th>Xdpi [px]</th>
<td>180.62193</td>
<td>160.42105</td>
<td>234.46153</td>
<td>149.82489</td>
</tr>
<tr>
<th>Ydpi [px]</th>
<td>181.96814</td>
<td>159.37254</td>
<td>233.24301</td>
<td>149.41176</td>
</tr>
</tbody>
</table>
<p>*1: This CPU can run at 528MHz, but HT-03A runs at 384MHz.</p>
<p>Xperia arc is the only device we have which supports NEON.</p>
<p>Performance is very different between a group of HT-03A and Pocket WiFi S, and a group of Xperia arc and Xoom. Xoom has the highest resolution, but it shows the best performance. Dual Core and GPU may work well. Xperia arc is also very good to use. The 1st group is slow and low-reso, but we use them for application performance tuning.</p>
<p>At a visual point of view, difference of DPI (dot/inch, pixel/inch) is important.</p>
<p><a href="http://developer.android.com/intl/ja/guide/practices/screens_support.html">Developer&#8217;s guide says 160px/inch is a standard density (=1.0)</a>. Each device has its specific value regarding to its display size. Density seems to be rounded to a multiple of 0.25, so actual DPI is a bit different from Density value, for example, HT-03A and Xoom have 1.0 in Density, but DPI are 180 px/inch 149 px/inch, respectively. Because Xperia arc has the high Density1.5, every graphics (including font) should be scaled as 1.5 times large as a default or it may be shown very smaller.</p>
<p># Yes, ChartExpert has this problem. We are now working to fix it!! ：P</p>
<hr />
<p>（2011-04-14 Add）</p>
<div>We checked for other devices with the friends&#8217; helps.</div>
<table style="border: navy 1px solid; text-align: center;">
<tbody>
<tr>
<th>Name</th>
<td>NTT docomo</p>
<p>MEDIAS N-04C</td>
<td>NTT docomo</p>
<p>REGZA Phone T-01C</td>
<td>au</p>
<p>IS03</td>
</tr>
<tr>
<th>Vender</th>
<td>NEC CASIO</td>
<td>Fujitsu Toshiba</td>
<td>SHARP</td>
</tr>
<tr>
<th>OS Version</th>
<td>2.2.1</td>
<td>2.1-update1</td>
<td>2.1-update1</td>
</tr>
<tr>
<th>CPU</th>
<td>Qualcomm</p>
<p>Snapdragon MSM7230</p>
<p><a href="http://www.lintasberita.us/topic/%E3%82%B9%E3%83%9E%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%B3+cpu%E3%80%80MSM7230+800MHz">→see</a></td>
<td>Qualcomm</p>
<p>Snapdragon QSD8250</p>
<p><a href="http://pdadb.net/index.php?m=specs&amp;id=2810&amp;view=1&amp;c=nec_medias_n-04c">→see</a></td>
<td>Qualcomm</p>
<p>Snapdragon QSD8650</p>
<p><a href="http://pdadb.net/index.php?m=specs&amp;id=2631&amp;c=sharp_is03">→see</a></td>
</tr>
<tr>
<th>Clock</th>
<td>800MHz</td>
<td>1000MHz</td>
<td>1000MHz</td>
</tr>
<tr>
<th>ARMv7 or later</th>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<th>NEON</th>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<th>Height [px]</th>
<td>854</td>
<td>854</td>
<td>960</td>
</tr>
<tr>
<th>Width [px]</th>
<td>480</td>
<td>480</td>
<td>640</td>
</tr>
<tr>
<th>Density</th>
<td>1.5</td>
<td>1.5</td>
<td>2.0</td>
</tr>
<tr>
<th>Xdpi [px]</th>
<td>160.42105</td>
<td>160.42105</td>
<td>331.7551</td>
</tr>
<tr>
<th>Ydpi [px]</th>
<td>159.49706</td>
<td>159.49706</td>
<td>334.0274</td>
</tr>
</tbody>
</table>
<p>It is impressive that IS03 has very high resolution.</p>
<p>The display metrics for MEDIAS and REGZA Phone are very similar. It is somewhat wondering that Xdpi and Ydpi for these devices are around 160 although Densities for these devices are 1.5 (it means 240dpi).</p>
<p>Regarding our looking, NEON is supported by all devices using Snapdragon. Almost all of recent machines has this chipset family. About tablet types, new Android 3.0 machines often take Tegra2, which don&#8217;t support NEON.</p>
<p>We thank our friends for their help!!</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2011/04/12/checkneonsupport/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install OpenCV into your rental server from sources</title>
		<link>http://samurai-apps.com/en/2010/08/25/opencv2-2-1/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/08/25/opencv2-2-1/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 02:14:50 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[開発者ブログ]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=547</guid>
		<description><![CDATA[Install cmake %cd ~/local/src %wget http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz %tar xvf cmake-2.8.2.tar.gz %cd cmake-2.8.2 %./bootstrap --prefix=$HOME/local %make %make install Install OpenCV %mkdir OpenCV-2.1.1 %cd OpenCV-2.1.1 %svn export ﻿https://code.ros.org/svn/opencv/trunk %cd .. %mkdir opencv.bulid %ccmake ../OpenCV-2.1.1/trunk/opencv Compile settings（ccmake -> c(continue)-> t(toggle advanced mode) ) BUILD_EXAMPLES OFF BUILD_LATEX_DOCS OFF BUILD_NEW_PYTHON_SUPPORT ON BUILD_PACKAGE OFF BUILD_SHARED_LIBS ON BUILD_TESTS ON BZIP2_LIBRARIES /usr/lib/libbz2.so CMAKE_AR /usr/bin/ar CMAKE_BACKWARDS_COMPATIBILITY 2.4 [...]]]></description>
			<content:encoded><![CDATA[<h3>Install cmake</h3>
<pre class="brush:shell">
%cd ~/local/src
%wget http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
%tar xvf cmake-2.8.2.tar.gz
%cd cmake-2.8.2
%./bootstrap --prefix=$HOME/local
%make
%make install
</pre>
<h3>Install OpenCV</h3>
<pre class="brush:shell">
%mkdir OpenCV-2.1.1
%cd OpenCV-2.1.1
%svn export ﻿https://code.ros.org/svn/opencv/trunk
%cd ..
%mkdir opencv.bulid
%ccmake ../OpenCV-2.1.1/trunk/opencv
</pre>
<p>Compile settings（ccmake -> c(continue)-> t(toggle advanced mode) )</p>
<pre class="brush:text; highlight: [10, 24,86,89]">
BUILD_EXAMPLES                   OFF
BUILD_LATEX_DOCS                 OFF
BUILD_NEW_PYTHON_SUPPORT         ON
BUILD_PACKAGE                    OFF
BUILD_SHARED_LIBS                ON
BUILD_TESTS                      ON
BZIP2_LIBRARIES                  /usr/lib/libbz2.so
CMAKE_AR                         /usr/bin/ar
CMAKE_BACKWARDS_COMPATIBILITY    2.4
CMAKE_BUILD_TYPE                 RELEASE
CMAKE_COLOR_MAKEFILE             ON
CMAKE_CONFIGURATION_TYPES        Debug;Release
CMAKE_CXX_COMPILER               /usr/bin/c++
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG            -g
CMAKE_CXX_FLAGS_RELEASE          -O3 -DNDEBUG
CMAKE_C_COMPILER                 /usr/bin/gcc
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG              -g
CMAKE_C_FLAGS_RELEASE            -O3 -DNDEBUG
CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_INSTALL_PREFIX             /home/USERNAME/local
CMAKE_LINKER                     /usr/bin/ld
CMAKE_MAKE_PROGRAM               /usr/local/bin/gmake
CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS_DEBU
CMAKE_MODULE_LINKER_FLAGS_RELE
CMAKE_NM                         /usr/bin/nm
CMAKE_OBJCOPY                    /usr/bin/objcopy
CMAKE_OBJDUMP                    /usr/bin/objdump
CMAKE_RANLIB                     /usr/bin/ranlib
CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS_DEBU
CMAKE_SHARED_LINKER_FLAGS_RELE
CMAKE_SKIP_RPATH                 OFF
CMAKE_STRIP                      /usr/bin/strip
CMAKE_USE_RELATIVE_PATHS         OFF
CMAKE_VERBOSE_MAKEFILE           OFF
DOXYGEN_DOT_EXECUTABLE           DOXYGEN_DOT_EXECUTABLE-NOTFOUND
DOXYGEN_EXECUTABLE               DOXYGEN_EXECUTABLE-NOTFOUND
EIGEN2_INCLUDE_PATH              EIGEN2_INCLUDE_PATH-NOTFOUND
ENABLE_PROFILING                 OFF
ENABLE_SSE                       ON
ENABLE_SSE2                      ON
ENABLE_SSE3                      OFF
ENABLE_SSSE3                     OFF
EXECUTABLE_OUTPUT_PATH           /home/USERNAME/local/src/opencv.bulid/bin
INSTALL_C_EXAMPLES               OFF
INSTALL_PYTHON_EXAMPLES          OFF
IPP_PATH                         IPP_PATH-NOTFOUND
JASPER_INCLUDE_DIR               /usr/local/include
JASPER_LIBRARY                   /usr/local/lib/libjasper.so
JPEG_INCLUDE_DIR                 /usr/local/include
JPEG_LIBRARY                     /usr/local/lib/libjpeg.so
LIBRARY_OUTPUT_PATH              /home/USERNAME/local/src/opencv.bulid/lib
OPENCV_BUILD_3RDPARTY_LIBS       OFF
OPENCV_CONFIG_FILE_INCLUDE_DIR   /home/USERNAME/local/src/opencv.bulid
OPENCV_EXTRA_C_FLAGS
OPENCV_EXTRA_C_FLAGS_DEBUG
OPENCV_EXTRA_C_FLAGS_RELEASE
OPENCV_EXTRA_EXE_LINKER_FLAGS
OPENCV_EXTRA_EXE_LINKER_FLAGS_
OPENCV_EXTRA_EXE_LINKER_FLAGS_
OPENCV_WARNINGS_ARE_ERRORS       OFF
OPENEXR_HALF_LIBRARY             OPENEXR_HALF_LIBRARY-NOTFOUND
OPENEXR_IEX_LIBRARY              OPENEXR_IEX_LIBRARY-NOTFOUND
OPENEXR_ILMIMF_LIBRARY           OPENEXR_ILMIMF_LIBRARY-NOTFOUND
OPENEXR_IMATH_LIBRARY            OPENEXR_IMATH_LIBRARY-NOTFOUND
OPENEXR_INCLUDE_PATH             OPENEXR_INCLUDE_PATH-NOTFOUND
PKG_CONFIG_EXECUTABLE            /usr/local/bin/pkg-config
PNG_LIBRARY                      /usr/local/lib/libpng.so
PNG_PNG_INCLUDE_DIR              /usr/local/include
PVAPI_INCLUDE_PATH               PVAPI_INCLUDE_PATH-NOTFOUND
PYTHON_EXECUTABLE                /usr/local/bin/python2.6
PYTHON_INCLUDE_DIR               /usr/local/include/python2.6
PYTHON_LIBRARY                   /usr/local/lib/libpython2.6.so
SVNVERSION_PATH                  /home/USERNAME/local/bin/svnversion
TIFF_INCLUDE_DIR                 /usr/local/include
TIFF_LIBRARY                     /usr/local/lib/libtiff.so
USE_FAST_MATH                    ON
USE_IPP                          OFF
USE_O3                           ON
USE_OMIT_FRAME_POINTER           ON
WITH_1394                        OFF
WITH_CUDA                        OFF
WITH_EIGEN2                      ON
WITH_FFMPEG                      OFF
WITH_GSTREAMER                   ON
WITH_GTK                         ON
WITH_JASPER                      ON
WITH_JPEG                        ON
WITH_OPENEXR                     ON
WITH_PNG                         ON
WITH_PVAPI                       ON
WITH_QT                          OFF
WITH_QT_OPENGL                   OFF
WITH_TBB                         OFF
WITH_TIFF                        ON
WITH_UNICAP                      OFF
WITH_V4L                         ON
WITH_XINE                        OFF
ZLIB_INCLUDE_DIR                 /usr/include
ZLIB_LIBRARY                     /usr/lib/libz.so
</pre>
<p>c(continue) -> g(generate and exit) and exit from ccmake.</p>
<p>fix this source&#8230;</p>
<pre class="brush:shell">
%vi ../OpenCV-2.1.1/trunk/opencv/modules/highgui/src/grfmt_png.cpp
</pre>
<p>About line 50&#8230;</p>
<pre class="brush:cpp; highlight: [2]">
#ifdef HAVE_LIBPNG_PNG_H
#include &lt;png.h&gt;
#else
#include &lt;png.h&gt;
#endif
#include "grfmt_png.hpp"
</pre>
<pre class="brush:shell">
%make
</pre>
<p>If you compile fail, once again,</p>
<pre class="brush:shell">
%make
</pre>
<p>if compile completed, then</p>
<pre class="brush:shell">
%make install
</pre>
<h3>Ready for compile your sources</h3>
<pre class="brush:shell">
%setenv PKG_CONFIG_PATH /home/USERNAME/local/lib/pkgconfig
</pre>
<p>Write this into ~/.cshrc.</p>
<pre class="brush:shell">
%pkg-config --cflags --libs opencv
-I/home/USERNAME/local/include/opencv -I/home/USERNAME/local/include  -L/home/USERNAME/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy
</pre>
<h3>Compile your sources using OpenCV</h3>
<p>test.cpp</p>
<pre class="brush:cpp">

#include &lt;cv.h&gt;
#include &lt;highgui.h&gt;

int
main (int argc, char **argv)
{
  IplImage *src_img = 0, *dst_img;

  if (argc >= 2)
    src_img = cvLoadImage (argv[1], CV_LOAD_IMAGE_GRAYSCALE);
  if (src_img == 0)
    return -1;

  dst_img = cvCreateImage (cvGetSize (src_img), IPL_DEPTH_8U, 1);

  cvSmooth (src_img, src_img, CV_GAUSSIAN, 5);

  cvThreshold (src_img, dst_img, 0, 255, CV_THRESH_BINARY | CV_THRESH_OTSU);

  cvSaveImage( argv[2], dst_img);
  cvReleaseImage (&#038;src_img);
  cvReleaseImage (&#038;dst_img);

  return 0;
}
</pre>
<p>Just compile.</p>
<pre class="brush:shell">
%g++ -v -o test.o test.cpp `pkg-config --cflags --libs opencv ImageMagick++`

Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
/usr/libexec/cc1plus -quiet -v -I/home/USERNAME/local/include/opencv -I/home/USERNAME/local/include -I/usr/local/include/ImageMagick -D_LONGLONG test2.cpp -quiet -dumpbase test2.cpp -auxbase test2 -version -o /var/tmp//cc80L5hQ.s
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include &lt;...&gt; search starts here:
/home/USERNAME/local/include/opencv
/home/USERNAME/local/include
/usr/local/include/ImageMagick
/usr/include/c++/4.2
/usr/include/c++/4.2/backward
/usr/include
End of search list.
GNU C++ version 4.2.1 20070719  [FreeBSD] (i386-undermydesk-freebsd)
compiled by GNU C version 4.2.1 20070719  [FreeBSD].
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 32d3ad82329e6a2b39fccea1ee418a45
/usr/bin/as -o /var/tmp//ccHTucYA.o /var/tmp//cc80L5hQ.s
/usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1 -o test.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/home/USERNAME/local/lib -L/usr/local/lib -L/usr/lib -L/usr/lib /var/tmp//ccHTucYA.o -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lMagick++ -lMagickCore -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
GNU ld version 2.15 [FreeBSD] 2004-05-23
Supported emulations:
elf_i386_fbsd

%./test.o test1.jpg test2.jpg
</pre>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/08/25/opencv2-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ChartExpert 1.0 Released</title>
		<link>http://samurai-apps.com/en/2010/08/22/chartexpert-1-0-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/08/22/chartexpert-1-0-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 14:40:24 +0000</pubDate>
		<dc:creator>munepi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[ChartExpert]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=538</guid>
		<description><![CDATA[samurai-apps released ChartExpert 1.0 today. ChartExpert draws chart collaborated with KaraLog or your apps by using ChartExpert API. See the support page for details.]]></description>
			<content:encoded><![CDATA[<p>samurai-apps released ChartExpert 1.0 today.</p>
<p>ChartExpert draws chart collaborated with KaraLog or your apps by using ChartExpert API.</p>
<p>See <a href="http://samurai-apps.com/en/chartexpert/">the support page</a> for details.</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/08/22/chartexpert-1-0-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karalog 1.1 Released</title>
		<link>http://samurai-apps.com/en/2010/08/14/%e3%81%8b%e3%82%89%e3%83%ad%e3%82%b0-1-1-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/08/14/%e3%81%8b%e3%82%89%e3%83%ad%e3%82%b0-1-1-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 14:24:03 +0000</pubDate>
		<dc:creator>munepi</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=470</guid>
		<description><![CDATA[The latest update of the Karalog ver.1.1.20100804 is now available. The Karalog 1.1 newly supports visualization of weight and fat data by collaborating with &#8220;ChartExpert&#8221;, which is a support app to plot graph/chart. Other improvements are; prohibiting landscape layout, adjusting the sizes of previous/forward buttons, and adding ads space. ChartExpert will be available soon. Release [...]]]></description>
			<content:encoded><![CDATA[<p>The latest update of the <a href="http://samurai-apps.com/karalog">Karalog ver.1.1.20100804</a> is now available.<br />
The Karalog 1.1 newly supports visualization of weight and fat data by collaborating with &#8220;ChartExpert&#8221;, which is a support app to plot graph/chart.</p>
<p>Other improvements are; prohibiting landscape layout, adjusting the sizes of previous/forward buttons, and adding ads space.</p>
<p>ChartExpert will be available soon.<br />
Release notes will be shown in the ads space of the new Karalog. Don&#8217;t miss it.</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/08/14/%e3%81%8b%e3%82%89%e3%83%ad%e3%82%b0-1-1-%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(日本語) iPhone Programming : OpenCV + AVFoundation &#8211; First step of AR</title>
		<link>http://samurai-apps.com/en/2010/08/02/opencv-avfoundation-first-step-of-ar/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/08/02/opencv-avfoundation-first-step-of-ar/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 07:28:05 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[開発者ブログ]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=456</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/08/02/opencv-avfoundation-first-step-of-ar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Android + OpenGL ES 1.0 で必ず設定する項目</title>
		<link>http://samurai-apps.com/en/2010/07/06/android-opengl-es-1-0-%e3%81%a7%e5%bf%85%e3%81%9a%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e9%a0%85%e7%9b%ae/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/07/06/android-opengl-es-1-0-%e3%81%a7%e5%bf%85%e3%81%9a%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e9%a0%85%e7%9b%ae/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 03:59:49 +0000</pubDate>
		<dc:creator>munepi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[開発者ブログ]]></category>
		<category><![CDATA[OpenGL ES]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=375</guid>
		<description><![CDATA[Android開発で、ちょっとキャッチーでレスポンスもよいUIを作ろうと思うと、OpenGL ESの利用は最重要検討事項となります。 OpenGLは、ステートマシン型のアーキテクチャーになっていますが、多くのステートには「デフォルト値」がないようで、設定必須の項目がいくつかあります。 私も新しいプログラムを書くたびにうまく描画されなくてしばし悩みます。 ということで、最低限必要と思われる項目をメモっておきます。 (GL10対応です) ビューポートの設定 glViewport() : スクリーンのうち、描画に使われる範囲を、ピクセルで指定する 射影行列の設定 GLU.gluPerspective(), GLU.gluOrtho2D()など 必要に応じて glMatrixMode(GL10.GL_PROJECTION), glLoadIdentity()  を先に呼び出す 頂点配列/インデックス配列利用の設定 glEnableClientState(GL10.GL_VERTEX_ARRAY) : OpenGL ESでは頂点配列が必須なので、この設定は必須 描画 glClearColor() : カラーバッファ消去時に塗りつぶしに使う色をセットする glClear() : カラーバッファ or/and デプスバッファを消去する glVertexArray() : 頂点配列をセットする glDrawArrays() : セット済みの頂点配列で、線分/三角形を描画する glDrawElements() : セット済みの頂点配列と、インデックス配列を使って、線分/三角形を描画する]]></description>
			<content:encoded><![CDATA[<p>Android開発で、ちょっとキャッチーでレスポンスもよいUIを作ろうと思うと、OpenGL ESの利用は最重要検討事項となります。</p>
<p>OpenGLは、ステートマシン型のアーキテクチャーになっていますが、多くのステートには「デフォルト値」がないようで、設定必須の項目がいくつかあります。<br />
私も新しいプログラムを書くたびにうまく描画されなくてしばし悩みます。</p>
<p>ということで、最低限必要と思われる項目をメモっておきます。<br />
(GL10対応です)</p>
<h4>ビューポートの設定</h4>
<ul>
<li>glViewport() : スクリーンのうち、描画に使われる範囲を、ピクセルで指定する</li>
</ul>
<h4>射影行列の設定</h4>
<ul>
<li>GLU.gluPerspective(), GLU.gluOrtho2D()など</li>
<li>必要に応じて glMatrixMode(GL10.GL_PROJECTION), glLoadIdentity()  を先に呼び出す</li>
</ul>
<h4>頂点配列/インデックス配列利用の設定</h4>
<ul>
<li>glEnableClientState(GL10.GL_VERTEX_ARRAY) : OpenGL ESでは頂点配列が必須なので、この設定は必須</li>
</ul>
<h4>描画</h4>
<ul>
<li>glClearColor() : カラーバッファ消去時に塗りつぶしに使う色をセットする</li>
<li>glClear() : カラーバッファ or/and デプスバッファを消去する</li>
<li>glVertexArray() : 頂点配列をセットする</li>
<li>glDrawArrays() : セット済みの頂点配列で、線分/三角形を描画する</li>
<li>glDrawElements() : セット済みの頂点配列と、インデックス配列を使って、線分/三角形を描画する</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/07/06/android-opengl-es-1-0-%e3%81%a7%e5%bf%85%e3%81%9a%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e9%a0%85%e7%9b%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>隠レター　公開開始</title>
		<link>http://samurai-apps.com/en/2010/06/12/invisiletter/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/06/12/invisiletter/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:13:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[隠レター]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=350</guid>
		<description><![CDATA[samurai-appsは本日，「隠レター」をリリースしました． ご自分の写真に秘密の画像を埋め込めると言うものです．６月２５日までは無料で配布しておりますので，ダウンロードして頂き，ぜひご感想をお寄せください． 詳しくはこちらから！]]></description>
			<content:encoded><![CDATA[<div>
<p>samurai-appsは本日，「隠レター」をリリースしました． ご自分の写真に秘密の画像を埋め込めると言うものです．６月２５日までは無料で配布しておりますので，ダウンロードして頂き，ぜひご感想をお寄せください． <a href="http://samurai-apps.com/ja/invisiletter/">詳しくはこちらから！</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/06/12/invisiletter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calolog FREE 公開開始</title>
		<link>http://samurai-apps.com/en/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/en/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 00:48:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[カロログ]]></category>
		<category><![CDATA[Diet]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=129</guid>
		<description><![CDATA[ご好評いただいているCalolog(カロログ)の無料配布版を本日，公開しました． 機能的な制限はありませんが，広告が出ます． 今後ともsamurai-appsをよろしくお願い申し上げます． Calolog FREE (iTunes)]]></description>
			<content:encoded><![CDATA[<p>ご好評いただいている<a href="http://samurai-apps.com/calolog/">Calolog(カロログ)</a>の無料配布版を本日，公開しました．</p>
<p>機能的な制限はありませんが，広告が出ます．</p>
<p>今後ともsamurai-appsをよろしくお願い申し上げます．</p>
<p><a href="http://itunes.apple.com/jp/app/calolog-free/id361679749?mt=8">Calolog FREE (iTunes)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/en/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

