Linker error while building Qt source on Windows



  • Hello all,

    I have a need to use Qt with Visual Studio 2010 for 64-bit. Since there are no pre-compiled binaries available for that platform, I am building qt source. I have followed these steps.

    1. Installed Python, Perl at C:\Python27, C:\Perl64 respectively.
    2. Extracted Qt source at C:\Qt\source.
    3. I have installed Visual Studio 2010 SP1 and all the available updates are installed as well.
    4. I have downloaded icu binaries and saved them at C:\icu.
    5. Added these to PATH:

    @C:\Qt\source\qtbase\bin;
    C:\Qt\SrcQt5.2.1\gnuwin32\bin;
    C:\icu4c-53_1\bin64;
    C:\Python27\DLLs;
    C:\Python27;
    C:\Perl64\site\bin;
    C:\Perl64\bin;@

    1. Then I opened 'Visual Studio x64 Win64 Command Prompt (2010)'
    2. Ran the following.

    @cd Qt
    cd source
    configure -prefix c:\Qt\source\qtbase -debug-and-release -opensource -icu -platform win32-msvc2010 -opengl desktop
    jom.exe -j10@

    At this time, I got the following error.

    @LINK : fatal error LNK1104: cannot open file 'icuin.lib'@

    I added C:\icu4c-53_1\lib64 to PATH. But that didn't help either.

    Any pointers on what could be going wrong?


  • Lifetime Qt Champion

    Hi,

    You probably need to path an additional argument to configure for it to find the icuin.lib file.

    Try adding

    @-L C:/icu4c-53_1/lib@

    Change that path to match the actual folder where the lib files can be found



  • Hi,

    I did that. I added the following as arguments to configure.

    @-L C:\icu4c-53_1\lib64 -I C:\icu4c-53_1\include@

    I get the same error when I run jom.


  • Lifetime Qt Champion

    Do you have lib files (not dlls) in that folder ?



  • [quote author="SGaist" date="1408564540"]Do you have lib files (not dlls) in that folder ?[/quote]

    Yes, icu distribution has 3 folders:
    bin64 (dlls etc.,)
    lib64 (libs etc.,)
    includes (headers)


  • Lifetime Qt Champion

    Did you restart from clean when you added the paths to configure ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.