Saturday, August 25, 2012

Installing Matlab (exclusive for my company)

This works with my company, so, may not work with yours...
  1. Go to: http://flames.design.**.com/ReleaseMessages/mathworks/relmsg_mathworks_R2011b.html, where ** should be replaced by the name of my company.
  2. Follow those instructions.
  3. To add a toolbox follow also those instructions. It is missing that you will have to re-run the installer again if you did it at a different time. Going through control panel does not work:
  4. You have to do like if you were going to install a brand new matlab but choose "custom". 
  5. If the zip files of the toolboxes are on the same directory as the installer, it will detect those and list them here. 
  6. Select them and install... 
  7. It may give you an error that the installation may not be all right, in the end, but ignore it.
  8. Run Matlab and you should see those packages after typing "ver"
  9. You should be able to run also now the functions on those toolboxes.
  10. To change where you want it to start by default use, for instance: userpath('C:\MATLAB\work')
Enjoy! :)

Tuesday, August 21, 2012

Install CCS on Eclipse

------ Update -------

[See at the end of this update for my previous post]

So, everything look like it was working, but I did get some kind of java weird error. Maybe I should have installed 3.7.2 but anyhow, didn't get it to work so, got tired of this and installed CCS with its own Eclipse. I looked then at what that distribution had and it looks like it is more complete than the one that you just get by getting Eclipse and CDT.

The CCS on its own is:



The Eclipse+CDT+CCS is:


The extra packages are Target Management, Mylyn, EGit and one more (can't remember). I didn't see any difference between installing Eclipse SDK (170MB) or Eclipse Binary distribution (52MB). The first icon on the left comes from CDT, the 4th from Eclipse and the rest from CCS. I wonder if installing a different version of Eclipse would have changed this, but got sick of all these tests and now I am running Qt in Eclipse Juno, and CCS with its own distribution of Eclipse 3.8, apart.

--------------------------

This is the "supposed" way to make it work. Did it but didn't work:
http://processors.wiki.ti.com/index.php/Installing_CCS_over_Eclipse

Below there is a bunch of links with the same problem, but finally found the answer here:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/207977/736711.aspx#736711

Basic solution, is an issue with Eclipse and CDT versions. So, get them here:
1. Download Eclipse Platform 3.8 (platform runtime binary) and unzip in, say, c:\Eclipse:
http://download.eclipse.org/eclipse/downloads/drops/R-3.8-201206081200/
http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.8-201206081200/eclipse-platform-3.8-win32.zip

2. Download CDT 8.1 here. Then use help-->install new software and point to the zip file:
http://www.eclipse.org/cdt/downloads.php
http://www.eclipse.org/downloads/download.php?file=/tools/cdt/releases/juno/r/cdt-master-8.1.0.zip

After that follow the instructions of the original link:
http://processors.wiki.ti.com/index.php/Installing_CCS_over_Eclipse

Once working, run Eclipse and you should get a splash screen with the license selection. You are ready to go!

======== Other links that didn't take me to the answer, just for future reference ============

A support inquiry telling them that they don't need to install Eclipse before CCS (CCS install already includes it):

http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/191627.aspx
but what the heck, if you already had Eclipse...!

This guy has exactly the same problem/symptoms. Solves it by reinstalling stuff, but not exactly found out why:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/177512.aspx

And yet one more guy:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/164116.aspx
I add a post here...

By the way, the log error for CCS install is in program files x86 --> installhammer


Paste pictures in blogger

After having trouble with cut and paste kind of action, I found this link with useful hints:
http://tips.blogdoctor.me/2007/10/tips-on-pictures-in-blogger.html

Using QT with Eclipse - Hello world

I had found couple of articles on this, but they were not a fit and much more complicated than it really is (so, don't follow them if you are in my situation - Windows/Eclipse). The first looks like it was for Linux:
http://koehllab.genomecenter.ucdavis.edu/documentation/how-to/how-to-use-eclipse-with-qt/

The second was for the Qt Creator environment (full Qt SDK installation, not like me, with Eclipse):
http://qt-project.org/doc/qt-4.8/gettingstartedqt.html

Truth is that things are actually very straightforward. If you create a project following the Wizard, you'll get a Qt hello_world window without typing a line of code. The 2nd link is useful to understand how things are actually working (open the different pieces of code and compare them to see what the wizard did for you automatically). Also, trying to use a C++ project straight from Qt and add the libraries manually is probably a big pain, based on this post:
http://stackoverflow.com/questions/7775398/eclipse-qt-and-c-project-is-it-possible

Anyhow, so, how to do it? Basically, once Qt/Eclipse is installed (see my previous post on that) you should see on the top right of Eclipse a perspective for Qt:



Selecting the Qt C++ perspective and then File --> New we see:




If you don't press/select Qt C++, and you click in File --> New, you should at least see "Project..." option:



 And clicking it, you should get the option to create a Qt project.

 Either way, you can then just pick Qt Gui Project and follow the steps:
  1. The project name can have spaces in there.
  2. On the next dialog, try either one (QWidget, QMainWindow, ...). 
  3. No need to select any additional Qt modules (Core and Gui are enough)
  4. Click finish
Then go to project --> build project

After that, simply click the run (green "play" arrow) and the following window will show up (see note 1):


I selected MinGW gdb, click ok and wait for the application window to show up. Should be immediate. In this case:



That should be it! If you want to quickly play around, check the Project Explorer View, on the left of Eclipse.



If you double click in qt_another_test.ui you can see the shape of the window of your application. Clicking in the Qt C++ Widget Box tap, besides the Project Explorer view, you can add buttons, slide bars, etc... Click on the .cpp, .pro or .h to see the code. Now you can begin to make sense of the explanations on the tutorial listed above...
http://qt-project.org/doc/qt-4.8/gettingstartedqt.html

Good luck!

(1) If a message box shows up saying: "The selection can not be launched or there are not recent launches" right click on the project and select "Clean Project"