Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Attempt to cross-compile PolySeg for use on the Web #4

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix dockerfile missing dockcross name
swederik committed Jun 25, 2019
commit 27db4774c14a728ee7e50d2fb2d78318f6de9ddf
2 changes: 1 addition & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ RUN ls /install-prefix/lib/PolySeg/
# TODO: For some reason it is installed in this weird directory
# /install-prefix/lib/PolySeg/libPolySeg.a


ARG IMAGE=ohif/polyseg-web
ARG VERSION=latest
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
WORKDIR /work
6 changes: 2 additions & 4 deletions web/helloPolySeg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -25,10 +25,8 @@ set(hello_SRCS helloPolySeg.cxx)
if(EMSCRIPTEN)
include(ITKBridgeJavaScript)
web_add_executable(hello ${hello_SRCS})
web_target_link_libraries(hello ${VTK_LIBRARIES} ${ITK_LIBRARIES} /install-prefix/lib/PolySeg/libPolySeg.a)
web_target_link_libraries(hello ${VTK_LIBRARIES} ${ITK_LIBRARIES} install-prefix/lib/PolySeg/libPolySeg.a)
else()
add_executable(hello ${hello_SRCS})
target_link_libraries(hello ${ITK_LIBRARIES})
target_link_libraries(hello ${VTK_LIBRARIES})
target_link_libraries(hello /install-prefix/lib/PolySeg/libPolySeg.a)
target_link_libraries(hello ${VTK_LIBRARIES} ${ITK_LIBRARIES} install-prefix/lib/PolySeg/libPolySeg.a)
endif()