Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linker error while building Qt source on Windows

Linker error while building Qt source on Windows

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bharath144
    wrote on last edited by
    #1

    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?

    Cheers!
    ಮೈ ಗೋ ಭರತ ನಾರಾಯಣ
    Bharath Narayan M G

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bharath144
        wrote on last edited by
        #3

        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.

        Cheers!
        ಮೈ ಗೋ ಭರತ ನಾರಾಯಣ
        Bharath Narayan M G

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bharath144
            wrote on last edited by
            #5

            [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)

            Cheers!
            ಮೈ ಗೋ ಭರತ ನಾರಾಯಣ
            Bharath Narayan M G

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved