I have trouble on how to use Symbian API in Qt SDK.
I found this:
http://developer.symbian.org/wiki/Us...n_C++_Together
but it does not describe how to set up the environment.
For now, I tried to use the Symbian cryptographic API, but I am stuck on how to import it correctly into Qt Creator.
I installed C/C++ plugins, then installed the cryptography API from here:
http://wiki.forum.nokia.com/index.ph...ptography_APIs
Then I copied the corresponding .h in C:\NokiaQtSDK\Symbian\SDK\epoc32
I edited my project .pro to add
Code:
INCLUDEPATH += C:\NokiaQtSDK\Symbian\SDK\epoc32\include
LIBS+= -lcryptography \
-leuser // edited
At compilation I have the same problem that this guy:
http://discussion.forum.nokia.com/fo...hlight=symbian
Code:
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\Simulator\Qt\mingw\include\QtCore" -I"..\..\Simulator\Qt\mingw\include\QtGui" -I"..\..\Simulator\Qt\mingw\include" -I"..\..\Symbian\SDK\epoc32\include" -I"..\..\Simulator\Qt\mingw\include\ActiveQt" -I"debug" -I"." -I"..\encrypttest" -I"." -I"..\..\Simulator\Qt\mingw\mkspecs\win32-g++" -o debug\main.o ..\encrypttest\main.cpp
n file included from ..\..\Symbian\SDK\epoc32\include/e32cmn.h:1104,
from ..\..\Symbian\SDK\epoc32\include/e32std.h:13,
from ..\..\Symbian\SDK\epoc32\include/e32base.h:8,
from ..\..\Symbian\SDK\epoc32\include/cryptosymmetric.h:20,
from ..\encrypttest\/mainwindow.h:12,
from ..\encrypttest\main.cpp:8:
..\..\Symbian\SDK\epoc32\include/e32des16.h:691:2: error: #error no typedef for __TText
In file included from ..\..\Symbian\SDK\epoc32\include/e32err.h:13,
from ..\..\Symbian\SDK\epoc32\include/e32const.h:9,
from ..\..\Symbian\SDK\epoc32\include/e32cmn.h:8,
from ..\..\Symbian\SDK\epoc32\include/e32std.h:13,
from ..\..\Symbian\SDK\epoc32\include/e32base.h:8,
from ..\..\Symbian\SDK\epoc32\include/cryptosymmetric.h:20,
from ..\encrypttest\/mainwindow.h:12,
from ..\encrypttest\main.cpp:8:
..\..\Symbian\SDK\epoc32\include/e32def.h:872: error: 'Int64' does not name a type
..\..\Symbian\SDK\epoc32\include/e32def.h:883: error: 'Uint64' does not name a type
In file included from ..\..\Symbian\SDK\epoc32\include/e32cmn.h:8,
from ..\..\Symbian\SDK\epoc32\include/e32std.h:13,
from ..\..\Symbian\SDK\epoc32\include/e32base.h:8,
from ..\..\Symbian\SDK\epoc32\include/cryptosymmetric.h:20,
from ..\encrypttest\/mainwindow.h:12,
from ..\encrypttest\main.cpp:8:
..\..\Symbian\SDK\epoc32\include/e32const.h:860: error: 'TInt64' does not name a type
..\..\Symbian\SDK\epoc32\include/e32const.h:871: error: 'TInt64' does not name a type
..\..\Symbian\SDK\epoc32\include/e32const.h:882: error: 'TUint64' does not name a type
In file included from ..\..\Symbian\SDK\epoc32\include/e32std.h:13,
from ..\..\Symbian\SDK\epoc32\include/e32base.h:8,
from ..\..\Symbian\SDK\epoc32\include/cryptosymmetric.h:20,
from ..\encrypttest\/mainwindow.h:12,
from ..\encrypttest\main.cpp:8:
..\..\Symbian\SDK\epoc32\include/e32cmn.h:41: error: 'IMPORT_C' does not name a type
Thanks in advance for any advice.