fix build

This commit is contained in:
Xuan Son Nguyen 2024-10-01 22:26:31 +02:00
parent 5648e30d3e
commit 4897ff61c6
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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 <cassert>