<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7541893048189678829</id><updated>2024-09-10T17:33:01.670+03:00</updated><category term="opensuse"/><category term="linux"/><category term="QT"/><category term="Visual C++"/><category term="android"/><category term="cuda"/><category term="C++"/><category term="C++. programming errors"/><category term="Microsoft Visual Studio 2005"/><category term="Open Source"/><category term="Programming"/><category term="VS 2005"/><category term="Windows"/><category term="YaST"/><category term="anaconda"/><category term="centos"/><category term="dns"/><category term="implus"/><category term="intel 5150"/><category term="intel composer"/><category term="nvidia"/><category term="rhel"/><category term="suse"/><category term="wifi"/><title type='text'>/var/log/messages</title><subtitle type='html'>my recent work, usefull advises for beginners,  reviews</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-5429542402374109760</id><published>2013-12-17T15:47:00.000+04:00</published><updated>2014-03-20T22:17:35.652+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>fixing Sony Xperia SP sudden music stops and other sound problems</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1. The most common problem in Xperia devices: music playing sudenly stops while browsing with chrome or other browser. Pressing &quot;pause/play&quot; button does not help, have to restart the player. Happens in all players, including Walkman. Most common solution is to do a clean firmware reinstall.&lt;br /&gt;
&lt;br /&gt;
Steps:&lt;br /&gt;
1) backup everything (i use Titanium Backup pro, root required)&lt;br /&gt;
2) download Sony Update Services tool: &amp;nbsp;&lt;a href=&quot;http://www.sonymobile.com/gb/tools/update-service/&quot;&gt;http://www.sonymobile.com/gb/tools/update-service/&lt;/a&gt;&lt;br /&gt;
3) run it, follow the steps on screen&lt;br /&gt;
4) wait for applications to auto-reinstall, restore your backup users data, enjoy.&lt;br /&gt;
&lt;br /&gt;
UPDATE: &amp;nbsp;it helped only for a while. after i some useage, especially, the software reinstall, the problems repeat. V6 SUPERCHARGE script did not help either. Only option is to use OperaMini.&lt;br /&gt;
&lt;br /&gt;
2. Second most annoying problem, is not sufficient music volume in headphones. Most people say, that is done by manufacturer on purpose due to some law and sanitary restrictions to prevent ear damage. Well, if you are no afraid of ear damage, you may try apps like Volume+ (Sound Boost) in Play Market. (needs root) -- results vary. Personally I used this:&amp;nbsp;&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=2370047&amp;amp;highlight=volume+boost&quot;&gt;http://forum.xda-developers.com/showthread.php?t=2370047&amp;amp;highlight=volume+boost&lt;/a&gt;&amp;nbsp;. But the next thing works also good.&lt;br /&gt;
&lt;br /&gt;
3. Music &amp;nbsp;sound enhancer: I recomend Viper4Android (root required, /system remount fix also needed):&amp;nbsp;&lt;a href=&quot;http://vipersaudio.com/blog/&quot;&gt;http://vipersaudio.com/blog/&lt;/a&gt;, far better than anything built in. Install the driver in normal mode, use &quot;force&quot; install, plug in the headphones, go into Settings -&amp;gt; Sound -&amp;gt; Sound Effect and choose Viper4Android. Afterwards it works in every player app you have. If the phone spontanously reboots, see the /system fix below.&lt;br /&gt;
&lt;br /&gt;
4. Folder play: Walkman is neat, but it cannot play music by folders. Use &quot;Rocket Player&quot; (more feature rich) or &quot;FolderPlayer&quot; (simplier, faster) instead. MX video player is beast for video.&lt;br /&gt;
&lt;br /&gt;
Otherwise, its a great device! The first time i do not want to experiment with firmwares. Besides, Android 4.3 and Android 4.4&amp;nbsp;official&amp;nbsp;updates are promised! Tested its LTE with Russian BeeLine provider -- great speed!&lt;br /&gt;
&lt;br /&gt;
Prerequisites for the above:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;root:&amp;nbsp;&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=2405933&quot;&gt;http://forum.xda-developers.com/showthread.php?t=2405933&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;/system rw remont fix: &amp;nbsp;&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=2317432&quot;&gt;http://forum.xda-developers.com/showthread.php?t=2317432&lt;/a&gt;&amp;nbsp; -- that is the most frequent reason for sudden device reboots for most Xperia devices. Fixes the Viper4Android issues as well&lt;/li&gt;
&lt;li&gt;FlashTool:&amp;nbsp;&lt;a href=&quot;http://www.flashtool.net/download.php&quot;&gt;http://www.flashtool.net/download.php&lt;/a&gt;&amp;nbsp;- required for above.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
Other info:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;xda: &amp;nbsp;&lt;a href=&quot;http://forum.xda-developers.com/xperia-sp&quot;&gt;http://forum.xda-developers.com/xperia-sp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;xperia blog: &amp;nbsp;&lt;a href=&quot;http://www.xperiablog.net/&quot;&gt;http://www.xperiablog.net&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;UPDATE 20.03.2014:&lt;/b&gt; &amp;nbsp;I hoped that update to v&lt;strong style=&quot;background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;12.1.A.0.266&lt;/strong&gt;&amp;nbsp;with Android version 4.3 would&#39;ve solved first to problems, but it didnt&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/5429542402374109760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/5429542402374109760' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/5429542402374109760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/5429542402374109760'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2013/12/fixing-sony-xperia-sp-sudden-music.html' title='fixing Sony Xperia SP sudden music stops and other sound problems'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-8132928380958549641</id><published>2013-11-27T03:31:00.005+04:00</published><updated>2013-12-15T00:30:59.185+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><title type='text'>Cuda 5.5 on OpenSUSE 13.1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Seems to work OK. Although it is not supported officially. The default compiler in OpenSuSE is gcc-4.8.1&lt;br /&gt;
&lt;br /&gt;
All you have to do is:&lt;br /&gt;
&lt;br /&gt;
1) install NVIDIA drivers (from a repository via YaST or manually from .run file)&lt;br /&gt;
2) download CUDA v5.5 as &quot;run&quot; file, not as &quot;rpm&quot;.&lt;br /&gt;
3) run installer as&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;./cuda_5.5.22_linux_64.bin -toolkit -samples -override&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
no additional fixes needed, samples compile and run just fine. Have Fun!&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/8132928380958549641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/8132928380958549641' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/8132928380958549641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/8132928380958549641'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2013/11/cuda-55-on-opensuse-131.html' title='Cuda 5.5 on OpenSUSE 13.1'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-897767979772864995</id><published>2013-03-22T09:53:00.003+04:00</published><updated>2013-04-07T17:23:35.417+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="intel composer"/><category scheme="http://www.blogger.com/atom/ns#" term="QT"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C++"/><title type='text'>QT-Creator 2.6 with Intel Compiler </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently i started developing a heavy-calculations application, which required iMKL, so that i decided to use Intel &amp;nbsp;C++ Composer as well, both in Linux and in Windows. I also decided to use QT-creator as my primary IDE for GUI development, although i kept using other IDE-s (VS, Eclispe) for tests.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;1) Linux experience:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I used OpenSuSE 12.3, that comes with &amp;nbsp;qt4-devel v 4.8.4 and qtcreator 2.6 packages. Intel says that it does not support opensuse, and installer refuses to work, so a little override is required. How to install Intel Composer 2013 on OpenSuSE 12.3&lt;/div&gt;
&lt;div&gt;
1) unpack the Intel Composer (or Parallel Studio), and go into the unpacked distribution folder&lt;br /&gt;
2) edit &amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;silent.cfg&lt;/b&gt;&lt;/span&gt; file -- set the correct serial number or license information, set &lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;INSTALL_MODE=RPM&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
3) run &amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;./install --silent silent.cfg&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
4) If you use Eclipse CDT, dont forget to add Intel Integrations for Eclipse CDT (&lt;a href=&quot;http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/debugger/user_guide/GUID-B74312A7-4771-40FA-B35B-B8B2A49083E4.htm&quot;&gt;here&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Open Qt-Creator,&lt;br /&gt;
1) open &lt;b&gt;Menu -&amp;gt; Tools -&amp;gt; Options -&amp;gt; Build&amp;amp;Run -&amp;gt; Compilers&lt;/b&gt; press &quot;Add&quot; and select &quot;Linux ICC&quot;.&lt;br /&gt;
2) go to &quot;&lt;b&gt;Kits&lt;/b&gt;&quot; options tab, select the default &quot;Desktop&quot; toolkit, press &quot;Clone&quot;,&lt;br /&gt;
3) set its compiler to the ICC selected from above&lt;br /&gt;
4) set mkspecs filename to &lt;b&gt;linux-icc&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
now the helloworld should build and run, and GDB should work as debugger. At least it stops on breakpoints.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;2) Windows experience - with Visual Studio:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You are supposed to have VisualStudio in order to use Intel C++ Composer. So far I tested with VS 2012. &amp;nbsp;Also, my application was 64bit only, and, for compatibility reasons, i decided to stick with QT-4.8.4.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It could work with pre-compiled Qt-4.8 built with vs2010, but since i needed 64bit application, i had to compile it myself. Open the according 64-bit VisualStudio compiler command prompt, go to QT sources and build them as usual:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
configure -prefix C:/install/path&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
nmake&lt;/div&gt;
&lt;div&gt;
nmake install&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now you need to setup an Intel toolchain within QtCreator. For some reason it does not allow it to do in GUI, so a trick is required.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
1. Go to &lt;b&gt;Menu-&amp;gt; Parameters-&amp;gt; Build and Run -&amp;gt; Compilers&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
2. Select the according VS compiler, the same you used to compile your QT with. and press &quot;&lt;b&gt;Clone&lt;/b&gt;&quot; button. Rename the new compiler toolchain.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
3. We will need to change it&#39;s path to initialization .bat file, but the GUI does not allow to do it, and we have to do it manually in config files. Open the file Explorer and go to &amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;%AppData%\QtProject\qtcreator&lt;/b&gt;&lt;/span&gt; &amp;nbsp;folder (just copy-paste it into address bar) and open the toolchains.xml file with your favorite editor. It is an XML file that consist of &lt;data&gt;...&lt;/data&gt; entries. Find the entry which correponds to the toolchain copy &amp;nbsp;that you created previously. (Normally, It should be the one with the largest&amp;nbsp;&lt;variable&gt;ToolChain.N&lt;/variable&gt; number.) And replace the &amp;nbsp; &amp;nbsp; &amp;lt;value key=&quot;ProjectExplorer.MsvcToolChain.VarsBat&quot; type=&quot;QString&quot;&amp;gt; and &amp;nbsp;&amp;lt;value key=&quot;ProjectExplorer.MsvcToolChain.VarsBatArg&quot; type=&quot;QString&quot;&amp;gt; lines with the following values:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;value key=&quot;ProjectExplorer.MsvcToolChain.VarsBat&quot; type=&quot;QString&quot;&amp;gt;c:\Program Files (x86)\Intel\Composer XE\bin\compilervars.bat&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;value key=&quot;ProjectExplorer.MsvcToolChain.VarsBatArg&quot; type=&quot;QString&quot;&amp;gt;intel64 vs2012shell&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
See the compilervars.bat itself for details. Note, that you should set the VarsBatArgs value according to you compiler version and platform.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. Create a new &quot;Toolkit&quot;.&lt;/div&gt;
&lt;div&gt;
Go to Menu-&amp;gt;Parameters-&amp;gt;Kits&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Add the one you have, if it is still absent. It is configured to work with the same compiler that was used to build it. Now press the &quot;Duplicate&quot; button, and rename the new option for your convenience. In its properties change the compiler to the intel toolchain, created previously, and set mkspecs option to &lt;b&gt;win32-icc&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now select this toolkit in the project properties. The sample helloworld project should compile and run just fine. However, it is possible, that the debugger is still not working - it never stops on breakpoints. To fix this go to QT installation folder and open the &lt;b&gt;mkspecs/win32-icc/qmake.conf&lt;/b&gt; file.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
find the &amp;nbsp; &lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;QMAKE_CFLAGS_DEBUG&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= -Zi -MDd -O2&lt;/span&gt;&lt;/b&gt; &amp;nbsp;line, and change -O2 parameter to -Od so that it looks like:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;QMAKE_CFLAGS_DEBUG&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= -Zi -MDd -Od &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
(UPD: seems like the latest versions already have this fixed)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So now the debugging should work as well, at least it stops on breakpoints!.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3) Visual Studio Express Edition notes:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;If you only have Visual Studio Express edition , you may encounter &quot;&lt;b&gt;Visual Studio is not found in the system&lt;/b&gt;&quot; error when launching Intel 64 command prompt from Start menu. It is said that Express Edition does not support the Composer integration, so we only can use the Command Prompt to build applications. That is OK with me since i wanted to use QtCreator for development.&lt;br /&gt;
&lt;br /&gt;
For most cases see: &amp;nbsp;&lt;a href=&quot;http://software.intel.com/en-us/articles/error-visual-studio-2005-2008-or-2010-is-not-found-in-the-system-when-launching-intel-64&quot;&gt;http://software.intel.com/en-us/articles/error-visual-studio-2005-2008-or-2010-is-not-found-in-the-system-when-launching-intel-64&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
I have only Visual Studio 2012 Express edition for Windows Desktop, so I did the following:&lt;br /&gt;
&lt;br /&gt;
1) locate &lt;b&gt;compilervars_arch.bat&lt;/b&gt; file in &amp;nbsp;&lt;b&gt;c:\Program Files (x86)\Intel\Composer XE\bin\ &amp;nbsp;&lt;/b&gt;and open it for editing.&lt;br /&gt;
2)&lt;br /&gt;
locate the following strings:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;::VS2012&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;if /i &quot;%TARGET_VS%&quot;==&quot;vs2012&quot; (&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; if defined VS110COMNTOOLS (&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; if exist &quot;%VS110COMNTOOLS%..\IDE\devenv.exe&quot; (&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if exist &quot;%VS110COMNTOOLS%..\..\VC\vcvarsall.bat&quot; (&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set MSVS_VAR_SCRIPT=&quot;%VS110COMNTOOLS%..\..\VC\vcvarsall.bat&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;goto Calls&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
and promptly after them add the following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; if exist &quot;%VS110COMNTOOLS%..\IDE\WDExpress.exe&quot; (&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if exist &quot;%VS110COMNTOOLS%..\..\VC\vcvarsall.bat&quot; (&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set MSVS_VAR_SCRIPT=&quot;%VS110COMNTOOLS%..\..\VC\vcvarsall.bat&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if /i &quot;%TARGET_ARCH%&quot;==&quot;intel64&quot; set TARGET_VS_ARCH=x86_amd64&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; echo &quot;VS 2012 express for Desktop found&quot;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;goto Calls&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;


just before the&lt;b&gt;&amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;if exist &quot;%VS110COMNTOOLS%..\IDE\VSWinExpress.exe&lt;/span&gt;&quot;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt; &lt;/span&gt;&amp;nbsp;&lt;/b&gt;string.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/897767979772864995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/897767979772864995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/897767979772864995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/897767979772864995'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2013/03/qt-creator-26-with-intel-compiler.html' title='QT-Creator 2.6 with Intel Compiler '/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-4613747566058581441</id><published>2013-03-15T00:51:00.003+04:00</published><updated>2013-03-15T00:57:25.950+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><title type='text'>Running NVidia CUDA SDK 5.0 on OpenSuSE 12.3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There is a number of difficulties installing NVIDIA CUDA SDK 5.0 onto OpenSUSE 12.3. The major reason that it does not support &amp;nbsp;gcc 4.7.2 compiler that is distribution&#39;s default. There is a number of ways to overcome it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. install drivers.&lt;/b&gt; You may use packages from &amp;nbsp;OpenSUSE&#39;s &lt;a href=&quot;http://en.opensuse.org/SDB:NVIDIA_drivers&quot;&gt;NVidia repository&lt;/a&gt; or use the ones that come with cuda-sdk package. Both cases work fine, just make sure your driver&#39;s version maches the requirement.&lt;br /&gt;
&lt;div&gt;
There may be a problem with missing libraries, like&amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;libglut.so&lt;/b&gt;&lt;/span&gt;, just fix them with appropriate symlinks in your&amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/usr/lib64&lt;/span&gt;&lt;/b&gt;&amp;nbsp;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;2. install cuda-sdk.&lt;/b&gt; Get the package from&amp;nbsp;&lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;https://developer.nvidia.com/cuda-downloads&lt;/a&gt;. I used version for openSuSE 12.1. Install as superuser it with the following options:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;su -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;./cuda_5.0.35_linux_64_suse12.1-1.bin -toolkit -samples -override&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
These options disable installation of NVidia drivers and skip the dependency &amp;nbsp;checks.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Consider you&#39;ve installed it into its default directory, i.e. &lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/usr/local/cuda-5.0&lt;/span&gt;&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
(for other options see&amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;./cuda_5.0.35_linux_64_suse12.1-1.bin --help&lt;/span&gt;)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Go to this directory, and do the following&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;3. disable GCC version check:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
open &amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/usr/local/cuda-5.0&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/include/host_config.h &lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
find&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;#if __GNUC__ &amp;gt; 4 || (__GNUC__ == 4 &amp;amp;&amp;amp; __GNUC_MINOR__ &amp;gt; 6)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
and replace it with&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;#if __GNUC__ &amp;gt; 4 || (__GNUC__ == 4 &amp;amp;&amp;amp; __GNUC_MINOR__ &amp;gt; 7)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
That alone won&#39;t help, and if you try to compile the samples you&#39;ll most likely get compile time errors like:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
/usr/include/c++/4.7/ext/atomicity.h(48): error: identifier &quot;__atomic_fetch_add&quot; is undefined&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
/usr/include/c++/4.7/ext/atomicity.h(52): error: identifier &quot;__atomic_fetch_add&quot; is undefined&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;4. To disable there &quot;__atomic_fetch_add is undefined&quot; compiler errors:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You have to include commands like &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;#undef _GLIBCXX_ATOMIC_BUILTINS&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;#undef _GLIBCXX_USE_INT128&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
into beginning of you .cu file or put them into a separate include file. Lets put them into&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/usr/local/cuda-5.0&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/include/__cuda_gcc47_fix.h&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
or other name you like. Now you may compile a hello world application with&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;nvcc --pre-include&amp;nbsp;__cuda_gcc47_fix.h&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;command&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
in order to have the whole &quot;samples&quot; directory compile with default makefiles, lets do a little trick.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
save nvcc binary into a separate file, and create a small wrapper script with the following commands:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;cd /usr/local/cuda-5.0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;mv bin/nvcc bin/nvcc.bin&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;echo &#39;#!/bin/sh&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$0.bin --pre-include&amp;nbsp;__cuda_gcc47_fix.h&amp;nbsp;$@&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;gt; bin/nvcc&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;chmod +x bin/nvcc&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
After that the whole samples directory should compile without errors. (check for mpicxx to work in order to build some samples). Warnings on delegating contructors may be ignored.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
I guess the same steps may apply to other Linux distributions with gcc 4.7, like Ubuntu 12.10 and etc, that it How to make nVidia cuda sdk 5.0 to work with gcc 4.7&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/4613747566058581441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/4613747566058581441' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/4613747566058581441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/4613747566058581441'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2013/03/running-nvidai-cuda-sdk-50-on-opensuse.html' title='Running NVidia CUDA SDK 5.0 on OpenSuSE 12.3'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-712260997486380566</id><published>2011-11-27T20:19:00.008+04:00</published><updated>2011-11-27T21:29:16.996+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="implus"/><title type='text'>IM+ messenger accounts migration in Android</title><content type='html'>I have got a nice HTC-Desire smartphone recently. After 6 months playing with it, I desided to change the firmware, i used the famous ruHD-rom, with ext-partition on SD card useing the &quot;unrevoked&quot; toolset. Next, i used &quot;Revolutionary&quot; to S-OFF, and now i can do whatever i want with my phone. &lt;br /&gt;&lt;br /&gt;CAUTION: use &quot;rooting&quot; and &quot;S-OFF&quot; only if you know what you DO !!! &lt;br /&gt;&lt;br /&gt;Now, a small example, where having a &quot;rooted&quot; phone helps: &lt;br /&gt;&lt;br /&gt;Recently, i used &lt;a href=&quot;http://www.shapeservices.com/en/products/details.php?product=im&amp;platform=none&quot;&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ lite&lt;/span&gt;&lt;/a&gt; multiprotocol messenger, which proved to be the best of its kind. (maybe &lt;a href=&quot;http://utalk.su/ru/&quot;&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;U-talk&lt;/span&gt;&lt;/a&gt; can compare...) I liked it, so i decided to by the &quot;advanced&quot; &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ pro&lt;/span&gt; -- it&#39;s worth it&#39;s money. &lt;br /&gt;&lt;br /&gt;The only dissapointment was that &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ lite&lt;/span&gt; and &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ pro&lt;/span&gt; are two different applications, so non of the contacts from &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ lite&lt;/span&gt; got imported into &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ pro&lt;/span&gt;. I was too lazy to manually re-enter all accounts from all IMs, so i looked for a option to &quot;migrate&quot;, and here it is (tried on IM+ version 5.0.2): &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Task:&lt;/span&gt; How to import account settings from &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ lite&lt;/span&gt; (aka implusfree) into &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ pro&lt;/span&gt; (aka implusfull). &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Prerequisites:&lt;/span&gt; rooted device, your favorite file manager in &quot;root mode&quot; (like &lt;span style=&quot;font-weight:bold;&quot;&gt;ES File Explorer&lt;/span&gt;), &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ lite&lt;/span&gt; and &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+ pro&lt;/span&gt; installed. &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Actions&lt;/span&gt;: &lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt; Close IM+ and IM+ pro. Make sure they are not running (use your favorite task manager)&lt;br /&gt;&lt;li&gt; Make have you file explorer into &quot;root&quot; mode. Navigate to &lt;span style=&quot;font-weight:bold;&quot;&gt;/data/data/de.shapeservices.implusfree/databases&lt;/span&gt;. &lt;br /&gt;&lt;li&gt;Copy file &lt;span style=&quot;font-weight:bold;&quot;&gt;IMPLUS_DB&lt;/span&gt; into &lt;span style=&quot;font-weight:bold;&quot;&gt;/data/data/de.shapeservices.implusfull/databases&lt;/span&gt;&lt;br /&gt;&lt;li&gt;Now, start &lt;span style=&quot;font-weight:bold;&quot;&gt;Im+ pro&lt;/span&gt;, and make sure you accounts are in place. (facebook may need to re-authorise). After that remove &lt;span style=&quot;font-weight:bold;&quot;&gt;IM+lite&lt;/span&gt; &lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;br /&gt;PS: I think that IM+ accounts setting export between devices works the same way.</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/712260997486380566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/712260997486380566' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/712260997486380566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/712260997486380566'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2011/11/im-messenger-accounts-migration-in.html' title='IM+ messenger accounts migration in Android'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-1418389726373326377</id><published>2010-01-27T02:24:00.006+03:00</published><updated>2010-02-03T01:42:50.022+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="intel 5150"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="suse"/><category scheme="http://www.blogger.com/atom/ns#" term="wifi"/><title type='text'>intel 5150 wifi in OpenSuSE linux 11.2 in WPA mode</title><content type='html'>I have a nice netbook Lenovo S10-2 with &lt;span style=&quot;font-weight:bold;&quot;&gt;Intel Wifi/Mimax 5150&lt;/span&gt; builtin adapter. When i  started playing with it, I installed &lt;span style=&quot;font-weight:bold;&quot;&gt;OpenSuSE 11.2 &lt;/span&gt;(among others, including even MacOS X!). The result was: ALMOST everything working out of the box, even KDE4 was nice! Except for the mentioned Intel 5150 card. Actually, wifi worked, but only unsecure version. &lt;br /&gt;&lt;br /&gt;The following steps helped me to fix it: &lt;br /&gt;1) in &lt;span style=&quot;font-weight:bold;&quot;&gt;YaST&lt;/span&gt; (Start-&gt;Computer-&gt;Yast) start &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Software Repositories&quot;&lt;/span&gt;, then &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Add&quot;&lt;/span&gt;, &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;by URL&quot;&lt;/span&gt;,  enter URL:&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;http://download.opensuse.org/repositories/driver%3a/wireless/11.2-update/&lt;/span&gt;&lt;br /&gt;and some name for the repository. then &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;OK&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2) in &lt;span style=&quot;font-weight:bold;&quot;&gt;YaST&lt;/span&gt; start &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Software Manager&quot;&lt;/span&gt; and look for &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;iwl-5150-ucode&quot;&lt;/span&gt; package, and mark it for installation, Also, do all the software update by selecting menu &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Package -&gt; All Packages -&gt; Update if newer version available&quot;&lt;/span&gt;, make sure that you have &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;kernel-firmware&quot;&lt;/span&gt;, &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;compat-wireless-experimental-kmp-...&quot;&lt;/span&gt;, &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;iflugd&quot; &lt;/span&gt;and all &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;NetworkManager&quot;&lt;/span&gt; packages selected, then click &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Accept&quot;&lt;/span&gt; to install . &lt;br /&gt;&lt;br /&gt;3) reboot&lt;br /&gt;&lt;br /&gt;4) make sure that your network settings are managed by &quot;Network manager&quot; and in KDE you have &quot;Network Manager&quot; started (usually, it should be like that by default). &lt;br /&gt;&lt;br /&gt;5) In network manager applet menu (should be in system tray), select &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;enable wireless&quot;&lt;/span&gt; menu. Soon, a list of available Wifi hotpots should appear right in the network-manager applet menu. Simply click on one, and enter WPA password when asked to. If not, go to &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;Connect to other network&quot;&lt;/span&gt;,and select a network from list, or click &quot;New ad-hoc network&quot; and search for appropriate SSID in there. &lt;br /&gt;&lt;br /&gt;Good night and good luck.</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/1418389726373326377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/1418389726373326377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/1418389726373326377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/1418389726373326377'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2010/01/intel-5150-wifi-in-opensuse-linux-112.html' title='intel 5150 wifi in OpenSuSE linux 11.2 in WPA mode'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-4136697808788961450</id><published>2009-02-03T23:57:00.004+03:00</published><updated>2009-02-04T00:16:12.393+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="anaconda"/><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><category scheme="http://www.blogger.com/atom/ns#" term="rhel"/><category scheme="http://www.blogger.com/atom/ns#" term="YaST"/><title type='text'>Anaconda vs YaST -- install on mdadm RAID volumes</title><content type='html'>Recently i had a possibility to compare both. &lt;br /&gt;One of my clients depends on RHEL, so I installed CentOS 5.2 for them. There were usual 2xquad-core-Xeon servers, with a cheap SATA controller, so the only option for me was creating mdadm RAID volumes. Another of my clients had similar server, but they had no preferences, so i installed OpenSuSE 11.1 there. &lt;br /&gt;&lt;br /&gt;both installers (i mean, both YaST and Anaconda) could not present me GUI to allow me to do things that i wanted to. But, frankly speaking, YaST allows more fine tuning of RAID volumes being created. For example, in YaST i could manually specify size of chunk. However, YaST did not allow me to create RAID10 volume. I did the following: I rebooted from OpenSuSE 11.1 install disk in rescue mode, and made myself a needed configuration with &lt;span style=&quot;font-weight:bold;&quot;&gt;sfdisk&lt;/span&gt; and &lt;span style=&quot;font-weight:bold;&quot;&gt;mdadm&lt;/span&gt; commands. Then i rebooted into installer, YaST found all volumes that i created, and pointed which filesystems to create there, and was successfull. In Anaconda, i could not do such a trick. For some reason, it did not allow me to use existing RAID volumes. I always resulted in &quot;/dev/sdd4 device or resource busy&quot; error. The only option that helped was: &lt;br /&gt;deleting whole partition table with &lt;span style=&quot;font-weight:bold;&quot;&gt;parted mklabel&lt;/span&gt; command, and then re-create them in installer. &lt;br /&gt;&lt;br /&gt;Another feature that made me a complete YaST zealot is possibility to create YaST modules myself. Once upon a time i used it to fix user management routines on LDAP+KOLAB+SAMBA PDC machine.  I cant imagine a good way to do it for Anaconda.&lt;br /&gt;&lt;br /&gt;as a result: Anaconda sucks!</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/4136697808788961450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/4136697808788961450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/4136697808788961450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/4136697808788961450'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2009/02/anaconda-vs-yast-install-on-mdadm-raid.html' title='Anaconda vs YaST -- install on mdadm RAID volumes'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-7812409299482279082</id><published>2008-08-07T02:05:00.004+04:00</published><updated>2008-08-07T02:11:34.406+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dns"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><title type='text'>.local domain name tweaks</title><content type='html'>Lately i suffered from a incompatible DNS zone name condition in my openSuSE 11. &lt;br /&gt;I set up a small network, with &quot;lab.local&quot; internal DNS zone. nslookup,dig,host and other DNS utilities resolved names in it fine, but ping,gethostip and other gethostname()-derived apps didnot. &lt;br /&gt;The reason was the feature of the current resolver algorithm in linux. &lt;br /&gt;in order to fix it I had to add  &quot;mdns off&quot; line into /etc/host.conf.&lt;br /&gt;&quot;man host.conf&quot; !</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/7812409299482279082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/7812409299482279082' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/7812409299482279082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/7812409299482279082'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2008/08/local-domain-name-tweaks.html' title='.local domain name tweaks'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-948213441674297880</id><published>2008-07-10T01:23:00.011+04:00</published><updated>2008-07-10T01:56:27.126+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++. programming errors"/><title type='text'>C++ common errors</title><content type='html'>Collection of my favorite C++  errors.&lt;br /&gt;&lt;br /&gt;1) incorrect typecast:&lt;br /&gt;&lt;blockquote2&gt;double p = 0.3333;&lt;br /&gt;int N = 50000,  m=30000&lt;br /&gt;int dn =  (int)p*M-m; &lt;/blockquote2&gt;2) signed - unsigned integer improper use:    &lt;br /&gt;&lt;blockquote2&gt;unsigned int X=45;&lt;br /&gt;double x = -Х*0.5;&lt;br /&gt;x == ???&lt;/blockquote2&gt;3)  template misuse:&lt;br /&gt;&lt;blockquote2&gt;class Base {}&lt;br /&gt;class Derived : public Base {}&lt;br /&gt;&lt;br /&gt;std::vector&amp;lt;Base&amp;gt; v;&lt;br /&gt;Derived d;&lt;br /&gt;v.push_back(d); &lt;/blockquote2&gt;and the last one, my favorite:&lt;br /&gt;&lt;blockquote2&gt;double  p = 2/3; &lt;/blockquote2&gt;Happy coding!</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/948213441674297880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/948213441674297880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/948213441674297880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/948213441674297880'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2008/07/c-common-errors.html' title='C++ common errors'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7541893048189678829.post-1424887629200143264</id><published>2008-01-30T17:19:00.000+03:00</published><updated>2008-12-10T02:43:51.921+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Visual Studio 2005"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="QT"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual C++"/><category scheme="http://www.blogger.com/atom/ns#" term="VS 2005"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Visual C++ 2005 project using QT and qmake</title><content type='html'>Recently, one may find lots of &lt;a href=&quot;http://www.kdedevelopers.org/node/3235&quot;&gt;rumours&lt;/a&gt; about future acvisition of Trolltech by Nokia.&lt;br /&gt;I would&#39;nt worry much about it. QT is GPL, and that means, we will always have it around.&lt;br /&gt;&lt;br /&gt;Recently,  i started some QT development, and previously i was doing it in my favorite OpenSuSE environment, using KDevelop 3.5. Untill I started to do some really hardcore programming, utilizilng lost of &lt;a href=&quot;http://boost.org/&quot;&gt;BOOST&lt;/a&gt; and Computational Geometry (&lt;a href=&quot;http://www.cgal.org/&quot;&gt;CGAL&lt;/a&gt;). I found out, that Visual C++ 2005 has more comfortable Debugger, so i decided to switch my development back to Windows XP (thanx to MSDN AA) and VC++ 2005.&lt;br /&gt;&lt;br /&gt;As you might already know, the &lt;a href=&quot;http://trolltech.com/developer/downloads/qt/windows&quot;&gt;&quot;official&quot;OpenSource version  of QT/Windows&lt;/a&gt;  supports only MinGW GCC, which sucks. Previously, one had to use some magick &lt;a href=&quot;http://qtwin.sourceforge.net/qt3-win32/index.php&quot;&gt;patches&lt;/a&gt; (here is an instruction: &lt;a href=&quot;http://qtnode.net/wiki?title=Qt4_with_Visual_Studio&quot;&gt;how to patch QT to work with Visual C++ 2005&lt;/a&gt;) . Last time i tried to use them, i had non-working binaries in &quot;Release&quot; configuration. But the salvation came unexpectedly from &lt;a href=&quot;http://www.kde.org/&quot;&gt;KDE project&lt;/a&gt;, with their release of &lt;a href=&quot;http://windows.kde.org/&quot;&gt;KDE for Windows&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The KDE for Windows itself is not much usefull -- there is no Desktop Environment yet, only some Applications available.  Its biggest value is ... the Libraries!!!! and, of cource.. QT! wich supports VC2005 natively, witouht further patching. Here is small 1-2-3 how to start developing QT OpenSource apps in windows:&lt;br /&gt;&lt;br /&gt;1) use Kde Windows Installer to install QT, and other libs that you might need (Boost? image handling libs? eigen? libz ? whatever...)&lt;br /&gt;2) Get VC++ 2005 Express Edition (Kde installer may also help)&lt;br /&gt;&lt;br /&gt;say, you have installed everything to D:\KDE, then i recommend to save it as Windows Environment variable (say, QTHOME) -- may be handy for team development, and stuff.&lt;br /&gt;Now you are ready to create a &quot;Hello world&quot; app.&lt;br /&gt;&lt;br /&gt;1) Open VisualStudio, create a new &quot;Makefile&quot; project. (Figure 1)&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqSZclL6RQwNs08TBcBVumYohS13UFFaO2IqplkHl1w3kjKOD1QtBETiBt-3fvzn9p_BaWpd9tKMU7HVyPWqiQd_epW1V_3_F7bWerZzmx8V9dWJpaqLmX1IhE_2_I5ZG0nFDgKmmiwFs/s1600-h/1.PNG&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqSZclL6RQwNs08TBcBVumYohS13UFFaO2IqplkHl1w3kjKOD1QtBETiBt-3fvzn9p_BaWpd9tKMU7HVyPWqiQd_epW1V_3_F7bWerZzmx8V9dWJpaqLmX1IhE_2_I5ZG0nFDgKmmiwFs/s320/1.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161297358179927618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) it will prompt for &quot;build&quot; &quot;rebuild&quot; and &quot;clean&quot; commands for Debug and Release configurations. For these i create 6 different custom .bat files, and specify them on prompt.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfRK53_ipahDxQn8Xw_L-0tZN_JoP0Rh7B_StdiAdiLVfT2dvc4KwskZhHsOX8R2iht7QBzLth1oroUod7nRxmZrJ7ETa4d59FpPF7s0zhZQgvaMh113LA4klaL60t37Qx5bBYNpQAFFE/s1600-h/3.PNG&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfRK53_ipahDxQn8Xw_L-0tZN_JoP0Rh7B_StdiAdiLVfT2dvc4KwskZhHsOX8R2iht7QBzLth1oroUod7nRxmZrJ7ETa4d59FpPF7s0zhZQgvaMh113LA4klaL60t37Qx5bBYNpQAFFE/s320/3.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161297693187376738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs4tkprtvsD-AWkZGufOTt7cZHXC1_oWMoFtVVMM6YVySoBeSFyPFQEZmILq4sRbWgQRWXAQmGE3igDTN-FD8lCPl8NIJLerSFVn2ESF9fayAz6cVNa_H7xKdYaB13cJm2AB1rj6-FSKA/s1600-h/2.PNG&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs4tkprtvsD-AWkZGufOTt7cZHXC1_oWMoFtVVMM6YVySoBeSFyPFQEZmILq4sRbWgQRWXAQmGE3igDTN-FD8lCPl8NIJLerSFVn2ESF9fayAz6cVNa_H7xKdYaB13cJm2AB1rj6-FSKA/s320/2.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161297590108161618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Your solution dir now has &quot;helloworld&quot; subdir. There we&#39;ll have to create several files:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;main.cpp:&lt;/span&gt; (add it to the VS project as &quot;source file&quot;)&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;  &gt;#include &lt;qapplication&gt;&lt;br /&gt;#include &lt;qpushbutton&gt;&lt;br /&gt;#include &lt;qstring&gt;&lt;br /&gt;&lt;br /&gt;int main(int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;QApplication app(argc, argv);&lt;br /&gt;QPushButton hello(&quot;Hello world!&quot;);&lt;br /&gt;hello.resize(100, 30);&lt;br /&gt;hello.show();&lt;br /&gt;return app.exec();&lt;br /&gt;}&lt;/qstring&gt;&lt;/qpushbutton&gt;&lt;/qapplication&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;helloworld.pro&lt;/span&gt; -- the QMake project file&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;  &gt;SOURCES += main.cpp&lt;br /&gt;TEMPLATE = app&lt;br /&gt;CONFIG += warn_on thread qt stl&lt;br /&gt;TARGET = helloworld&lt;br /&gt;FORMS +=&lt;br /&gt;HEADERS +=&lt;br /&gt;INCLUDEPATH +=&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;build_debug.bat&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;  &gt;qmake&lt;br /&gt;nmake Debug&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;rebuild_debug.bat&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;clean_debug.bat&lt;/span&gt; &lt;span style=&quot;font-family:courier new;&quot;&gt;build_debug.bat&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;clean_debug.bat&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;qmake &lt;/span&gt; &lt;span style=&quot;font-family:courier new;&quot;&gt;nmake clean&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;now copy the last three into build_release.bat, rebuild_release.bat and clean_release.bat accoordingly, replacing &quot;Debug&quot; into &quot;Release&quot;.  you may add them into the VC project, for example, into another project subfolder, for later convininent modifications.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Hg3vmHBWT7FomuHyp2XLZ4nVVOviXM1JAL2ClVkBPzfKHhKySu2ruur76lhSckLpWgooUlQMLpSk2FrT69OANM2vFZ_4-gvaY98a1rKHu1DTYj5F8JIvRkD5K1l9rVudUKfTDTrT2DA/s1600-h/4.PNG&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Hg3vmHBWT7FomuHyp2XLZ4nVVOviXM1JAL2ClVkBPzfKHhKySu2ruur76lhSckLpWgooUlQMLpSk2FrT69OANM2vFZ_4-gvaY98a1rKHu1DTYj5F8JIvRkD5K1l9rVudUKfTDTrT2DA/s320/4.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161298114094171762&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now you may press the &quot;Build Solution&quot; button, and see what happens.&lt;br /&gt;the last two things remain:&lt;br /&gt;1) &lt;span style=&quot;font-weight: bold;&quot;&gt;Debugger&lt;/span&gt;. You need to specify the executable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) &lt;span style=&quot;font-weight: bold;&quot;&gt;Intellisense&lt;/span&gt;. You need to specify the includepaths for QT and other libs.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRa59d5DA07n2IRDWEP1UnrJXJ1lEuF-7uxMMBRSI-3oOJR7ARQdFVE7ORp31jfOV4pzdZq9v-_hwHtZLYKPxVD_sYshS0OQlIgdsfN0ORIOGpH7qzS615aavlm6-PXuIDAKRIGc79r-A/s1600-h/6.PNG&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRa59d5DA07n2IRDWEP1UnrJXJ1lEuF-7uxMMBRSI-3oOJR7ARQdFVE7ORp31jfOV4pzdZq9v-_hwHtZLYKPxVD_sYshS0OQlIgdsfN0ORIOGpH7qzS615aavlm6-PXuIDAKRIGc79r-A/s320/6.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161299355339720338&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, you may check at the QPushButton hello object how it works.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZYLWnRx7jPor4DerlhBRaadtbJMipJbkmxLGV3rRwQbO8AYgizICa9hWi-yyM6-Jw3TY-qeho95ZZki0wreWH4IrFZVJlMSQ_MZzdvkbfEi7ub2pGBD2eOzY6ZD3XDm1W8ogTWVSEG6E/s1600-h/7.PNG&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZYLWnRx7jPor4DerlhBRaadtbJMipJbkmxLGV3rRwQbO8AYgizICa9hWi-yyM6-Jw3TY-qeho95ZZki0wreWH4IrFZVJlMSQ_MZzdvkbfEi7ub2pGBD2eOzY6ZD3XDm1W8ogTWVSEG6E/s320/7.PNG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5161299441239066274&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The last step: i used kde-installer 0.8.5 which installed QT 4.3.3. For some reason, the makefiles, created with QMAKE did not create the moc_- files.&lt;br /&gt;i had lots of errors like:&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;  &gt;moc_mainwindow.cpp&lt;br /&gt;c1xx : fatal error C1083: Cannot open source file: &#39;debug\moc_mainwindow.cpp&#39;: N&lt;br /&gt;o such file or directory&lt;br /&gt;moc_mainview.cpp&lt;br /&gt;c1xx : fatal error C1083: Cannot open source file: &#39;debug\moc_mainview.cpp&#39;: No&lt;br /&gt;such file or directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To fix this, i had to manually rewrite my &lt;span style=&quot;font-weight: bold;&quot;&gt;qt.conf&lt;/span&gt;, which resides in the &lt;span style=&quot;font-weight: bold;&quot;&gt;bin&lt;/span&gt; directory of KDE installation.&lt;br /&gt;for example, if you have installed KDE into D:\KDE, then you&#39;d have to create/edit the file&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;D:\KDE\bin\qt.conf:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;  &gt;[Paths]&lt;br /&gt;Prefix=D:\\KDE\\&lt;br /&gt;Documentation=D:\\KDE\\doc&lt;br /&gt;Headers=D:\\KDE\\include&lt;br /&gt;Libraries=D:\\KDE\\lib&lt;br /&gt;Binaries=D:\\KDE\\bin&lt;br /&gt;Plugins=D:\\KDE\\plugins&lt;br /&gt;Data=D:\\KDE\\&lt;br /&gt;Translations=D:\\KDE\\translations&lt;br /&gt;Settings=D:\\KDE\\etc&lt;br /&gt;Examples=D:\\KDE\\examples&lt;br /&gt;Demos=D:\\KDE\\demos&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;that&#39;s all, folks! Happy Hacking!</content><link rel='replies' type='application/atom+xml' href='http://svshift.blogspot.com/feeds/1424887629200143264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7541893048189678829/1424887629200143264' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/1424887629200143264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7541893048189678829/posts/default/1424887629200143264'/><link rel='alternate' type='text/html' href='http://svshift.blogspot.com/2008/01/visual-c-2005-project-using-qt-and.html' title='Visual C++ 2005 project using QT and qmake'/><author><name>SHiFT</name><uri>http://www.blogger.com/profile/17677679685579273823</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqSZclL6RQwNs08TBcBVumYohS13UFFaO2IqplkHl1w3kjKOD1QtBETiBt-3fvzn9p_BaWpd9tKMU7HVyPWqiQd_epW1V_3_F7bWerZzmx8V9dWJpaqLmX1IhE_2_I5ZG0nFDgKmmiwFs/s72-c/1.PNG" height="72" width="72"/><thr:total>3</thr:total></entry></feed>