Page 1 of 1

trying to compile ftpd - cant find ZLIB

Posted: Mon Apr 07, 2025 9:14 am
by ELY_M

I am on windows 10 and using msys

I am trying to build ftpd from https://github.com/mtheall/ftpd

I already have switch-zlib installed and all needed libraries installed.

103@CYAN103 MSYS /g/!dev/switchdev/ftpd-latest/build
$ cmake ..
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindZLIB.cmake:202 (find_package_handle_standard_args)
CMakeLists.txt:28 (find_package)


Re: trying to compile ftpd - cant find ZLIB

Posted: Mon May 26, 2025 10:37 am
by WinterMute

You're attempting to build ftpd for the host system - ftpd is a multiplatform project which can be built for many of the platforms we support.

You can build for switch by running these commands from the source directory

Code: Select all

/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -B _switch -S .
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake --build _switch