This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PHYTC-3P-KIT-AM64: Using External Library in CCS

Part Number: PHYTC-3P-KIT-AM64

Tool/software:

Hello Experts,

I want to use FreeType C library in one of my CCS projects running in A53 core. After compiling the library using CMake generates .lib file. But linking this file to the project is not working. 
Any help would be greatly appreciated.

Best,

Akash

  • Hi Akash,

    Is this project for Linux or FreeRTOS?

  • Hi Bin,

    Thanks for the reply. Currently I'm using it in a FreeRTOS project but later I'll also be using it for a linux project.
    For now the priority is freertos. 

    BR,

    Akash

  • I am routing your query to our RTOS expert for comments.

  • Hello Akash,

    But linking this file to the project is not working. 

    How are you linking the *.lib to the project?

    Have you properly update the path and file name in the project properties?

    What error are you getting? Please share screenshot of the error logs.

    Please refer below image.

    Regards,

    Tushar

  • Hi Tushar,

    Thanks for the reply. Here is the output log while building the freetype library using Cmake. 

    Now, I have the freetyped.lib file generated at freetype-2.13.3\build\Debug dir. Below are the screenshots mentioning inclusion of the path to CCS project.

    In compiler (adding .h file path)

    In linker (adding .lib file path)

    Below is the part of code snippet used to varify installation:

    #include <ft2build.h>
    #include FT_FREETYPE_H

    Inside main function:

    TT_Engine engine; // Handle for the FreeType engine
    TT_Error error; // Variable to capture error codes


    // Initialize the FreeType engine
    error = TT_Init_FreeType(&engine);
    error = TT_Init_FreeType(&engine);
    if (error) {
    printf("Error initializing FreeType engine: %ld\n", error);
    } else {
    printf("FreeType engine initialized successfully.\n");
    }

    error = TT_Done_FreeType(engine);
    if (error) {
    printf("Error closing FreeType engine: %ld\n", error);
    } else {
    printf("FreeType engine closed successfully.\n");
    }

    Following is the output log while building the project.

     

    Best,

    Akash

  • Hello Akash,

    In the above shared screenshot, I can see that you have only added the path of the lib to the project. You will also need to specify which lib to search for.

    Please refer below screenshot.

    Regards,

    Tushar

  • Hi Tushar,

    Thanks for the reply. Now I've  added the lib name too. 

    But again, it has some errors while building the project. Here is the output log.

    BR,
    Akash

  • Hello Akash, 

    Now the above error is different from the one which is shown earlier(i.e. symbols not found). 

    Now the error you are getting is because the *.lib file format is not recognised. 

    Can you please confirm are you using the same compiler to generate the lib file or different compiler is used?

    Also can you please change the name of the lib to freetype.debug.lib and  try once? Make sure you update the name in both original location as well in the CCS project properties.

    Regards,

    Tushar

  • Hi Tushar,

    Yes, the building process is the same as mentioned in my detailed reply here.

    Now, I have the freetyped.lib file generated at freetype-2.13.3\build\Debug dir. Below are the screenshots mentioning inclusion of the path to CCS project.

    After adding the library name in the linker property as suggested by you, I'm getting the error "file format not recognized" as mentioned in my last reply.

    Now after changing the library name to "freetype.debug.lib" in the directory as well as in the property, I'm getting the same error again "file format not recognized".

    Additional point: I'm not sure but it can be related to the building of library as the CCS is targetting an A53 core of an ARM processor. But I have no idea how, if we need to build the library differently in that case. 

    BR,

    Akash

  • Hi Akash,

    Can you please tell what compiler is used for generating freetype.lib?

    Is it GCC compiler or TI-ARM-CLANG?

    Regards,

    Tushar

  • Hi Tushar,

    I have not explicitly selected any compiler here in the command prompt. But from the CmakeCache.txt file it seems that MSVC (Microsoft Visual Studio 2019) is used to configure the build. I've limited knowledge here in such system developments. So kindly let me know if you need more info. I've attached the CmakeCache.txt file for your ref.

    BR,

    Akash

    # This is the CMakeCache file.
    # For build in directory: c:/Users/verma/Downloads/ft2132/freetype-2.13.2/build
    # It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
    # You can edit this file to change values found and used by cmake.
    # If you do not want to change any of the values, simply exit the editor.
    # If you do want to change a value, simply edit, save, and exit the editor.
    # The syntax for the file is as follows:
    # KEY:TYPE=VALUE
    # KEY is the name of a variable in the cache.
    # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
    # VALUE is the current value for the KEY.
    
    ########################
    # EXTERNAL cache entries
    ########################
    
    //Path to a file.
    BROTLIDEC_INCLUDE_DIRS:PATH=BROTLIDEC_INCLUDE_DIRS-NOTFOUND
    
    //Path to a library.
    BROTLIDEC_LIBRARIES:FILEPATH=BROTLIDEC_LIBRARIES-NOTFOUND
    
    //Path to a file.
    BZIP2_INCLUDE_DIR:PATH=BZIP2_INCLUDE_DIR-NOTFOUND
    
    //Path to a library.
    BZIP2_LIBRARY_DEBUG:FILEPATH=BZIP2_LIBRARY_DEBUG-NOTFOUND
    
    //Path to a library.
    BZIP2_LIBRARY_RELEASE:FILEPATH=BZIP2_LIBRARY_RELEASE-NOTFOUND
    
    //Path to a program.
    CMAKE_AR:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/lib.exe
    
    //No help, variable specified on the command line.
    CMAKE_BUILD_TYPE:UNINITIALIZED=Release
    
    //Semicolon separated list of supported configuration types, only
    // supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
    // else will be ignored.
    CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo
    
    //Flags used by the C compiler during all build types.
    CMAKE_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3
    
    //Flags used by the C compiler during DEBUG builds.
    CMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1
    
    //Flags used by the C compiler during MINSIZEREL builds.
    CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG
    
    //Flags used by the C compiler during RELEASE builds.
    CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG
    
    //Flags used by the C compiler during RELWITHDEBINFO builds.
    CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG
    
    //Libraries linked by default with all C applications.
    CMAKE_C_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
    
    //Flags used by the linker during all build types.
    CMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64
    
    //Flags used by the linker during DEBUG builds.
    CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
    
    //Flags used by the linker during MINSIZEREL builds.
    CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during RELEASE builds.
    CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during RELWITHDEBINFO builds.
    CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
    
    //Value Computed by CMake.
    CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=C:/Users/verma/Downloads/ft2132/freetype-2.13.2/build/CMakeFiles/pkgRedirects
    
    //User executables (bin)
    CMAKE_INSTALL_BINDIR:PATH=bin
    
    //Read-only architecture-independent data (DATAROOTDIR)
    CMAKE_INSTALL_DATADIR:PATH=
    
    //Read-only architecture-independent data root (share)
    CMAKE_INSTALL_DATAROOTDIR:PATH=share
    
    //Documentation root (DATAROOTDIR/doc/PROJECT_NAME)
    CMAKE_INSTALL_DOCDIR:PATH=
    
    //C header files (include)
    CMAKE_INSTALL_INCLUDEDIR:PATH=include
    
    //Info documentation (DATAROOTDIR/info)
    CMAKE_INSTALL_INFODIR:PATH=
    
    //Object code libraries (lib)
    CMAKE_INSTALL_LIBDIR:PATH=lib
    
    //Program executables (libexec)
    CMAKE_INSTALL_LIBEXECDIR:PATH=libexec
    
    //Locale-dependent data (DATAROOTDIR/locale)
    CMAKE_INSTALL_LOCALEDIR:PATH=
    
    //Modifiable single-machine data (var)
    CMAKE_INSTALL_LOCALSTATEDIR:PATH=var
    
    //Man documentation (DATAROOTDIR/man)
    CMAKE_INSTALL_MANDIR:PATH=
    
    //C header files for non-gcc (/usr/include)
    CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include
    
    //Install path prefix, prepended onto install directories.
    CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/freetype
    
    //Run-time variable data (LOCALSTATEDIR/run)
    CMAKE_INSTALL_RUNSTATEDIR:PATH=
    
    //System admin executables (sbin)
    CMAKE_INSTALL_SBINDIR:PATH=sbin
    
    //Modifiable architecture-independent data (com)
    CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com
    
    //Read-only single-machine data (etc)
    CMAKE_INSTALL_SYSCONFDIR:PATH=etc
    
    //Path to a program.
    CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/link.exe
    
    //Flags used by the linker during the creation of modules during
    // all build types.
    CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64
    
    //Flags used by the linker during the creation of modules during
    // DEBUG builds.
    CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
    
    //Flags used by the linker during the creation of modules during
    // MINSIZEREL builds.
    CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during the creation of modules during
    // RELEASE builds.
    CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during the creation of modules during
    // RELWITHDEBINFO builds.
    CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
    
    //Path to a program.
    CMAKE_MT:FILEPATH=CMAKE_MT-NOTFOUND
    
    //Value Computed by CMake
    CMAKE_PROJECT_DESCRIPTION:STATIC=
    
    //Value Computed by CMake
    CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
    
    //Value Computed by CMake
    CMAKE_PROJECT_NAME:STATIC=freetype
    
    //RC compiler
    CMAKE_RC_COMPILER:FILEPATH=rc
    
    //Flags for Windows Resource Compiler during all build types.
    CMAKE_RC_FLAGS:STRING=-DWIN32
    
    //Flags for Windows Resource Compiler during DEBUG builds.
    CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG
    
    //Flags for Windows Resource Compiler during MINSIZEREL builds.
    CMAKE_RC_FLAGS_MINSIZEREL:STRING=
    
    //Flags for Windows Resource Compiler during RELEASE builds.
    CMAKE_RC_FLAGS_RELEASE:STRING=
    
    //Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
    CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=
    
    //Flags used by the linker during the creation of shared libraries
    // during all build types.
    CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64
    
    //Flags used by the linker during the creation of shared libraries
    // during DEBUG builds.
    CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL
    
    //Flags used by the linker during the creation of shared libraries
    // during MINSIZEREL builds.
    CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during the creation of shared libraries
    // during RELEASE builds.
    CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO
    
    //Flags used by the linker during the creation of shared libraries
    // during RELWITHDEBINFO builds.
    CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL
    
    //If set, runtime paths are not added when installing shared libraries,
    // but are added when building.
    CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
    
    //If set, runtime paths are not added when using shared libraries.
    CMAKE_SKIP_RPATH:BOOL=NO
    
    //Flags used by the linker during the creation of static libraries
    // during all build types.
    CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64
    
    //Flags used by the linker during the creation of static libraries
    // during DEBUG builds.
    CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
    
    //Flags used by the linker during the creation of static libraries
    // during MINSIZEREL builds.
    CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
    
    //Flags used by the linker during the creation of static libraries
    // during RELEASE builds.
    CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
    
    //Flags used by the linker during the creation of static libraries
    // during RELWITHDEBINFO builds.
    CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
    
    //If this value is on, makefiles will be generated without the
    // .SILENT directive, and all commands will be echoed to the console
    // during the make.  This is useful for debugging only. With Visual
    // Studio IDE projects all commands are done without /nologo.
    CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
    
    //Enable to build 7-Zip source packages
    CPACK_SOURCE_7Z:BOOL=ON
    
    //Enable to build ZIP source packages
    CPACK_SOURCE_ZIP:BOOL=ON
    
    //Disable support of compressed WOFF2 fonts.
    FT_DISABLE_BROTLI:BOOL=OFF
    
    //Disable support of bzip2 compressed fonts.
    FT_DISABLE_BZIP2:BOOL=OFF
    
    //Disable HarfBuzz (used for improving auto-hinting of OpenType
    // fonts).
    FT_DISABLE_HARFBUZZ:BOOL=OFF
    
    //Disable support of PNG compressed OpenType embedded bitmaps.
    FT_DISABLE_PNG:BOOL=OFF
    
    //Disable use of system zlib and use internal zlib library instead.
    FT_DISABLE_ZLIB:BOOL=OFF
    
    //Enable support for meaningful error descriptions.
    FT_ENABLE_ERROR_STRINGS:BOOL=OFF
    
    //Require support of compressed WOFF2 fonts.
    FT_REQUIRE_BROTLI:BOOL=OFF
    
    //Require support of bzip2 compressed fonts.
    FT_REQUIRE_BZIP2:BOOL=OFF
    
    //Require HarfBuzz for improving auto-hinting of OpenType fonts.
    FT_REQUIRE_HARFBUZZ:BOOL=OFF
    
    //Require support of PNG compressed OpenType embedded bitmaps.
    FT_REQUIRE_PNG:BOOL=OFF
    
    //Require system zlib instead of internal zlib library.
    FT_REQUIRE_ZLIB:BOOL=OFF
    
    //Path to a file.
    HarfBuzz_INCLUDE_DIR:PATH=HarfBuzz_INCLUDE_DIR-NOTFOUND
    
    //Path to a library.
    HarfBuzz_LIBRARY:FILEPATH=HarfBuzz_LIBRARY-NOTFOUND
    
    //Arguments to supply to pkg-config
    PKG_CONFIG_ARGN:STRING=
    
    //pkg-config executable
    PKG_CONFIG_EXECUTABLE:FILEPATH=PKG_CONFIG_EXECUTABLE-NOTFOUND
    
    //Path to a file.
    ZLIB_INCLUDE_DIR:PATH=ZLIB_INCLUDE_DIR-NOTFOUND
    
    //Path to a library.
    ZLIB_LIBRARY_DEBUG:FILEPATH=ZLIB_LIBRARY_DEBUG-NOTFOUND
    
    //Path to a library.
    ZLIB_LIBRARY_RELEASE:FILEPATH=C:/msys64_1/mingw64/lib/libz.a
    
    //Value Computed by CMake
    freetype_BINARY_DIR:STATIC=C:/Users/verma/Downloads/ft2132/freetype-2.13.2/build
    
    //Value Computed by CMake
    freetype_IS_TOP_LEVEL:STATIC=ON
    
    //Value Computed by CMake
    freetype_SOURCE_DIR:STATIC=C:/Users/verma/Downloads/ft2132/freetype-2.13.2
    
    
    ########################
    # INTERNAL cache entries
    ########################
    
    //ADVANCED property for variable: BROTLIDEC_INCLUDE_DIRS
    BROTLIDEC_INCLUDE_DIRS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: BROTLIDEC_LIBRARIES
    BROTLIDEC_LIBRARIES-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: BZIP2_INCLUDE_DIR
    BZIP2_INCLUDE_DIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: BZIP2_LIBRARY_DEBUG
    BZIP2_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: BZIP2_LIBRARY_RELEASE
    BZIP2_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_AR
    CMAKE_AR-ADVANCED:INTERNAL=1
    //This is the directory where this CMakeCache.txt was created
    CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/verma/Downloads/ft2132/freetype-2.13.2/build
    //Major version of cmake used to create the current loaded cache
    CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
    //Minor version of cmake used to create the current loaded cache
    CMAKE_CACHE_MINOR_VERSION:INTERNAL=31
    //Patch version of cmake used to create the current loaded cache
    CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
    //Path to CMake executable.
    CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe
    //Path to cpack program executable.
    CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe
    //Path to ctest program executable.
    CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe
    //ADVANCED property for variable: CMAKE_C_FLAGS
    CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
    CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
    CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
    CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
    CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
    //Executable file format
    CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
    //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
    CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
    CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
    CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
    CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
    CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Name of external makefile project generator.
    CMAKE_EXTRA_GENERATOR:INTERNAL=
    //Name of generator.
    CMAKE_GENERATOR:INTERNAL=Visual Studio 16 2019
    //Generator instance identifier.
    CMAKE_GENERATOR_INSTANCE:INTERNAL=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional
    //Name of generator platform.
    CMAKE_GENERATOR_PLATFORM:INTERNAL=
    //Name of generator toolset.
    CMAKE_GENERATOR_TOOLSET:INTERNAL=
    //Source directory with the top level CMakeLists.txt file for this
    // project
    CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/verma/Downloads/ft2132/freetype-2.13.2
    //ADVANCED property for variable: CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_DATADIR
    CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR
    CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR
    CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_RUNSTATEDIR
    CMAKE_INSTALL_RUNSTATEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_SBINDIR
    CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR
    CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR
    CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_LINKER
    CMAKE_LINKER-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
    CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
    CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
    CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
    CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
    CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_MT
    CMAKE_MT-ADVANCED:INTERNAL=1
    //number of local generators
    CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
    //Platform information initialized
    CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
    //noop for ranlib
    CMAKE_RANLIB:INTERNAL=:
    //ADVANCED property for variable: CMAKE_RC_COMPILER
    CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
    CMAKE_RC_COMPILER_WORKS:INTERNAL=1
    //ADVANCED property for variable: CMAKE_RC_FLAGS
    CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
    CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
    CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
    CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
    CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Path to CMake installation.
    CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.31
    //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
    CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
    CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
    CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
    CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
    CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_SKIP_RPATH
    CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
    CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
    CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
    CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
    CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
    CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
    CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CPACK_SOURCE_7Z
    CPACK_SOURCE_7Z-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: CPACK_SOURCE_ZIP
    CPACK_SOURCE_ZIP-ADVANCED:INTERNAL=1
    PC_BROTLIDEC_CFLAGS:INTERNAL=
    PC_BROTLIDEC_CFLAGS_I:INTERNAL=
    PC_BROTLIDEC_CFLAGS_OTHER:INTERNAL=
    PC_BROTLIDEC_FOUND:INTERNAL=
    PC_BROTLIDEC_INCLUDEDIR:INTERNAL=
    PC_BROTLIDEC_LIBDIR:INTERNAL=
    PC_BROTLIDEC_LIBS:INTERNAL=
    PC_BROTLIDEC_LIBS_L:INTERNAL=
    PC_BROTLIDEC_LIBS_OTHER:INTERNAL=
    PC_BROTLIDEC_LIBS_PATHS:INTERNAL=
    PC_BROTLIDEC_MODULE_NAME:INTERNAL=
    PC_BROTLIDEC_PREFIX:INTERNAL=
    PC_BROTLIDEC_STATIC_CFLAGS:INTERNAL=
    PC_BROTLIDEC_STATIC_CFLAGS_I:INTERNAL=
    PC_BROTLIDEC_STATIC_CFLAGS_OTHER:INTERNAL=
    PC_BROTLIDEC_STATIC_LIBDIR:INTERNAL=
    PC_BROTLIDEC_STATIC_LIBS:INTERNAL=
    PC_BROTLIDEC_STATIC_LIBS_L:INTERNAL=
    PC_BROTLIDEC_STATIC_LIBS_OTHER:INTERNAL=
    PC_BROTLIDEC_STATIC_LIBS_PATHS:INTERNAL=
    PC_BROTLIDEC_VERSION:INTERNAL=
    PC_BZIP2_CFLAGS:INTERNAL=
    PC_BZIP2_CFLAGS_I:INTERNAL=
    PC_BZIP2_CFLAGS_OTHER:INTERNAL=
    PC_BZIP2_FOUND:INTERNAL=
    PC_BZIP2_INCLUDEDIR:INTERNAL=
    PC_BZIP2_LIBDIR:INTERNAL=
    PC_BZIP2_LIBS:INTERNAL=
    PC_BZIP2_LIBS_L:INTERNAL=
    PC_BZIP2_LIBS_OTHER:INTERNAL=
    PC_BZIP2_LIBS_PATHS:INTERNAL=
    PC_BZIP2_MODULE_NAME:INTERNAL=
    PC_BZIP2_PREFIX:INTERNAL=
    PC_BZIP2_STATIC_CFLAGS:INTERNAL=
    PC_BZIP2_STATIC_CFLAGS_I:INTERNAL=
    PC_BZIP2_STATIC_CFLAGS_OTHER:INTERNAL=
    PC_BZIP2_STATIC_LIBDIR:INTERNAL=
    PC_BZIP2_STATIC_LIBS:INTERNAL=
    PC_BZIP2_STATIC_LIBS_L:INTERNAL=
    PC_BZIP2_STATIC_LIBS_OTHER:INTERNAL=
    PC_BZIP2_STATIC_LIBS_PATHS:INTERNAL=
    PC_BZIP2_VERSION:INTERNAL=
    PC_HARFBUZZ_CFLAGS:INTERNAL=
    PC_HARFBUZZ_CFLAGS_I:INTERNAL=
    PC_HARFBUZZ_CFLAGS_OTHER:INTERNAL=
    PC_HARFBUZZ_FOUND:INTERNAL=
    PC_HARFBUZZ_INCLUDEDIR:INTERNAL=
    PC_HARFBUZZ_LIBDIR:INTERNAL=
    PC_HARFBUZZ_LIBS:INTERNAL=
    PC_HARFBUZZ_LIBS_L:INTERNAL=
    PC_HARFBUZZ_LIBS_OTHER:INTERNAL=
    PC_HARFBUZZ_LIBS_PATHS:INTERNAL=
    PC_HARFBUZZ_MODULE_NAME:INTERNAL=
    PC_HARFBUZZ_PREFIX:INTERNAL=
    PC_HARFBUZZ_STATIC_CFLAGS:INTERNAL=
    PC_HARFBUZZ_STATIC_CFLAGS_I:INTERNAL=
    PC_HARFBUZZ_STATIC_CFLAGS_OTHER:INTERNAL=
    PC_HARFBUZZ_STATIC_LIBDIR:INTERNAL=
    PC_HARFBUZZ_STATIC_LIBS:INTERNAL=
    PC_HARFBUZZ_STATIC_LIBS_L:INTERNAL=
    PC_HARFBUZZ_STATIC_LIBS_OTHER:INTERNAL=
    PC_HARFBUZZ_STATIC_LIBS_PATHS:INTERNAL=
    PC_HARFBUZZ_VERSION:INTERNAL=
    //ADVANCED property for variable: PKG_CONFIG_ARGN
    PKG_CONFIG_ARGN-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
    PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: ZLIB_INCLUDE_DIR
    ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: ZLIB_LIBRARY_DEBUG
    ZLIB_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
    //ADVANCED property for variable: ZLIB_LIBRARY_RELEASE
    ZLIB_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
    //CMAKE_INSTALL_PREFIX during last run
    _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=C:/Program Files (x86)/freetype
    __pkg_config_checked_PC_BROTLIDEC:INTERNAL=1
    __pkg_config_checked_PC_BZIP2:INTERNAL=1
    __pkg_config_checked_PC_HARFBUZZ:INTERNAL=1
    
    

  • Hi Akash,

    Thanks for sharing the above CMake file. I am not very much familiar with the Cmake tool. 

    But for me it seems like you are not using the GCC arm compiler and linker for building the freetype.lib file. That's why you are getting the file format error while linking.

    Please build the freetype.lib using the GCC compiler, you can use existing makefiles as reference present in the MCU+SDK for generating new lib for A53 cores.

    Regards,

    Tushar

  • you can use existing makefiles as reference present in the MCU+SDK for generating new lib for A53 cores.

    Hi Tushar,

    Can you please send a link to the reference please? The latest version of Freetype lib has numerous .h and .c files at different locations so its not practical to build it manually by additing .h and .c files to a library CCS project.

    BR,

    Akash

  • Hi Akash,

    Can you please send a link to the reference please?

    Please refer https://github.com/TexasInstruments/mcupsdk-core/blob/next/source/drivers/makefile.am64x.a53.gcc-aarch64 to check how drivers lib is generated in MCU+SDK for A53 core. 

    The latest version of Freetype lib has numerous .h and .c files at different locations so its not practical to build it manually by additing .h and .c files to a library CCS project.

    As you can see there are number of *.c and *.h file used to create drivers.lib file, similar way you can try to create freetype lib by providing necessary *.c and *.h file. We will not be able to support custom lib file generation, you need to resolve issues by yourself.

    Regards,

    Tushar