Results 1 to 3 of 3

Thread: Error building qt windows 7: ld.exe: cannot find ljscore

  1. #1
    Join Date
    Feb 2009
    Posts
    7

    Default Error building qt windows 7: ld.exe: cannot find ljscore

    I'm trying to build QT on windows 7 width mingw width Webkit.

    I'm getting the error ld.exe: cannot find -ljscore, and I can't find any solutions with Google.

    I can't find a jscore.dll jscore.a jscore.lib or libjscore.dll or zomething similar on my system.

    Does anyone know what went wrong?

    Thanks

    Edit: I just found libjscore.a somewhere in the qt sources and copied it to ming\lib.

    I'm trying to compile right now, waiting to see if the problem is solved.

    Edit 2:
    dl.exe found libjscore.a but I got a lot of warnings: duplicate section ... for JSC::JSCell] has different size, and after those a lot of undefined references.
    I think the libjscore.a I copied isn't the one I need.
    I have no idea what to do now.
    Last edited by Ahas; 16th May 2011 at 14:01.

  2. #2
    Join Date
    Feb 2009
    Posts
    7

    Default Re: Error building qt windows 7: ld.exe: cannot find ljscore

    I keep getting these error messages with the file libjscore.a in C:\Mingw\lib: (I left a part out because it was too long)
    Qt Code:
    1. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    2. oc -Wl,-s -Wl,-subsystem,windows -o ..\..\..\..\bin\assistant.exe object_script.
    3. assistant.Release -L"c:\Qt\4.7.3-static\lib" -L"c:\Qt\4.7.3-static\plugins\sqld
    4. rivers" -L"c:\Qt\4.7.3-static\lib" -lmingw32 -lqtmain tmp\obj\release_static\ass
    5. istant_res.o -lQtHelp -lQtWebKit -lQtSql -lQtXml -lQtCLucene -ljscore -lshlwapi
    6. -lversion -lQtGui -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwi
    7. nspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi3
    8. 2 -lws2_32 -LC:\mysql\lib
    9. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1d1): un
    10. defined reference to `mysql_stmt_insert_id@4'
    11. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x209): un
    12. defined reference to `mysql_insert_id@4'
    13. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x260): un
    14. defined reference to `mysql_num_rows@4'
    15. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x27f): un
    16. defined reference to `mysql_stmt_num_rows@4'
    17. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x326): un
    18. defined reference to `mysql_num_rows@4'
    19. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x353): un
    20. defined reference to `mysql_stmt_num_rows@4'
    21. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x4ab): un
    22. defined reference to `mysql_character_set_name@4'
    23. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x66f): un
    24. defined reference to `mysql_errno@4'
    25. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x687): un
    26. defined reference to `mysql_field_seek@8'
    27. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x6b3): un
    28. defined reference to `mysql_field_seek@8'
    29. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x6c1): un
    30. defined reference to `mysql_fetch_field@4'
    31. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x700): un
    32. defined reference to `mysql_fetch_field@4'
    33. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x724): un
    34. defined reference to `mysql_stmt_error@4'
    35. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x72f): un
    36. defined reference to `mysql_stmt_errno@4'
    37. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x96e): un
    38. defined reference to `mysql_fetch_lengths@4'
    39. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0xfbf): un
    40. defined reference to `mysql_stmt_fetch@4'
    41. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0xfe3): un
    42. defined reference to `mysql_fetch_row@4'
    43. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x10ee): u
    44. ndefined reference to `mysql_stmt_data_seek@12'
    45. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x10ff): u
    46. ndefined reference to `mysql_stmt_fetch@4'
    47. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x116c): u
    48. ndefined reference to `mysql_data_seek@12'
    49. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x117d): u
    50. ndefined reference to `mysql_fetch_row@4'
    51. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x125e): u
    52. ndefined reference to `mysql_error@4'
    53. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x126b): u
    54. ndefined reference to `mysql_errno@4'
    55. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1723): u
    56. ndefined reference to `mysql_thread_end@0'
    57. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1730): u
    58. ndefined reference to `mysql_close@4'
    59. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1b9b): u
    60. ndefined reference to `mysql_list_fields@12'
    61. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1bf6): u
    62. ndefined reference to `mysql_fetch_field@4'
    63. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1c06): u
    64. ndefined reference to `mysql_free_result@4'
    65. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x1c8d): u
    66. ndefined reference to `mysql_query@8'
    67. ...
    68. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x43b4): u
    69. ndefined reference to `mysql_stmt_bind_param@8'
    70. c:\Qt\4.7.3-static\lib/libQtSql.a(qsql_mysql.o):qsql_mysql.cpp:(.text+0x47ae): u
    71. ndefined reference to `mysql_stmt_attr_set@12'
    72. collect2: ld returned 1 exit status
    73. mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
    74. mingw32-make[5]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools/ass
    75. istant'
    76. mingw32-make[4]: *** [release] Error 2
    77. mingw32-make[4]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools/ass
    78. istant'
    79. mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
    80. mingw32-make[3]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools'
    81. mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
    82. mingw32-make[2]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant'
    83. mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
    84. mingw32-make[1]: Leaving directory `C:/Qt/4.7.3-static/tools'
    85. mingw32-make: *** [sub-tools-make_default-ordered] Error 2
    86.  
    87. C:\Qt\4.7.3-static>
    To copy to clipboard, switch view to plain text mode 

    And this without the file:
    Qt Code:
    1. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    2. oc -Wl,-s -Wl,-subsystem,windows -o ..\..\..\..\bin\assistant.exe object_script.
    3. assistant.Release -L"c:\Qt\4.7.3-static\lib" -L"c:\Qt\4.7.3-static\plugins\sqld
    4. rivers" -L"c:\Qt\4.7.3-static\lib" -lmingw32 -lqtmain tmp\obj\release_static\ass
    5. istant_res.o -lQtHelp -lQtWebKit -lQtSql -lQtXml -lQtCLucene -ljscore -lshlwapi
    6. -lversion -lQtGui -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwi
    7. nspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi3
    8. 2 -lws2_32 -LC:\mysql\lib
    9. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
    10. d -ljscore
    11. collect2: ld returned 1 exit status
    12. mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
    13. mingw32-make[5]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools/ass
    14. istant'
    15. mingw32-make[4]: *** [release] Error 2
    16. mingw32-make[4]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools/ass
    17. istant'
    18. mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
    19. mingw32-make[3]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant/tools'
    20. mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
    21. mingw32-make[2]: Leaving directory `C:/Qt/4.7.3-static/tools/assistant'
    22. mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
    23. mingw32-make[1]: Leaving directory `C:/Qt/4.7.3-static/tools'
    24. mingw32-make: *** [sub-tools-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 


    I have no idea what to do or try next. I can't get Qt static with webkit on Windows 7 it seems.

  3. #3
    Join Date
    Feb 2009
    Posts
    7

    Default Re: Error building qt windows 7: ld.exe: cannot find ljscore

    Ok I succeeded in compiling Qt static by following this article:
    http://http://developer.qt.nokia.com...ndows_with_gcc

    Qt compiled without errors, but when compiling an app, I get these errors:

    Qt Code:
    1. g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-en
    2. able-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -o release\CDdata.exe ob
    3. ject_script.CDdata.Release -L"c:\Qt\lib" -lmingw32 -lqtmain -LC:/Qt/plugins/ima
    4. geformats -lqjpeg -lqgif -lQtWebKit -lQtSql -ljscore -lshlwapi -lversion -lQtGui
    5. -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32
    6. -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -LC:\m
    7. ysql\lib
    8. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
    9. d -lqjpeg
    10. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
    11. d -lqgif
    12. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
    13. d -ljscore
    14. collect2: ld returned 1 exit status
    15. mingw32-make[1]: *** [release\CDdata.exe] Error 1
    16. mingw32-make[1]: Leaving directory `C:/Users/Marlies/Desktop/CDdata2-0/CDdata'
    17. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Is this because there went something wrong in the compilation of Qt?

Similar Threads

  1. Replies: 4
    Last Post: 9th December 2010, 17:50
  2. Replies: 4
    Last Post: 28th September 2010, 07:57
  3. Find one error
    By BadKnees in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2009, 15:33
  4. Error when building Qt4 on Mac OS X
    By DragonLance156156 in forum Installation and Deployment
    Replies: 11
    Last Post: 17th February 2009, 16:29
  5. Building qt error
    By as001622 in forum Installation and Deployment
    Replies: 1
    Last Post: 20th June 2008, 08:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.