Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

compile with VS 2005

Help
vmax71
2006-05-17
2013-04-25
  • vmax71
    vmax71
    2006-05-17

    I'm trying to compile kiax under windows xp and visual studio 2005. I've imported qt4 and so on, and  at the end of compiling I obtain the following mistakes:
    trayicon_win.obj : error LNK2019: unresolved external symbol __imp__Shell_NotifyIconA@8 referenced in function "public: bool __thiscall TrayIcon::TrayIconPrivate::trayMessageA(unsigned long)" (?trayMessageA@TrayIconPrivate@TrayIcon@@QAE_NK@Z)
    iaxclient.lib(iaxclient_lib.obj) : error LNK2001: unresolved external symbol _recvfrom@24
    iaxclient.lib(iax.obj) : error LNK2001: unresolved external symbol _recvfrom@24
    iaxclient.lib(iaxclient_lib.obj) : error LNK2001: unresolved external symbol _sendto@24
    iaxclient.lib(iax.obj) : error LNK2001: unresolved external symbol _sendto@24
    iaxclient.lib(iaxclient_lib.obj) : error LNK2019: unresolved external symbol _jb_setoutput referenced in function _setup_jb_output
    iaxclient.lib(winfuncs.obj) : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function _os_init
    iaxclient.lib(audio_encode.obj) : error LNK2019: unresolved external symbol _iaxc_audio_codec_speex_new referenced in function _create_codec
    iaxclient.lib(audio_encode.obj) : error LNK2019: unresolved external symbol _iaxc_audio_codec_alaw_new referenced in function _create_codec
    iaxclient.lib(audio_encode.obj) : error LNK2019: unresolved external symbol _iaxc_audio_codec_ulaw_new referenced in function _create_codec
    iaxclient.lib(audio_encode.obj) : error LNK2019: unresolved external symbol _iaxc_audio_codec_gsm_new referenced in function _create_codec
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetMicrophoneBoost referenced in function _pa_mic_boost_set
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetCurrentInputSource referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _strcasecmp referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetInputSourceName referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetNumInputSources referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetCurrentInputSourceByName referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_OpenMixer referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_CloseMixer referenced in function _pa_start
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _iaxc_preprocessor_initialize referenced in function _pa_callback
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetInputVolume referenced in function _pa_input_level_get
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetInputVolume referenced in function _pa_input_level_set
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetMasterVolume referenced in function _pa_output_level_get
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetPCMOutputVolume referenced in function _pa_output_level_get
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SupportsPCMOutputVolume referenced in function _pa_output_level_get
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetMasterVolume referenced in function _pa_output_level_set
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_SetPCMOutputVolume referenced in function _pa_output_level_set
    iaxclient.lib(audio_portaudio.obj) : error LNK2019: unresolved external symbol _Px_GetMicrophoneBoost referenced in function _pa_mic_boost_get
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _ntohs@4 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _ioctlsocket@12 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _getsockname@12 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _bind@12 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _htons@4 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _socket@12 referenced in function _iax_init
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_ie_append_str referenced in function _iax_transfer
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _htonl@4 referenced in function _iax_send
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_frame_free referenced in function _iax_send
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_frame_wrap referenced in function _iax_send
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_frame_new referenced in function _iax_send
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_ie_append_int referenced in function _iax_setup_transfer
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_ie_append_short referenced in function _iax_setup_transfer
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_ie_append_addr referenced in function _iax_setup_transfer
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function _iax_register
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _inet_ntoa@4 referenced in function _iax_net_process
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_parse_ies referenced in function _iax_header_to_event
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _ntohl@4 referenced in function _iax_header_to_event
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _select@20 referenced in function _iax_get_event
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in function _iax_net_read
    iaxclient.lib(iax.obj) : error LNK2019: unresolved external symbol _iax_ie_append referenced in function _iax_quelch_moh
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutGetNumDevs@0 referenced in function _Pa_InitializeNumDevices
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInGetNumDevs@0 referenced in function _Pa_InitializeNumDevices
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutOpen@24 referenced in function _Pa_GetDeviceInfo
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutGetDevCapsA@12 referenced in function _Pa_GetDeviceInfo
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInOpen@24 referenced in function _Pa_GetDeviceInfo
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInGetDevCapsA@12 referenced in function _Pa_GetDeviceInfo
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInPrepareHeader@12 referenced in function _PaHost_OpenInputStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutPrepareHeader@12 referenced in function _PaHost_OpenOutputStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutRestart@4 referenced in function _PaHost_StartOutput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutWrite@12 referenced in function _PaHost_StartOutput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutPause@4 referenced in function _PaHost_StartOutput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInStart@4 referenced in function _PaHost_StartInput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInAddBuffer@12 referenced in function _PaHost_StartInput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInReset@4 referenced in function _PaHost_StopInput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutReset@4 referenced in function _PaHost_StopOutput
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInClose@4 referenced in function _PaHost_CloseStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInUnprepareHeader@12 referenced in function _PaHost_CloseStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutClose@4 referenced in function _PaHost_CloseStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutUnprepareHeader@12 referenced in function _PaHost_CloseStream
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveInGetPosition@12 referenced in function _PaHost_UpdateStreamTime
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutGetPosition@12 referenced in function _PaHost_UpdateStreamTime
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutGetVolume@8 referenced in function _Pa_GetOutputLevel
    iaxclient.lib(pa_win_wmme.obj) : error LNK2019: unresolved external symbol __imp__waveOutSetVolume@8 referenced in function _Pa_SetOutputLevel
    release\..\bin\kiax.exe : fatal error LNK1120: 70 unresolved externals

    Can anyone help me? Thanks, Max

     
    • Emo
      Emo
      2006-05-20

      HI,

      I never tested compilation with VS, but it looks like it has problem in linking the library. Do you link it statically or dynamically as dll? If you want statically you have to change the LIBRARIES option in src/src.pro file. Besides that you have to have project file for the iaxclient itself, where you have to select very carefully the libs.
      As far as I see it cant find some dlls even from the windows, such as winmmd.dll (as far as i remember).

      Compilation is tested with mingw. Ah,also you have to have installed pthreads.

      Greetings,
      Emo

       
      • schklaus
        schklaus
        2007-07-19

        Hi Emosto, i need a little help, i compiled kiax (the 8.5 version, 8.51 won't compile, it just returns some qmake error {since i was able to compile version 8.5 that's not really a problem for me}) on my winxp but when I modify the .ui files, and recompile, i get an error that says that *.ui was made with a too recent version of QT (the version I use is 4.3.0); I tried also QT 3.3 in a debian box, and then it says that the version of QT is too old. Could you help me? what versions are you using? is there a way to compile on debian and get a win32 .exe file? what other choices do I have?
        Thanks in advance

        Carlos

         
        • Emo
          Emo
          2007-07-19

          Hi Carlos,

          This is one of the reasons I really hate the Windows version ;) actually, not because of Windows itself, but because of the mess that the qt3-qt4 migration does. The windows version is a "workaround". I did the changes with the old 3.2 designer, then converted the .ui to qt4 version (with the migration tool I believe) and then compiled. Unfortunately, my laptop on which I had the windows version of the code broke and I have now a crap Vista on which I havent tried the whole process and wont be able to do anything until I get some free time for it, otherwise I would assist you immedately over skype for example.

          Please tell me if you edit with designer 3.x (the GPL version of the qt3 on windows) and then convert with qt4 and compile, what happens? Be aware of the QTDIR variable for every of the steps you have to change it between dirs of qt3 for the designer and qt4 for converting and compiling.

          Greetings,
          Emil

           
          • Emo
            Emo
            2007-07-19

            I'll contact you over email to arrange an hour where we can discuss in chat or something - if you have a deadline, better we solve it tomorrow, because I will be away from computer for the next two weeks.

            Greetings,
            Emil

             
    • vmax71
      vmax71
      2006-05-22

      Thanks for your suggests! Now I've compiled with mingw and all is ok (under windows). My problems are  under Debian. I've compiled and installed kiax 0.8.5 but it gives an error. I've called an account test (it works fine under windows) but kiax rejects the account test (at the left below of kiax's window). Can you help me in this case?
      Thanks Max.