mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
214 stars 66 forks source link

MacOs arm64 library not found for -lfbclient #317

Closed Nico-VL closed 11 months ago

Nico-VL commented 1 year ago

I'm new to develop apps on MacOs, so this may be a stupid question. I'm trying to compile flamerobin 0.9.7 on a Mac, but got stuck with finding the right lib and where to place it. I'm using firebird 4.0.1-2709-ARM64.pkg, and tried using the libfbclient.dylib, libfbclient.so, libfbclient.so.2. I noticed their is also an extension .a but I couldn't find a file libfbclient.a. ps: I can confirm that libfbclient.dylib is build for arm64

rlakis commented 1 year ago

Update CMakeLists.txt

if(APPLE)

MacOS specific stuff

# TODO: Untested, if any Mac devs want to check, please get in touch
message(WARNING "MacOS build is untested.\n"
                "Please get in contact to tell us of your results.")
add_definitions(-DIBPP_DARWIN)
list(APPEND FR_LIBS -lfbclient)

list(APPEND SOURCE_LIST
    ${SOURCEDIR}/gui/mac/StyleGuideMAC.cpp
)

add_definitions(-DFR_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")

add the Firebird framework path

list(APPEND FR_LIBS -L/Library/Frameworks/Firebird.framework/Versions/Current/Libraries)
arvanus commented 1 year ago

If this works, can u do a pull request later as soon as user confirms fix? Thanks!

arvanus commented 11 months ago

Closing as #328 looks like fixes this