Saturday, 25 October 2014

Mac Yosemite compatibility with Qt 5.3.1

After I upgrade to Yosemite, my Qt application was not working,

You will get following build errors whenever you build QT app
"Could not resolve SDK path for 'macosx 10.8'"

so I have  to do a few hacks to make it work as follows

1) Open the following file
<Qt Installed Dir>/5.3/clang_64/mkspecs/qdevice.pri

2) Change the first line to
!host_build:QMAKE_MAC_SDK = macosx10.10

this will support QT on Yosemite.

Yosemite Upgrade : All user accounts lost admin or administrator privilege in mac, What you will do?

When does this happen?
Sometimes it happens when you upgrade your OS version, or it happen when you try to delete or alter privileges of an user account. Or sometimes trying to give same account name for two accounts.

What you will do when you lost admin or administrator privilege on your mac on all your user account?
When you are in such situation, you will never be able to install anything or delete from your mac because you don't have any account with Admin privileges.

To get yourself in such situation you can follow the steps below which worked for me.

1) Restart your PC and while starting up press and hold Command + S key
2) Login into an standard account will land up in an bash terminal.
3) Execute "fsck -fy", and wait until you get your drive is OK.
4) Execute "mount -uw /"
5) Execute "rm /var/db/.AppleSetupDone", to delete the file so that Apple will allow you to create an admin account on reboot.
6) Execute "exit" to to reboot.

On Reboot apple will allow you to create an admin user account.

Hope it helps...

error: invalid argument '-std=c++11' not allowed with 'C/ObjC'

Hello everyone,
I was struggling quite sometime to get ride of this error, but actually you will get this error whenever you try to compiler a C file using C++ standard.

So look out for your list of source files(for your compilation) to see if you have included any C files.


Friday, 6 December 2013

warning C4995: 'sprintf': name was marked as #pragma deprecated

Hello everyone,

warning C4995: 'sprintf': name was marked as #pragma deprecated

I got the set of related warning mentioned above while compiling the directshow filter project used along with std::auto_ptr(...). When I include the include file <memory> without directshow any includes(streams.h) I didn't get this warning.

After long struggle I found that these warning are coming because I didn't put the #include <memory> header file for std::auto_ptr before direct show headers(#include <streams.h>)

So after specifying the include files order properly I didn't get these warnings, so even the order of including files plays the trick here.

Hope this helps someone.

Raja Bose C Leo.