Results 1 to 1 of 1

Thread: Compiling SDL - Cairo - FreeType - HarfBuzz for Qt 4.8.4

  1. #1
    Join Date
    Jan 2014
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Compiling SDL - Cairo - FreeType - HarfBuzz for Qt 4.8.4

    Hi everyone !

    I have problem in compile example from https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz
    i downloaded some library
    cairo 1.10
    FreeType 2.3.5
    SDL 1.2
    HarfBuzz-old ( i tried with HarfBuzz-ng but i cannot resolved it)

    File ex-sdl-cairo-freetype-harfbuzz.pro
    Qt Code:
    1. TEMPLATE = app
    2. CONFIG += console
    3. CONFIG -= qt
    4.  
    5. INCLUDEPATH += .
    6. INCLUDEPATH += ./freetype2/include
    7. INCLUDEPATH += ./freetype2/include/freetype2
    8. #INCLUDEPATH += ./harfbuzz/src
    9. #INCLUDEPATH += ./SDL2/include
    10. #INCLUDEPATH += ./SDL2_image/include
    11. INCLUDEPATH += ./SDL/include
    12. INCLUDEPATH += ./SDL2_image/include
    13. INCLUDEPATH += ./cairo/include
    14. INCLUDEPATH += ./glib2/include
    15. INCLUDEPATH += ./glib2/include/glib-2.0
    16. INCLUDEPATH += ./glib2/lib/glib-2.0/include
    17. INCLUDEPATH += ./fontconfig/include
    18.  
    19. SOURCES += \
    20. ex-sdl-cairo-freetype-harfbuzz.cpp
    21.  
    22. LIBS += -L./SDL/lib/x86
    23. LIBS += -lSDLmain -lSDL
    24. #LIBS += -L./SDL2/lib/x86
    25. #LIBS += -lSDL2main -lSDL2
    26. #LIBS += -lSDL2 -lSDL2main
    27. LIBS += -L./freetype2/lib
    28. LIBS += -lfreetype
    29. LIBS += -L./SDL2_image/lib/x86
    30. LIBS += -lsdl2_image
    31. LIBS += -L./cairo/lib
    32. LIBS += -lcairo
    33. #LIBS += -L./harfbuzz
    34. #LIBS += -lharfbuzz
    35. LIBS += -L./glib2/lib
    36. LIBS += -lglib-2.0
    37. LIBS += -L./fontconfig/lib
    38. LIBS += -lfontconfig
    39.  
    40. QMAKE_LFLAGS_DEBUG += /NODEFAULTLIB:msvcrtd.lib
    41. QMAKE_LFLAGS_RELEASE += /NODEFAULTLIB:msvcrt.lib
    To copy to clipboard, switch view to plain text mode 

    Compile output:
    ex-sdl-cairo-freetype-harfbuzz.obj:-1: error: LNK2019: unresolved external symbol _hb_face_destroy referenced in function _SDL_main
    ex-sdl-cairo-freetype-harfbuzz.obj:-1: error: LNK2019: unresolved external symbol _hb_font_destroy referenced in function _SDL_main
    ex-sdl-cairo-freetype-harfbuzz.obj:-1: error: LNK2019: unresolved external symbol __imp__exit referenced in function _SDL_main
    ...
    ex-sdl-cairo-freetype-harfbuzz.obj:-1: error: LNK2019: unresolved external symbol __ftol2_sse referenced in function _SDL_main
    error: LNK2001: unresolved external symbol _mainCRTStartup

    Please help me !
    Thanks for advanced.
    Last edited by elliwood; 5th March 2014 at 08:07.

Similar Threads

  1. How to draw freetype fonts on QGraphicsScene?
    By sarbh20ss in forum Newbie
    Replies: 8
    Last Post: 11th September 2013, 09:51
  2. using freetype library with Qt
    By saman_artorious in forum Qt Programming
    Replies: 5
    Last Post: 28th August 2013, 11:51
  3. QFontEngineFT memory leak; harfbuzz
    By deepakn in forum Qt Programming
    Replies: 0
    Last Post: 27th September 2011, 13:20
  4. cairo4qt 0.9 - a cairo based paint engine for Qt4
    By dragchan in forum Qt-based Software
    Replies: 0
    Last Post: 18th May 2007, 05:07
  5. FreeType
    By Rayven in forum General Programming
    Replies: 6
    Last Post: 3rd May 2007, 18:49

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.