Skip to content

Commit

Permalink
llama : enable building vision with cmake
Browse files Browse the repository at this point in the history
This commit addresses a few compilation and linking errors that were
occurring when building the vision module with cmake.
  • Loading branch information
danbev committed Dec 16, 2024
1 parent 78021d7 commit bb0ec7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ add_library(${TARGET} STATIC
sampling.h
speculative.cpp
speculative.h
vision.h
vision.cpp
stb_image.h
)

if (BUILD_SHARED_LIBS)
Expand Down
2 changes: 2 additions & 0 deletions examples/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "stb_image.h"

#include <cassert>
#include <cstdarg>
#include <cmath>
#include <cstdlib>
#include <cstring>
Expand All @@ -43,6 +44,7 @@
#include <sstream>
#include <cinttypes>
#include <limits>
#include <climits>

#if defined(LLAVA_LOG_OFF)
# define LOG_INF(...)
Expand Down
1 change: 1 addition & 0 deletions src/llama-vision.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <vector>
#include <array>
#include <string>

enum vision_arch {
VISION_ARCH_UNKNOWN,
Expand Down

0 comments on commit bb0ec7e

Please sign in to comment.