From 4897ff61c6fb0fca70e6d49ddda85252d067f7e1 Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Tue, 1 Oct 2024 22:26:31 +0200 Subject: [PATCH] fix build --- Makefile | 2 -- examples/llava/clip.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5e181cda0..b9fa27973 100644 --- a/Makefile +++ b/Makefile @@ -1477,7 +1477,6 @@ llama-server: \ examples/server/json-schema-to-grammar.mjs.hpp \ examples/server/loading.html.hpp \ common/json.hpp \ - common/stb_image.h \ $(OBJ_ALL) $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) $(CXX) $(CXXFLAGS) $(filter-out %.h %.hpp $<,$^) -Iexamples/server $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LWINSOCK2) @@ -1500,7 +1499,6 @@ libllava.a: examples/llava/llava.cpp \ examples/llava/llava.h \ examples/llava/clip.cpp \ examples/llava/clip.h \ - common/stb_image.h \ common/base64.hpp \ $(OBJ_ALL) $(CXX) $(CXXFLAGS) -static -fPIC -c $< -o $@ -Wno-cast-qual diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 8aa7b0750..ecc538256 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -23,7 +23,7 @@ #include "ggml-vulkan.h" #endif -#define STB_IMAGE_IMPLEMENTATION +#include "vision.h" // without this, we get duplicated symbol error #include "stb_image.h" #include