From f64a3fd1ced8d72129fa280a29226ee5dc67077f Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 2 Dec 2019 22:24:06 +0800 Subject: [PATCH] build ok! but don't debug --- CMakeLists.txt | 3 ++- TextureFileCreater.cpp | 2 +- main.cpp | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a3b43b..63df51c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,4 +44,5 @@ set(COPYRIGHT "Copyright (c) 1997-2019 hyzgame.com. All rights reserved.") set(IDENTIFIER "com.hyzgame.texconv") target_link_libraries(TexConv PRIVATE CMCore CMPlatform CMUtil - Qt5::Core Qt5::Gui Qt5::Widgets) + Qt5::Core Qt5::Gui Qt5::Widgets + DevIL ILU) diff --git a/TextureFileCreater.cpp b/TextureFileCreater.cpp index b3b4fc9..293a8e3 100644 --- a/TextureFileCreater.cpp +++ b/TextureFileCreater.cpp @@ -39,7 +39,7 @@ namespace if(pos==-1) return old_name.SubString(0,pos+1)+new_extname; else - return old_name+BaseString(split_char)+new_extname; + return old_name+BaseString::charOf(split_char)+new_extname; } }//namespace diff --git a/main.cpp b/main.cpp index ab08d3e..54690ce 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -73,13 +74,11 @@ protected: void ProcFile(EnumFileConfig *efc,FileInfo &fi) override { - ConvertImage ci(fi.fullname); + ConvertImage ci; - if(!ci.Load())return; + if(!ci.Load(fi.fullname))return; if(!ci.Convert(pixel_fmt))return; - - } public: