mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Everything seems to work if we specify LD_LIBRARY_PATH=./bin/lib
This commit is contained in:
parent
dff533d1a7
commit
a5e0265927
@ -14,8 +14,7 @@ if (${BUILD_STANDALONE} MATCHES "true")
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/lame-bin/include"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/libmicrohttpd-bin/include"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/zlib-bin/include"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/curl-bin/include"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/ncurses-bin/include")
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/curl-bin/include")
|
||||
|
||||
list(
|
||||
APPEND
|
||||
@ -24,8 +23,7 @@ if (${BUILD_STANDALONE} MATCHES "true")
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/lame-bin/lib"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/libmicrohttpd-bin/lib"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/zlib-bin/lib"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/curl-bin/lib"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/ncurses-bin/lib")
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/curl-bin/lib")
|
||||
else()
|
||||
message(STATUS "[standalone-build] *NOT* enabled!")
|
||||
endif()
|
@ -9,26 +9,9 @@ if [[ "$PLATFORM" == 'Darwin' ]]; then
|
||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/homebrew/opt/openssl/lib/pkgconfig/"
|
||||
fi
|
||||
|
||||
NCURSES_TERMINFO=
|
||||
if [[ "$PLATFORM" == 'Linux' ]]; then
|
||||
NCURSES_TERMINFO="--with-terminfo-dirs=/etc/terminfo:/lib/terminfo:/usr/share/terminfo"
|
||||
fi
|
||||
|
||||
export CFLAGS="-fPIC"
|
||||
export CXXFLAGS="-fPIC"
|
||||
|
||||
#
|
||||
# ncurses
|
||||
#
|
||||
https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.3.tar.gz
|
||||
tar xvfz ncurses-6.3.tar.gz
|
||||
cd ncurses-6.3
|
||||
./configure --enable-pc-files --enable-sigwinch --enable-symlinks --enable-widec --with-shared --with-cxx-shared --with-gpm=no --without-ada ${NCURSES_TERMINFO} --prefix=`pwd`/output
|
||||
make -j8 || exit $?
|
||||
make install
|
||||
mv output ../ncurses-bin
|
||||
cd ..
|
||||
|
||||
#
|
||||
# boost
|
||||
#
|
||||
|
@ -20,8 +20,6 @@ elif [[ "$PLATFORM" == 'Linux' ]]; then
|
||||
cp vendor/ffmpeg-bin/lib/libavutil-musikcube.so.57 ./bin/lib/
|
||||
cp vendor/ffmpeg-bin/lib/libswresample-musikcube.so.4 ./bin/lib/
|
||||
cp vendor/curl-bin/lib/libcurl.so.4 ./bin/lib/
|
||||
cp vendor/ncurses-bin/lib/libncursesw.so.6 ./bin/lib
|
||||
cp vendor/ncurses-bin/lib/libpanelw.so.6 ./bin/lib
|
||||
|
||||
cp /lib/x86_64-linux-gnu/libssl.so.1.1 ./bin/lib/
|
||||
cp /lib/x86_64-linux-gnu/libcrypto.so.1.1 ./bin/lib/
|
||||
@ -32,6 +30,9 @@ elif [[ "$PLATFORM" == 'Linux' ]]; then
|
||||
cp /lib/x86_64-linux-gnu/libvorbis.so.0 ./bin/lib
|
||||
cp /lib/x86_64-linux-gnu/libvorbisfile.so.3 ./bin/lib
|
||||
cp /lib/x86_64-linux-gnu/libogg.so.0 ./bin/lib
|
||||
cp /lib/x86_64-linux-gnu/libncursesw.so.6 ./bin/lib
|
||||
cp /lib/x86_64-linux-gnu/libpanelw.so.6 ./bin/lib
|
||||
cp /lib/x86_64-linux-gnu/libtinfo.so.6 ./bin/lib
|
||||
|
||||
chmod -x ./bin/lib/*
|
||||
fi
|
||||
|
@ -94,18 +94,14 @@ else()
|
||||
set(PANEL_LIBRARY_NAME panelw)
|
||||
endif()
|
||||
|
||||
if (${BUILD_STANDALONE} MATCHES "true")
|
||||
find_library(LIBNCURSES NAMES ${CURSES_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES} NO_DEFAULT_PATH)
|
||||
find_library(LIBPANEL NAMES ${PANEL_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES} NO_DEFAULT_PATH)
|
||||
else()
|
||||
find_library(LIBNCURSES NAMES ${CURSES_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES})
|
||||
find_library(LIBPANEL NAMES ${PANEL_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES})
|
||||
endif()
|
||||
find_library(LIBNCURSES NAMES ${CURSES_LIBRARY_NAME})
|
||||
find_library(LIBPANEL NAMES ${PANEL_LIBRARY_NAME})
|
||||
find_library(LIBTINFO NAMES tinfo)
|
||||
|
||||
message(STATUS "[musikcube] using libncurses at: " ${LIBNCURSES})
|
||||
message(STATUS "[musikcube] using libpanel at: " ${LIBPANEL})
|
||||
message(STATUS "[musikcube] using libtinfo at: " ${LIBTINFO})
|
||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${LIBNCURSES} ${LIBPANEL} musikcore)
|
||||
message(STATUS "[musikcube] using libpanel at: " ${LIBTINFO})
|
||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${LIBNCURSES} ${LIBPANEL} ${LIBTINFO} musikcore)
|
||||
|
||||
if (ENABLE_PCH MATCHES "true")
|
||||
message(STATUS "[musikcube] enabling precompiled headers")
|
||||
|
Loading…
Reference in New Issue
Block a user