gemma.cpp icon indicating copy to clipboard operation
gemma.cpp copied to clipboard

How can I get the compiled static executable binary file in linux platform?

Open lnxknl opened this issue 10 months ago • 1 comments

I want to run this model in limited internet env, so I want to get this executable binary file.

lnxknl avatar Apr 25 '24 17:04 lnxknl

I made some changes to the cmake build file, so that the build result is portable. maybe you can wait for #169 to be merged or changed locally to have a try.

xinpingwang avatar Apr 30 '24 12:04 xinpingwang

Thanks @xinpingwang , I think your change plus set(BUILD_SHARED_LIBS OFF) set(CMAKE_EXE_LINKER_FLAGS "-static") is sufficient :) Please feel free to reopen if you'd like to discuss further.

jan-wassenberg avatar May 07 '24 09:05 jan-wassenberg