BTW, recent macOS does not ship gdb as a part of their SDK anymore, and it seems that they have switched to lldb. are you using gdb?
Regards, mpsuzuki suzuki toshiya wrote: > Hi, > > It seems that cmake experts have left FreeType, so I try to respond > you although I'm not an expert. > > The shortest response would be: "CMakeLists.txt of FreeType does not > support Debug build, so your attempt would not work". Nothing to say, > the maintainers would welcome the proposal of patch, could you draft > something? > > -- > following is longer response. > > My first question is: cmake has any predefined compiler flag set for > CMAKE_C_FLAGS_DEBUG? By brief checking of cmake manual, it seems that > the effect of CMAKE_BUILD_TYPE "Debug" is only the reflection of the > CMAKE_C_FLAGS_DEBUG option in the compilation. I cannot find any > predefined set of CMAKE_C_FLAGS_DEBUG from the manual, and in my > experiment on macOS, no typical debug options like "-g" is given to. > I'm afraid default value of CMAKE_C_FLAGS_DEBUG is empty, so, nothing > special happened (please try "make VERBOSE=1" to check the commands > are being issued). > > In my impression, expecting "I set CMAKE_BUILD_TYPE to Debug, so the > softwares should be built for debug mode" is something like a person > wondering as "I changed the suffix of teacup.txt from txt to jpg, so > I get teacup.jpg, but my browser does not show the picture of teacup. > why?". In the package of the softwares whose CMakeLists.txt is ready > for debug build, -DCMAK_BUILD_TYPE=Debug might work, but FT is not such. > > Regards, > mpsuzuki > > Werner LEMBERG wrote: >> Please help this guy. >> >> >> Werner >> >> >> ------------------------------------------------------------------------ > >> Hi Werner Lemberg: >> >> I am work focus rendering 2d text ,so I want to study your Project >> "FreeType", >> >> so I write a program ,use it to test "FreeType". >> >> >> First of all,I git sources of FreeType,compile it to libfreetype.dylib on >> MacOS use Cmake: >> >> >> I modified CMakeLists.txt of FreeType and add a line : >> >> SET(CMAKE_BUILD_TYPE "Debug") >> >> then use cmake compile, >> ---------------? >> mkdir build >> cd build >> cmake -D BUILD_SHARED_LIBS:BOOL=true .. >> make >> sudo make install? >> --------------- >> >> >> >> Second I write a test program on MacOS. >> >> >> >> >> But I can't use gdb by command line to debugging into libfreetype.dylib! >> >> >> Can you help me ? >> >> >> Thans a lot. >> >> >> Best regards. >> >> >> 韩忠涛 >> 终端网络部 大播放内核 >> >> 爱奇艺公司 iQIYI, Inc. >> 地址:北京市海淀区中关村大街甲1号鼎好电子大厦A座9层 >> 邮编:100080 >> 手机:+86 13661073959 >> 邮箱:[email protected]<mailto:[email protected]> >> > _______________________________________________ > Freetype mailing list > [email protected] > https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.nongnu.org%2Fmailman%2Flistinfo%2Ffreetype&data=02%7C01%7Cmpsuzuki%40hiroshima-u.ac.jp%7C89e61235c42f40cbd86908d6cf6cbeb3%7Cc40454ddb2634926868d8e12640d3750%7C1%7C0%7C636924463304892298&sdata=LkqlJH350kDkkVlRYUTtyLv5UCneCrNmEoqPA8jPyiw%3D&reserved=0 _______________________________________________ Freetype mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype
