-
Notifications
You must be signed in to change notification settings - Fork 23
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
Static compilation #45
Comments
With a .pro (attached file) file, vv compile and works correctly using the compilation instructions on: Some libraries are still loaded at runtime: The libraries with a * are new libraries (compare to the binary available on the vv website). With some qt options you can remove the following libraries: The following libraries are loaded by the previous binary but are not present here: The new vv size is 72 Mo before strip and 55 Mo after (to compare, the previous one was 54 Mo) |
The 64bits Linux binary works with:
It doesn’t work with:
|
*You can remove the libjpeg dependency: g++ -Wl,-O1 -o vv vv.o vvToolMedianFilter.o vvToolRigidReg.o vvToolCropImage.o vvToolBinarize.o vvToolImageArithm.o vvToolResample.o vvToolMIP.o vvToolConvert.o vvToolROIManager.o vvToolSegmentation.o vvToolProfile.o vvInfoPanel.o vvMainWindow.o vvLinkPanel.o vvOverlayPanel.o vvLandmarksPanel.o vvProgressDialog.o vvSegmentationDialog.o vvSurfaceViewerDialog.o vvDeformationDialog.o vvStructSelector.o vvIntensityValueSlider.o vvLabelImageLoaderWidget.o vvToolWidgetBase.o vvToolSimpleInputSelectorWidget.o vvToolInputSelectorWidget.o vvRegisterForm.o vvQProgressDialogITKCommand.o vvQDicomSeriesSelector.o QTreePushButton.o vvMainWindowBase.o vvImageWarp.o vvDeformableRegistration.o vtkVOXImageWriter.o vvInteractorStyleNavigator.o vvSlicer.o vvLandmarks.o vvLandmarksGlyph.o vvClipPolyData.o vvGlyphSource.o vvGlyph2D.o vvSlicerManager.o vvSlicerManagerCommand.o vvUtils.o vvMesh.o vvMeshActor.o vvMeshReader.o vvMidPosition.o vvImageContour.o vvBinaryImageOverlayActor.o vvStructureSetActor.o vvSaveState.o vvReadState.o vvROIActor.o vvBlendImageActor.o vvToolManager.o vvToolCreatorBase.o vvToolBaseBase.o clitkCommon.o clitkListOfPair.o clitkTimer.o clitkImageCommon.o clitkTransformUtilities.o clitkIO.o clitkGateAsciiImageIO.o clitkGateAsciiImageIOFactory.o clitkVoxImageIO.o clitkVoxImageIOFactory.o clitkVfImageIO.o clitkVfImageIOFactory.o clitkXdrImageIOReader.o clitkXdrImageIOWriter.o clitkXdrImageIOFactory.o rtkHisImageIO.o rtkHisImageIOFactory.o rtkHndImageIO.o rtkHndImageIOFactory.o rtkEdfImageIO.o rtkEdfImageIOFactory.o rtkXRadImageIO.o rtkXRadImageIOFactory.o rtkImagXImageIO.o rtkImagXImageIOFactory.o rtkImagXXMLFileReader.o clitkEsrfHstImageIO.o clitkEsrfHstImageIOFactory.o clitkEsrfHstXMLFileReader.o clitkDicomRTDoseIO.o clitkDicomRTDoseIOFactory.o clitkOrientation.o clitkImageToImageGenericFilterBase.o clitkExceptionObject.o clitkFilterBase.o clitkMemoryUsage.o clitkMatrix.o vvImage.o vvImageReader.o vvImageWriter.o clitkDicomRTStruct2ImageFilter.o clitkDicomRT_ROI.o clitkDicomRT_StructureSet.o clitkDicomRT_Contour.o clitkProfileImageGenericFilter.o clitkMedianImageGenericFilter.o clitkCropImageGenericFilter.o clitkBinarizeImageGenericFilter.o clitkResampleImageGenericFilter.o clitkMIPGenericFilter.o clitkImageArithmGenericFilter.o clitkImageConvertGenericFilter.o clitkMedianImageFilter_ggo.o clitkCropImage_ggo.o clitkBinarizeImage_ggo.o clitkResampleImage_ggo.o clitkMIP_ggo.o clitkImageArithm_ggo.o clitkRegionGrowing_ggo.o clitkProfileImage_ggo.o clitkConnectedComponentLabeling_ggo.o vv_plugin_import.o qrc_vvIcons.o moc_vvMainWindowBase.o moc_QTreePushButton.o moc_vvDocumentation.o moc_vvHelpDialog.o moc_vvQDicomSeriesSelector.o moc_vvSlicerManager.o moc_vvSlicer.o moc_vvStructureSetActor.o moc_vvROIActor.o moc_vvToolCreatorBase.o moc_vvToolMedianFilter.o moc_vvToolRigidReg.o moc_vvToolCropImage.o moc_vvToolBinarize.o moc_vvToolImageArithm.o moc_vvToolResample.o moc_vvToolMIP.o moc_vvToolConvert.o moc_vvToolROIManager.o moc_vvToolSegmentation.o moc_vvToolProfile.o moc_vvInfoPanel.o moc_vvMainWindow.o moc_vvLinkPanel.o moc_vvOverlayPanel.o moc_vvLandmarksPanel.o moc_vvProgressDialog.o moc_vvSegmentationDialog.o moc_vvSurfaceViewerDialog.o moc_vvDeformationDialog.o moc_vvStructSelector.o moc_vvIntensityValueSlider.o moc_vvLabelImageLoaderWidget.o moc_vvToolWidgetBase.o moc_vvToolSimpleInputSelectorWidget.o moc_vvToolInputSelectorWidget.o moc_vvRegisterForm.o -static-libgcc -static-libstdc++ -L/home/tbaudier/vv/vv_static/ITK/ITK_bin/lib/ -L/home/tbaudier/vv/vv_static/VTK/VTK_bin/lib/ -lvtkInteractionImage-6.3 -lvtkInteractionStyle-6.3 -lvtkViewsContext2D-6.3 -lvtkViewsCore-6.3 -lvtkFiltersGeneral-6.3 -lvtkViewsQt-6.3 -lvtkRenderingContextOpenGL-6.3 -lvtkRenderingAnnotation-6.3 -lvtkRenderingFreeType-6.3 -lvtkRenderingQt-6.3 -lvtkGUISupportQtSQL-6.3 -lvtkGUISupportQtOpenGL-6.3 -lvtkChartsCore-6.3 -lvtkRenderingOpenGL-6.3 -lvtkRenderingCore-6.3 -lvtkmetaio-6.3 -lvtkIOLegacy-6.3 -lvtkIOImage-6.3 -lvtkexpat-6.3 -lvtkGeovisCore-6.3 -lvtkFiltersExtraction-6.3 -lvtkFiltersSMP-6.3 -lvtkFiltersProgrammable-6.3 -lvtkFiltersTexture-6.3 -lvtkFiltersHybrid-6.3 -lvtkFiltersCore-6.3 -lvtkImagingMath-6.3 -lvtkCommonExecutionModel-6.3 -lvtkImagingStatistics-6.3 -lvtkRenderingGL2PS-6.3 -lvtkRenderingContext2D-6.3 -lvtkIOSQL-6.3 -lvtkImagingStencil-6.3 -lvtkImagingCore-6.3 -lvtkverdict-6.3 -lvtkInfovisLayout-6.3 -lvtkCommonDataModel-6.3 -lvtktiff-6.3 -lvtkzlib-6.3 -lvtkproj4-6.3 -lvtkNetCDF_cxx-6.3 -lvtkRenderingLOD-6.3 -lvtkhdf5_hl-6.3 -lvtkCommonTransforms-6.3 -lvtkCommonCore-6.3 -lvtkjpeg-6.3 -lvtkFiltersStatistics-6.3 -lvtklibxml2-6.3 -lvtkIOXML-6.3 -lvtkFiltersHyperTree-6.3 -lvtkIOLSDyna-6.3 -lvtkIOXMLParser-6.3 -lvtkImagingMorphological-6.3 -lvtkCommonComputationalGeometry-6.3 -lvtkCommonSystem-6.3 -lvtkCommonMisc-6.3 -lvtkIOImport-6.3 -lvtkInfovisCore-6.3 -lvtkhdf5-6.3 -lvtkexoIIc-6.3 -lvtkIOParallelXML-6.3 -lvtkIOMovie-6.3 -lvtkImagingFourier-6.3 -lvtkgl2ps-6.3 -lvtkRenderingVolumeOpenGL-6.3 -lvtkpng-6.3 -lvtkalglib-6.3 -lvtkFiltersParallel-6.3 -lvtkCommonMath-6.3 -lvtkFiltersImaging-6.3 -lvtksqlite-6.3 -lvtkParallelCore-6.3 -lvtkIOExodus-6.3 -lvtkRenderingLabel-6.3 -lvtkIOExport-6.3 -lvtkIOGeometry-6.3 -lvtkjsoncpp-6.3 -lvtkImagingHybrid-6.3 -lvtkFiltersSources-6.3 -lvtkRenderingImage-6.3 -lvtkDomainsChemistry-6.3 -lvtkIOMINC-6.3 -lvtkoggtheora-6.3 -lvtkIOCore-6.3 -lvtkDICOMParser-6.3 -lvtkCommonColor-6.3 -lvtkRenderingLIC-6.3 -lvtkImagingSources-6.3 -lvtkViewsInfovis-6.3 -lvtkNetCDF-6.3 -lvtkFiltersGeometry-6.3 -lvtkFiltersGeneric-6.3 -lvtkRenderingVolume-6.3 -lvtkIONetCDF-6.3 -lvtksys-6.3 -lvtkIOPLY-6.3 -lvtkftgl-6.3 -lvtkfreetype-6.3 -lvtkImagingGeneral-6.3 -lvtkFiltersParallelImaging-6.3 -lvtkIOAMR-6.3 -lvtkFiltersFlowPaths-6.3 -lvtkImagingColor-6.3 -lvtkFiltersAMR-6.3 -lvtkInteractionWidgets-6.3 -lvtkIOInfovis-6.3 -lvtkFiltersVerdict-6.3 -lvtkFiltersSelection-6.3 -lvtkIOParallel-6.3 -lvtkIOEnSight-6.3 -lvtkFiltersModeling-6.3 -lvtkIOVideo-6.3 -lvtkGUISupportQt-6.3 -litktestlib-4.9 -lITKIOMeta-4.9 -lITKIOGDCM-4.9 -lITKCommon-4.9 -lITKPolynomials-4.9 -lITKOptimizers-4.9 -lITKVNLInstantiation-4.9 -lITKNrrdIO-4.9 -litkhdf5_cpp-4.9 -lITKIOCSV-4.9 -lITKLabelMap-4.9 -lITKIOGIPL-4.9 -lITKIOPNG-4.9 -lITKIOMRC-4.9 -lITKBioCell-4.9 -lITKIOTransformInsightLegacy-4.9 -lITKIONIFTI-4.9 -lITKVTK-4.9 -lITKPath-4.9 -lITKIONRRD-4.9 -litkdouble-conversion-4.9 -lITKKLMRegionGrowing-4.9 -lITKIOTIFF-4.9 -lITKMesh-4.9 -lITKIOIPL-4.9 -lITKOptimizersv4-4.9 -lITKReview-4.9 -lITKniftiio-4.9 -lITKIOJPEG-4.9 -lITKIOTransformBase-4.9 -lITKgiftiio-4.9 -lITKznz-4.9 -lITKIOLSM-4.9 -lITKSpatialObjects-4.9 -lITKWatersheds-4.9 -lITKStatistics-4.9 -lITKIOBMP-4.9 -lITKIOSpatialObjects-4.9 -litkvnl_algo-4.9 -lITKIOVTK-4.9 -litkopenjpeg-4.9 -lITKIOGE-4.9 -lITKBiasCorrection-4.9 -litkv3p_lsqr-4.9 -lITKTransform-4.9 -litkzlib-4.9 -lITKIOStimulate-4.9 -lITKIOMesh-4.9 -litkv3p_netlib-4.9 -lITKVideoIO-4.9 -lITKIOTransformHDF5-4.9 -lITKDICOMParser-4.9 -lITKIOImageBase-4.9 -litkjpeg-4.9 -lITKIOXML-4.9 -litkNetlibSlatec-4.9 -lITKIOBioRad-4.9 -lITKIOTransformMatlab-4.9 -litkvcl-4.9 -litktiff-4.9 -litkpng-4.9 -lITKFEM-4.9 -lITKVideoCore-4.9 -lITKMetaIO-4.9 -litkhdf5-4.9 -lITKQuadEdgeMesh-4.9 -lITKIOHDF5-4.9 -lITKVtkGlue-4.9 -lITKIOSiemens-4.9 -litkvnl-4.9 -lITKEXPAT-4.9 -litksys-4.9 -litkgdcmMSFF-4.9 -litkgdcmopenjpeg-4.9 -litkgdcmjpeg16-4.9 -litkgdcmDICT-4.9 -litkgdcmjpeg12-4.9 -litkgdcmsocketxx-4.9 -litkgdcmuuid-4.9 -litkgdcmcharls-4.9 -litkgdcmDSED-4.9 -litkgdcmjpeg8-4.9 -litkgdcmMEXD-4.9 -litkgdcmCommon-4.9 -litkgdcmIOD-4.9 -L/usr/X11R6/lib -L/usr/lib64 -L/home/tbaudier/vv/vv_static/Qt/lib/ -lXt -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/lib -lQt5Widgets -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/plugins/platforms -lqxcb -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/src/plugins/platforms/xcb/xcb-static -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/plugins/xcbglintegrations -lqxcb-egl-integration -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/xcb-static -lqxcb-glx-integration -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/xcb-static -lQt5XcbQpa -lXi -lSM -lICE -lxcb-static -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/plugins/imageformats -lqico -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/plugins/egldeviceintegrations -lqeglfs-x11-integration -lX11-xcb -lxcb -lQt5EglDeviceIntegration -lQt5PlatformSupport -lfontconfig -lfreetype -lXrender -lXext -lX11 -lQt5Gui /home/tbaudier/vv/vv_static/libjpeg6/jpeg-6b/libjpeg.a -lpng -lEGL -L/home/tbaudier/vv/vv_static/Qt/bin/qtbase/plugins/bearer -lqconnmanbearer -lqgenericbearer -lqnmbearer -lQt5Network -lQt5DBus -lQt5Core -lz -lqtpcre -lm -ldl -lgthread-2.0 -pthread -lglib-2.0 -lrt -lGL -lpthread Copy it and change -ljpeg with the path to the .a file and execute it. *You can remove libtiff & libmng dependencies: |
The static compilation with Qt4 works with the CMAKE file. |
With Qt4: linux-vdso.so.1 (0x00007ffcdfbef000) The libraries with a * are new libraries (compare to the binary available on the vv website). With some qt options you can remove the following libraries: |
With Windows (Visual Studio 12 2013), I had this error: (32bit) https://msdn.microsoft.com/fr-fr/library/72zdcz6f.aspx On Visual Studio, into propertyManager: right click on vv / Properties / Linker / Command Line |
I remove the libstatgrab dependency with the last static build: New one (19/03/2018) |
The static compilation fails.
[ 98%] Built target vvLib
vv/CMakeFiles/vv.dir/build.make:317: * target pattern contains no '%'. Arrêt.
CMakeFiles/Makefile2:98: recipe for target 'vv/CMakeFiles/vv.dir/all’ failed
make1: [vv/CMakeFiles/vv.dir/all] Error 2
make1: Attente des tâches non terminées....
[ 99%] Built target clitkDicomRTStruct2Image
[ 99%] Built target clitkAffineRegistration
Makefile:149: recipe for target 'all’ failed
make: * [all] Error 2
And into vv/CMakeFiles/vv.dir/build.make:317
bin/vv: Qt5::UiPlugin-NOTFOUND
vv.pro.zip
The text was updated successfully, but these errors were encountered: