a8jan / fujinet-pc

FujiNet firmware port to Linux, MacOS and Windows
GNU General Public License v3.0
16 stars 15 forks source link

RPM Release or Build Instructions? #4

Open Pinjontall94 opened 11 months ago

Pinjontall94 commented 11 months ago

I'd love to try this out, but I'm on fedora 38, and compiling fails to build fujinet-pc/lib/utils/string_utils.cpp. This is true even with manually specifying the mbedtls libs with the following invocation!

cmake .. -DCMAKE_BUILD_TYPE:STRING=Debug -DMBEDCRYPTO_STATIC_LIB=/usr/lib64/libmbedcrypto.so -DMBEDTLS_STATIC_LIB=/usr/lib64/libmbedtls.so -DMBEDX509_STATIC_LIB=/usr/lib64/libmbedx509.so

a8jan commented 3 months ago

fujinet-pc code merged into main firmware repository https://github.com/FujiNetWIFI/fujinet-firmware Could you please check is it still failing to compile on Fedora?

cd fujinet-firmware
# build FN-PC for ATARI target
build.sh -p ATARI
# or build FN-PC for APPLE target
build.sh -p APPLE
# result is always in build/dist subdirectory
Pinjontall94 commented 3 months ago

Yeah, still failing with a related error (different than last time, but the same error message for each one):

-- Configuring incomplete, errors occurred!
Building for Release
-- Running CMake to build FujiNet-PC (Linux, macOS, Windows), target APPLE
-- SLIP_PROTOCOL is NET
***************** Mbed TLS *****************
MBEDTLS_STATIC_LIB=MBEDTLS_STATIC_LIB-NOTFOUND
MBEDX509_STATIC_LIB=MBEDX509_STATIC_LIB-NOTFOUND
MBEDCRYPTO_STATIC_LIB=MBEDCRYPTO_STATIC_LIB-NOTFOUND
MBEDTLS_INCLUDE_DIR=/usr/include
********************************************
CMake Deprecation Warning at components_pc/cJSON/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find mbedTLS, try to set the path to mbedTLS root folder

              in the system variable MBEDTLS_ROOT_DIR (missing: MBEDTLS_LIBRARIES) (found version "2.28.8")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  components_pc/libssh/cmake/Modules/FindMbedTLS.cmake:85 (find_package_handle_standard_args)
  components_pc/libssh/CMakeLists.txt:56 (find_package)

-- Configuring incomplete, errors occurred!
Error running initial cmake. Aborting

Notably this is after I made sure the system was updated, and had both mbedtls and mbedtls-devel installed ;/