Showing posts with label Compiler. Show all posts
Showing posts with label Compiler. Show all posts

Friday, May 31, 2013

Qt Creator qmake compile error uic: unexpected attribute alignment

After adding an ui file to my Qt Project, it did not compile any more. I received a compiler error message like uic: Error in line 51, column 41 : Unexpected attribute alignment

which then resulted into the error message:
jom: D:\MyProjectBuildDirectory\Makefile [debug] Error 2

How i fixed it:
I found out, that the problem was related to the Qt framework version 4.7.1 i used on my (Win8, 64bit) computer.
I updated to Version 4.8.4 and everything was fine again.

Monday, May 27, 2013

Matlab Simulink Coder Compile Error _sfun.bat not found

I started to learn about Matlab Simulink Coder automatic C-Code Generation today. I followed the steps described in the very helpful tutorial Jose Carlos Molina Fraticelli (http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20120014980_2012014792.pdf), but when i wanted to run the model, i got a Simulink error message, that a file called "modelname_sfun.bat" was not found.

How-I-fixed-it:

The problem was caused by an incorrect setup of the C-Compilers on my system. I had multiple versions of Visual Studio installed on my computer and it seems like after a couple of update steps of Visual Studio and Matlab, Matlab got confused.
I had to rerun "mex -setup" from the Matlab command line and selected the Compiler Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
After that, the model compiled OK and i was able to run it.