findres.cpp

  name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-5572165936844014&dt=1194442938015&lmt=1194190197&format=336x280_as&output=html&correlator=1194442937843&url=file%3A%2F%2F%2FC%3A%2FDocuments%2520and%2520Settings%2Flhh1%2F%E6%A1%8C%E9%9D%A2%2FCLanguage.htm&color_bg=FFFFFF&color_text=000000&color_link=000000&color_url=FFFFFF&color_border=FFFFFF&ad_type=text&ga_vid=583001034.1194442938&ga_sid=1194442938&ga_hid=1942779085&flash=9&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency"> 
#include <windows.h> 
#include "FindRes.h"


#if defined (WIN32)
 #define IS_WIN32 TRUE
#else
 #define IS_WIN32 FALSE
#endif

#define IS_NT      IS_WIN32 && (BOOL)(GetVersion() < 0x80000000)
#define IS_WIN32S  IS_WIN32 && (BOOL)(!(IS_NT) && (LOBYTE(LOWORD(GetVersion()))<4))
#define IS_WIN95   (BOOL)(!(IS_NT) && !(IS_WIN32S)) && IS_WIN32

HINSTANCE hInst;   // current instance

LPCTSTR lpszAppName  = "MyApp";
LPCTSTR lpszTitle    = "My Application";

BOOL RegisterWin95( CONST WNDCLASS* lpwc );

int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
                      LPTSTR lpCmdLine, int nCmdShow)
{
   MSG      msg;
   HWND     hWnd;
   WNDCLASS wc;

   // Register the main application window class.
   //............................................
   wc.style         = CS_HREDRAW | CS_VREDRAW;
   wc.lpfnWndProc   = (WNDPROC)WndProc;      
   wc.cbClsExtra    = 0;                     
   wc.cbWndExtra    = 0;                     
   wc.hInstance     = hInstance;             
   wc.hIcon         = LoadIcon( hInstance, lpszAppName );
   wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
   wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
   wc.lpszMenuName  = lpszAppName;             
   wc.lpszClassName = lpszAppName;             

   if ( IS_WIN95 )
   {
      if ( !RegisterWin95( &wc ) )
         return( FALSE );
   }
   else if ( !RegisterClass( &wc ) )
      return( FALSE );

   hInst = hInstance;

   // Create the main application window.
   //....................................
   hWnd = CreateWindow( lpszAppName,
                        lpszTitle,   
                        WS_OVERLAPPEDWINDOW,
                        CW_USEDEFAULT, 0,
                        CW_USEDEFAULT, 0, 
                        NULL,             
                        NULL,             
                        hInstance,        
                        NULL              
                      );

   if ( !hWnd )
      return( FALSE );

   ShowWindow( hWnd, nCmdShow );
   UpdateWindow( hWnd );        

   while( GetMessage( &msg, NULL, 0, 0) )  
   {
      TranslateMessage( &msg );
      DispatchMessage( &msg ); 
   }

   return( msg.wParam );
}


BOOL RegisterWin95( CONST WNDCLASS* lpwc )
{
   WNDCLASSEX wcex;

   wcex.style         = lpwc->style;
   wcex.lpfnWndProc   = lpwc->lpfnWndProc;
   wcex.cbClsExtra    = lpwc->cbClsExtra;
   wcex.cbWndExtra    = lpwc->cbWndExtra;
   wcex.hInstance     = lpwc->hInstance;
   wcex.hIcon         = lpwc->hIcon;
   wcex.hCursor       = lpwc->hCursor;
   wcex.hbrBackground = lpwc->hbrBackground;
   wcex.lpszMenuName  = lpwc->lpszMenuName;
   wcex.lpszClassName = lpwc->lpszClassName;

   // Added elements for Windows 95.
   //...............................
   wcex.cbSize = sizeof(WNDCLASSEX);
   wcex.hIconSm = LoadImage(wcex.hInstance, lpwc->lpszClassName,
                            IMAGE_ICON, 16, 16,
                            LR_DEFAULTCOLOR );
   
   return RegisterClassEx( &wcex );
}

LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
   switch( uMsg )
   {
      case WM_COMMAND :
              switch( LOWORD( wParam ) )
              {
                 case IDM_TEST :
                        {
                           HRSRC hres = FindResource( hInst, "TestData",
                                                             RT_RCDATA );

                           if ( hres )
                           {
                              char szMsg[50];
                              DWORD    size = SizeofResource( hInst, hres );
                              HGLOBAL  hmem = LoadResource( hInst, hres );
                              RESDATA* pmem = (RESDATA*)LockResource( hmem );

                              wsprintf( szMsg, "Values loaded: %d, %d, %d/nSize = %d",
                                               pmem->Value1,
                                               pmem->Value2,
                                               pmem->Value3,
                                               size );

                              MessageBox( hWnd, szMsg, lpszAppName, MB_OK );
                           }
                        }
                        break;

                 case IDM_ABOUT :
                        DialogBox( hInst, "AboutBox", hWnd, (DLGPROC)About );
                        break;

                 case IDM_EXIT :
                        DestroyWindow( hWnd );
                        break;
              }
              break;
     
      case WM_DESTROY :
              PostQuitMessage(0);
              break;

      default :
            return( DefWindowProc( hWnd, uMsg, wParam, lParam ) );
   }

   return( 0L );
}


LRESULT CALLBACK About( HWND hDlg,          
                        UINT message,       
                        WPARAM wParam,      
                        LPARAM lParam)
{
   switch (message)
   {
       case WM_INITDIALOG:
               return (TRUE);

       case WM_COMMAND:                             
               if (   LOWORD(wParam) == IDOK        
                   || LOWORD(wParam) == IDCANCEL)   
               {
                       EndDialog(hDlg, TRUE);       
                       return (TRUE);
               }
               break;
   }

   return (FALSE);
}

aux_source_directory (. SRC_LIST) include_directories(../include E:/xiongan/code/windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6/include) set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) link_directories(E:/xiongan/code/windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6/libs/64) add_executable (main ${SRC_LIST}) target_link_libraries( main winmm # 系统库放最前 eabb2f029_v10092_aee # 先链接子模块库 ebd1bade4_v1031_aee ef7d69542_v1014_aee AEE_lib # 基础库放最后(假设其他库依赖它) ) PS E:\xiongan\code\windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6\build> mingw32-make [ 12%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/aikit_test.cpp.obj [ 25%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/cnenesr_sample.cpp.obj [ 37%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/cnenivw_sample.cpp.obj In file included from E:\xiongan\code\windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6\samples\aikit_sample\cnenivw_sample.cpp:2: E:/xiongan/code/windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6/include/sample_common.h:42:12: warning: 'int ivw_file(AIKIT::AIKIT_ParamBuilder*, const char*, const char*)' used but never defined static int ivw_file(AIKIT_ParamBuilder* paramBuilder, const char* ability_id, const char* test_audio); ^~~~~~~~ E:/xiongan/code/windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6/include/sample_common.h:40:12: warning: 'int ivw_microphone(AIKIT::AIKIT_ParamBuilder*, const char*, int)' used but never defined static int ivw_microphone(AIKIT_ParamBuilder* paramBuilder, const char* ability_id, int specifyData_count); ^~~~~~~~~~~~~~ [ 50%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/ivw70_sample.cpp.obj [ 62%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/speech_recognizer.cpp.obj [ 75%] Building C object samples/aikit_sample/CMakeFiles/main.dir/winrec.c.obj [ 87%] Building CXX object samples/aikit_sample/CMakeFiles/main.dir/xtts10_sample.cpp.obj [100%] Linking CXX executable E:\xiongan\code\windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6\bin\main.exe CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x1fe): undefined reference to `AIKIT::AIKIT_Configurator::builder()' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x206): undefined reference to `AIKIT::ConfigBuilder::app()' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x215): undefined reference to `AIKIT::AppBuilder::appID(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x224): undefined reference to `AIKIT::AppBuilder::apiSecret(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x233): undefined reference to `AIKIT::AppBuilder::apiKey(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x242): undefined reference to `AIKIT::AppBuilder::workDir(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x251): undefined reference to `AIKIT::AppBuilder::resDir(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x259): undefined reference to `AIKIT::ConfigBuilder::auth()' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x266): undefined reference to `AIKIT::AuthBuilder::authType(int)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x275): undefined reference to `AIKIT::AuthBuilder::ability(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x27d): undefined reference to `AIKIT::ConfigBuilder::log()' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x28a): undefined reference to `AIKIT::LogBuilder::logLevel(int)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x297): undefined reference to `AIKIT::LogBuilder::logMode(int)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x2a6): undefined reference to `AIKIT::LogBuilder::logPath(char const*)' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x2ab): undefined reference to `AIKIT::AIKIT_Init()' CMakeFiles\main.dir/objects.a(aikit_test.cpp.obj):aikit_test.cpp:(.text+0x341): undefined reference to `AIKIT::AIKIT_UnInit()' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x46e): undefined reference to `AIKIT::AIKIT_SpecifyDataSet(char const*, char const*, int*, int)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x4a2): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x4c4): undefined reference to `AIKIT::AIKIT_Start(char const*, _AIKIT_BaseParam*, void*, AIKIT_HANDLE**)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x572): undefined reference to `AIKIT::AIKIT_DataBuilder::create()' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x620): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x706): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x79c): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x7dd): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x8da): undefined reference to `AIKIT::AIKIT_RegisterAbilityCallback(char const*, AIKIT_Callbacks)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x8f7): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x986): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x998): undefined reference to `AIKIT::AIKIT_EngineInit(char const*, _AIKIT_BaseParam*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0x9bc): undefined reference to `AIKIT::AIKIT_CustomBuilder::create()' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0xa0b): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_CustomBuilder*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0xa1a): undefined reference to `AIKIT::AIKIT_LoadData(char const*, _AIKIT_CustomData*)' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0xa86): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(cnenesr_sample.cpp.obj):cnenesr_sample.cpp:(.text+0xcc5): undefined reference to `AIKIT::AIKIT_UnLoadData(char const*, char const*, int)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x111): undefined reference to `AIKIT::AIKIT_RegisterAbilityCallback(char const*, AIKIT_Callbacks)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x125): undefined reference to `AIKIT::AIKIT_EngineInit(char const*, _AIKIT_BaseParam*)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x149): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x1b1): undefined reference to `AIKIT::AIKIT_LoadData(char const*, _AIKIT_CustomData*)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x28b): undefined reference to `ivw_microphone(AIKIT::AIKIT_ParamBuilder*, char const*, int)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x2b9): undefined reference to `ivw_file(AIKIT::AIKIT_ParamBuilder*, char const*, char const*)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x308): undefined reference to `AIKIT::AIKIT_UnLoadData(char const*, char const*, int)' CMakeFiles\main.dir/objects.a(cnenivw_sample.cpp.obj):cnenivw_sample.cpp:(.text+0x317): undefined reference to `AIKIT::AIKIT_EngineUnInit(char const*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x1c8): undefined reference to `AIKIT::AIKIT_SpecifyDataSet(char const*, char const*, int*, int)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x1ff): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x21e): undefined reference to `AIKIT::AIKIT_Start(char const*, _AIKIT_BaseParam*, void*, AIKIT_HANDLE**)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x2f7): undefined reference to `AIKIT::AIKIT_DataBuilder::create()' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x37a): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x3d4): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_DataBuilder*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x3e3): undefined reference to `AIKIT::AIKIT_Write(AIKIT_HANDLE*, _AIKIT_BaseData*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x427): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x562): undefined reference to `AIKIT::AIKIT_SpecifyDataSet(char const*, char const*, int*, int)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x595): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x5ba): undefined reference to `AIKIT::AIKIT_Start(char const*, _AIKIT_BaseParam*, void*, AIKIT_HANDLE**)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x667): undefined reference to `AIKIT::AIKIT_DataBuilder::create()' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x6cd): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x733): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_DataBuilder*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x745): undefined reference to `AIKIT::AIKIT_Write(AIKIT_HANDLE*, _AIKIT_BaseData*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x78a): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x7b1): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x89a): undefined reference to `AIKIT::AIKIT_RegisterAbilityCallback(char const*, AIKIT_Callbacks)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x89f): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0x9d7): undefined reference to `AIKIT::AIKIT_EngineInit(char const*, _AIKIT_BaseParam*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0xa55): undefined reference to `AIKIT::AIKIT_LoadData(char const*, _AIKIT_CustomData*)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0xaad): undefined reference to `AIKIT::AIKIT_UnLoadData(char const*, char const*, int)' CMakeFiles\main.dir/objects.a(ivw70_sample.cpp.obj):ivw70_sample.cpp:(.text+0xabc): undefined reference to `AIKIT::AIKIT_EngineUnInit(char const*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x27): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_DataBuilder*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x3b): undefined reference to `AIKIT::AIKIT_Write(AIKIT_HANDLE*, _AIKIT_BaseData*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x6d): undefined reference to `AIKIT::AIKIT_Read(AIKIT_HANDLE*, _AIKIT_BaseDataList**)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x244): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x3a8): undefined reference to `AIKIT::AIKIT_DataBuilder::create()' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x3b8): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x674): undefined reference to `AIKIT::AIKIT_SpecifyDataSet(char const*, char const*, int*, int)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x69d): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x6b9): undefined reference to `AIKIT::AIKIT_Start(char const*, _AIKIT_BaseParam*, void*, AIKIT_HANDLE**)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x705): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x83e): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x8e4): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x8f9): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' CMakeFiles\main.dir/objects.a(speech_recognizer.cpp.obj):speech_recognizer.cpp:(.text+0x988): undefined reference to `AIKIT::AiAudio::get(char const*)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x141): undefined reference to `AIKIT::AIKIT_RegisterAbilityCallback(char const*, AIKIT_Callbacks)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x146): undefined reference to `AIKIT::AIKIT_ParamBuilder::create()' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x285): undefined reference to `AIKIT::AIKIT_Builder::build(AIKIT::AIKIT_ParamBuilder*)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x2a7): undefined reference to `AIKIT::AIKIT_Start(char const*, _AIKIT_BaseParam*, void*, AIKIT_HANDLE**)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x2ca): undefined reference to `AIKIT::AIKIT_DataBuilder::create()' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x2f3): undefined reference to `AIKIT::AiText::get(char const*)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x3ae): undefineCMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.texCMCMakeFCMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x3bd): undefined reference to `AIKIT::AIKIT_Write(AIKIT_HANDLE*, _AIKIT_BaseData*)' CMakeFiles\main.dir/objects.a(xtts10_sample.cpp.obj):xtts10_sample.cpp:(.text+0x41a): undefined reference to `AIKIT::AIKIT_End(AIKIT_HANDLE*)' collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [samples\aikit_sample\CMakeFiles\main.dir\build.make:204: E:/xiongan/code/windows_ivw_e867a88f2_cnenesr_e75f07b62_xtts_e2e44feff_2.2.15_rc6/bin/main.exe] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:105: samples/aikit_sample/CMakeFiles/main.dir/all] Error 2 mingw32-make: *** [Makefile:90: all] Error 2
最新发布
10-18
cmake_minimum_required(VERSION 3.16) project(Gui VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets OpenGLWidgets Sql Network Multimedia OpenGL Xml) find_package(PkgConfig REQUIRED) pkg_check_modules(FFMPEG REQUIRED libavcodec libavformat libavutil libswscale libswresample ) find_package(VTK 9.3 REQUIRED) find_package(PCL 1.14 REQUIRED) set(PROJECT_SOURCES main.cpp include/ctl/ctlWdt.ui include/ctl/ctlwidget.cpp include/ctl/ctlwidget.h include/mypcl/pclmapwidget.cpp include/mypcl/pclmapwidget.h include/rtsp/ffmpegdecoder.cpp include/rtsp/ffmpegdecoder.h include/rtsp/openglrenderer.cpp include/rtsp/openglrenderer.h include/rtsp/rtspplaywidget.cpp include/rtsp/rtspplaywidget.h include/rtsp/VideoFrame.h include/state/stateWdt.ui include/state/statewidget.cpp include/state/statewidget.h include/task/taskwidget.cpp include/task/taskwidget.h include/task/taskwidget.ui include/GuiUtil.h include/GuiUtil.cpp include/mainwindow.cpp include/mainwindow.h include/mainwindow.ui include/task/pcltaskwidget.h include/task/pcltaskwidget.cpp include/task/valueslider.h include/task/valueslider.cpp include/task/routesettingwidget.h include/task/routesettingwidget.cpp include/task/routesettingwidget.ui include/protocol.h include/task/tasksetting.h include/task/tasksetting.cpp include/task/tasksetting.ui include/dataManage/datamanage.h include/dataManage/datamanage.cpp include/dataManage/udphandler.h include/dataManage/udphandler.cpp include/dataManage/datahandler.h include/dataManage/datahandler.cpp include/globalconfig.h include/globalconfig.cpp include/task/taskprocessor.h include/task/taskprocessor.cpp include/db/taskTableService.cpp include/db/taskTableService.h include/table/taskinfo.h include/table/taskinfo.cpp res.qrc include/common/commmsgwdt.h include/common/commmsgwdt.cpp include/common/commmsgwdt.ui include/state/stateinforecorder.h include/state/stateinforecorder.cpp include/common/statelightlabel.h include/common/statelightlabel.cpp include/common/statelightwdt.h include/common/statelightwdt.cpp include/common/statelightwdt.ui ) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) qt_add_executable(Gui MANUAL_FINALIZATION ${PROJECT_SOURCES} include/audio/audiocollector.h include/audio/audiocollector.cpp include/audio/audiooutput.h include/audio/audiooutput.cpp include/dataManage/networkconfreader.h include/dataManage/networkconfreader.cpp ) # Define target properties for Android with Qt 6 as: # set_property(TARGET Gui APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR # ${CMAKE_CURRENT_SOURCE_DIR}/android) # For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation else() if(ANDROID) add_library(Gui SHARED ${PROJECT_SOURCES} ) # Define properties for Android with Qt 5 after find_package() calls as: # set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android") else() add_executable(Gui ${PROJECT_SOURCES} ) endif() endif() target_include_directories(${PROJECT_NAME} PRIVATE ${PCL_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS} ${FFMPEG_INCLUDE_DIRS} ) target_link_directories(${PROJECT_NAME} PRIVATE ${FFMPEG_LIBRARY_DIRS}) target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::OpenGLWidgets Qt${QT_VERSION_MAJOR}::Sql Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Multimedia Qt${QT_VERSION_MAJOR}::OpenGL Qt${QT_VERSION_MAJOR}::Xml ${PCL_LIBRARIES} ${VTK_LIBRARIES} ${FFMPEG_LIBRARIES} ) # 复制项目工程目录下的配置文件到构建出的可执行目录下 set(NETCONF "${CMAKE_CURRENT_SOURCE_DIR}/netconf.xml") add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy "${NETCONF}" "$<TARGET_FILE_DIR:${PROJECT_NAME}>/" COMMENT "Copying netconf file" VERBATIM ) # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. # If you are developing for iOS or macOS you should consider setting an # explicit, fixed bundle identifier manually though. if(${QT_VERSION} VERSION_LESS 6.1.0) set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.Gui) endif() set_target_properties(Gui PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE ) include(GNUInstallDirs) install(TARGETS Gui BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) if(QT_VERSION_MAJOR EQUAL 6) qt_finalize_executable(Gui) endif() 注释上述代码并保留原注释
09-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值