Closed saurav2502 closed 2 months ago
I made this work on my fork https://github.com/dlt-viewer/dlt-viewer/pull/50 It's not on upstream (here) because I'll wait for the permission to add a custom M1 runner here. @alexmucde
Thanks for quick information.
it was build successfully and it created binary cd ~/dlt-viewer/build/bin ls -al drwxr-xr-x 5 saurav 603018132 160 Jan 25 22:37 . drwxr-xr-x 26 saurav 603018132 832 Jan 25 22:45 .. -rwxr-xr-x 1 saurav 603018132 1349496 Jan 25 22:37 dlt-viewer -rwxr-xr-x 1 saurav 603018132 347888 Jan 25 22:37 libqdlt.dylib drwxr-xr-x 10 saurav 603018132 320 Jan 25 22:37 plugins
When I am running using command ./dlt-viewer
then dot-viewer is launching but it is very unstable, getting closed immediately.
[1] 28067 segmentation fault ./dlt-viewer
Another binary present in /dlt-viewer/build/dist
DLTViewer.app
DLTViewer.dmg
LICENSE.txt
MPL.txt
README.md
ReleaseNotes_Viewer.txt
doc
filters
include
plugins
sdk
src
I tried open -a DLTViewer.app
> did not work.
double click on .dmg file > it just open below tab but does nothing.
Can you help me here that how this could be resolved the launching of the dot-viewer? It would be highly appreciated
Btw, the magic was this https://github.com/dlt-viewer/dlt-viewer/pull/50/files#diff-1a6b54f881d5b938ae705efdae5a93ec8f3eac68ad15e44bf962afd94c2db707R10-R15
This doesn't seem to work for non M1 Mac devices. When trying on Intel Mac's CPACK still fails.
Issue is fixed with latest push #482 and #487
2 warnings generated. [105/105] Linking CXX executable bin/dlt-viewer
CPack Error: Problem compressing the directory CPack Error: Error when generating package: dlt-viewer
-----generated make file cat /Users/saurav/dlt-viewer/build/macdeployqt.cmake set(MACDEPLOYQT_EXECUTABLE "/opt/homebrew/share/qt/libexec/macdeployqt") set(CMAKE_BINARY_DIR "/Users/saurav/dlt-viewer/build") set(CMAKE_INSTALL_PREFIX "/Users/saurav/dlt-viewer/build/install") set(DLT_APP_DIR_NAME "DLTViewer.app") set(DLT_PLUGIN_INSTALLATION_PATH "DLTViewer.app/Contents/MacOS/plugins")
See CMAKE_INSTALL_PREFIX
execute_process(COMMAND ${CMAKE_COMMAND} "--install" "." "--prefix" "${CMAKE_INSTALL_PREFIX}" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" RESULT_VARIABLE STATUS)
if(STATUS AND NOT STATUS EQUAL 0) message(SEND_ERROR "Failure: ${STATUS}") else() message(STATUS "Success.") endif()
execute_process(COMMAND ls -l
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
RESULT_VARIABLE STATUS)
execute_process(COMMAND tree
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
RESULT_VARIABLE STATUS)
file(GLOB DLT_PLUGINS_SO "${CMAKE_INSTALL_PREFIX}/${DLT_PLUGIN_INSTALLATION_PATH}/*.so") list(TRANSFORM DLT_PLUGINS_SO PREPEND "-executable=")
message(STATUS "Call ${MACDEPLOYQT_EXECUTABLE} ${DLT_APP_DIR_NAME} ${DLT_PLUGINS_SO}") execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" "${DLT_APP_DIR_NAME}" -verbose=1 -always-overwrite -dmg -libpath=${CMAKE_INSTALL_PREFIX}/${DLT_APP_DIR_NAME}/Contents/Frameworks ${DLT_PLUGINS_SO} WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" RESULT_VARIABLE STATUS)
if(STATUS AND NOT STATUS EQUAL 0) message(SEND_ERROR "Failure: ${STATUS}") else() message(STATUS "Success.") endif()