view · edit · sidebar · attach · print · history

11.1.2019

doing this

 xcodebuild -configuration Development -target "miele-lxiv"

results in

Replace jpeg 9b with /usr/local/Cellar/jpeg/9c/lib/libjpeg.9.dylib in Xcode

PBXCp /Users/install/miele-201612/jpeg-9b/lib/libjpeg.9.dylib /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/miele-lxiv.app/Contents/Frameworks/libjpeg.9.dylib

CMake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK -DBUILD_SHARED_LIBS:BOOL=OFF -DLDFLAGS="-arch x86_64" -DVTK_USE_SYSTEM_TIFF:BOOL=ON .

ext2D-7.1.a /Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkViewsCore-7.1.a /Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkViewsInfovis-7.1.a /Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkzlib-7.1.a -lpng16.16 -framework OpenGL -ltiff.5 -ljpeg.9 -Xlinker -dependency_info -Xlinker /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/miele-lxiv.build/Objects-normal/x86_64/miele-lxiv_dependency_info.dat -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/miele-lxiv.app/Contents/MacOS/miele-lxiv
Undefined symbols for architecture x86_64:
  "_vtk_TIFFClose", referenced from:
      vtkTIFFReader::vtkTIFFReaderInternal::Clean() in libvtkIOImage-7.1.a(vtkTIFFReader.cxx.o)
      vtkTIFFWriter::WriteFileTrailer(std::__1::basic_ofstream<char, std::__1::char_traits<char> >*, vtkImageData*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
  "_vtk_TIFFDefaultStripSize", referenced from:
      vtkTIFFWriter::WriteFileHeader(std::__1::basic_ofstream<char, std::__1::char_traits<char> >*, vtkImageData*, int*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<double>(double*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<float>(float*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<long long>(long long*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<unsigned long long>(unsigned long long*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<long>(long*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)
      void vtkTIFFWriter::WriteVolume<unsigned long>(unsigned long*) in libvtkIOImage-7.1.a(vtkTIFFWriter.cxx.o)

Move libtiff.5.dylib into XCode and delete libtiff.5.2.6.dylib

lopment/miele-lxiv.app/Contents/MacOS/miele-lxiv
ld: library not found for -ltiff.5.2.6

turn on the Glue!
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/ITK -DBUILD_SHARED_LIBS:BOOL=OFF -DModule_ITKVtkGlue=ON ../

clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/ITK/lib/libITKVtkGlue-4.11.a'

Build with -DBUILD_SHARED_LIBS:BOOL=OFF

clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkpng-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkproj4-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingAnnotation-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingContext2D-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingContextOpenGL2-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingCore-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingFreeType-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingGL2PSOpenGL2-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingImage-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingLabel-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingLOD-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingOpenGL2-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingVolume-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtkRenderingVolumeOpenGL2-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtksqlite-7.1.a'
clang: error: no such file or directory: '/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK/lib/libvtksys-7.1.a'

cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/ITK -DBUILD_SHARED_LIBS:BOOL=OFF ../

/Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/2D/ViewerController.mm
:
49
:
OsiriXClasses/3D/ITKSegmentation3D.h
:
21
:11:
fatal error: 'itkImage.h' file not found
        #include "itkImage.h"
                 ^~~~~~~~~~~~
1 error generated.

link vtk correctly in Binaries folder: ln -s /usr/local/include/vtk-7.1/ vtk
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/VTK -DBUILD_SHARED_LIBS:BOOL=OFF .

In file included from /Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/3D/vtkPowerCrustSurfaceReconstruction.cxx:21:
OsiriXClasses/3D/vtkPowerCrustSurfaceReconstruction.h:62:10: fatal error: 'vtkDataSetToDataObjectFilter.h' file not found
#include "vtkDataSetToDataObjectFilter.h"

uncomment one line in tiff.h

In file included from /Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/2D/DCMPix.mm:55:
In file included from /Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/libtiff/include/tiffio.h:33:
/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/libtiff/include/tiff.h:78:23: error: typedef redefinition with different types ('unsigned long' vs 'uint64_t'
      (aka 'unsigned long long'))
typedef TIFF_UINT64_T uint64;

link libtiff and libpng in Binaries to Brew Cellar
ln -s /usr/local/Cellar/libtiff/4.0.9_3/ libtiff

/Users/zdavatz/Documents/xcode/miele-lxiv/Binaries/DCMTK/include/dcmtk/ofstd/offile.h:681:30: warning: implicit conversion loses integer precision: 'size_t'
      (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    :: setbuffer(file_, buf, size);
    ~~                       ^[[~]]
/Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/2D/DCMPix.mm:55:10: fatal error: 'tiffio.h' file not found
#include "tiffio.h"

add define in url.h for below values

CG_EXTERN io_service_t CGDisplayIOServicePort(CGDirectDisplayID display)
                       ^


/Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/GUI/DefaultsOsiriX.mm:1013:28: error: use of 
undeclared

identifier

'SYNC_DICOM_NODES_URL'


        [defaultValues setObject: SYNC_DICOM_NODES_URL forKey: @"syncDICOMNodesURL"];


                                  ^



/Users/zdavatz/Documents/xcode/miele-lxiv/OsiriXClasses/GUI/DefaultsOsiriX.mm:1014:28: error: use of undeclared identifier

'SYNC_DB_URL'


        [defaultValues setObject: SYNC_DB_URL forKey: @"syncOsiriXDBURL"];

Sign to run locally in Xcode

    /usr/bin/codesign --force --sign BD21C8DFC587D3B2B732FE406AC071A92235DD06 --timestamp=none /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A
/Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A: errSecInternalComponent
Command CodeSign failed with a nonzero exit code

GenerateDSYMFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework.dSYM /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/DCM (in target: DCM)
    cd /Users/zdavatz/Documents/xcode/miele-lxiv
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/DCM -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework.dSYM

** BUILD FAILED **

brew install jpeg and mv jpeg libjpeg in Binaries dir.

Use patched version of openjpeg-2.2

/Users/zdavatz/Documents/xcode/miele-lxiv/glue/OpenJPEG/OPJSupport.cpp:
16:10: fatal error: 
'format_defs.h' file not found
#include "format_defs.h"
         ^~~~~~~~~~~~~~~

Download openjpeg 2.2 and mv openjpeg-v2.2.0-osx-x86_64 openjpeg in Binaries Dir

/Documents/xcode/miele-lxiv/glue/OpenJPEG/OPJSupport.cpp -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/OPJSupport.o
/Users/zdavatz/Documents/xcode/miele-lxiv/glue/OpenJPEG/OPJSupport.cpp:
15:10: fatal error: 'openjpeg-2.2/openjpeg.h' file not found
#include "openjpeg-2.2/openjpeg.h"

mv DCMTK-3.6.2 DCMTK in Binaries Dir

work/jpegdatasrc.mm -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/jpegdatasrc.o
/Users/zdavatz/Documents/xcode/miele-lxiv/DCM Framework/jpegdatasrc.mm:31:10: fatal error: 'dcmtk/dcmjpeg/libijg12/jinclude12.h' file not found
#include "dcmtk/dcmjpeg/libijg12/jinclude12.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Install openjpeg with brew and link it to Binaries Dir.

/Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/DCMValueRepresentation.dia -c /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/DCMValueRepresentation.mm -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/DCMValueRepresentation.o

Install DCMTK 3.6.2

v/DCM\ Framework/DCMTransferSyntax.mm -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/DCMTransferSyntax.o

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/OPJSupport.o /Users/zdavatz/Documents/xcode/miele-lxiv/glue/OpenJPEG/OPJSupport.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

steps to install DCMTK properly are: https://github.com/bettar/miele-lxiv/blob/lxiv/doc/how-to-build.md#dcmtk

Build VTK 7.1.1 from source

work/jpegdatasrc.mm -o /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/jpegdatasrc.o
/Users/zdavatz/Documents/xcode/miele-lxiv/DCM Framework/jpegdatasrc.mm:31:10: fatal error: 'dcmtk/dcmjpeg/libijg12/jinclude12.h' file 
not found
#include "dcmtk/dcmjpeg/libijg12/jinclude12.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/zdavatz/Documents/xcode/miele-lxiv/build/Miele_LXIV.build/Development/DCM.build/Objects-normal/x86_64/jpegdatasrc.o /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/jpegdatasrc.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Delete all language files except English

CopyStringsFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/fr.lproj/InfoPlist.strings /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/fr.lproj/InfoPlist.strings (in target: DCM)
    cd /Users/zdavatz/Documents/xcode/miele-lxiv
    builtin-copyStrings --validate --outputencoding UTF-16 --outdir /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/fr.lproj -- /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/fr.lproj/InfoPlist.strings
error: Build input file cannot be found: '/Users/zdavatz/Documents/xcode/miele-lxiv/DCM Framework/fr.lproj/InfoPlist.strings'

** BUILD FAILED **


The following build commands failed:
        CopyStringsFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/zh-Hans.lproj/InfoPlist.strings /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/zh-Hans.lproj/InfoPlist.strings
        CopyStringsFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/ja.lproj/InfoPlist.strings /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/ja.lproj/InfoPlist.strings
        CopyStringsFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/it.lproj/InfoPlist.strings /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/it.lproj/InfoPlist.strings
        CopyStringsFile /Users/zdavatz/Documents/xcode/miele-lxiv/build/Development/DCM.framework/Versions/A/Resources/fr.lproj/InfoPlist.strings /Users/zdavatz/Documents/xcode/miele-lxiv/DCM\ Framework/fr.lproj/InfoPlist.strings
(4 failures)

Set the Code signing for all targets:

zdavatz@MacBookPro:~/Documents/xcode/miele-lxiv$ xcodebuild -configuration Development -target "miele-lxiv"
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "57BXF7EQEM" with a private key was found. (in target 'Decompress')

Build system information
error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "57BXF7EQEM" with a private key was found. (in target 'DCM')

Build system information
error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "57BXF7EQEM" with a private key was found. (in target 'MieleAPI')

Build system information
error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "57BXF7EQEM" with a private key was found. (in target 'LXIV Launcher')

Build system information
error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "57BXF7EQEM" with a private key was found. (in target 'DICOMPrint')

** BUILD FAILED **

Trying to follow these guidelines: I do:

 zdavatz@MacBookPro:~/Documents/xcode/miele-lxiv/doc/build-steps$ ./unzip-binaries.sh

in file `unzip-binaries.sh` line 3 append 3 characters: `../`

 
./unzip-binaries.sh: line 5: cd: /Users/zdavatz/Documents/xcode/miele-lxiv/doc/build-steps/..//Binaries: No such file or directory
unzip:  cannot find or open DB_Previous_Models.zip, DB_Previous_Models.zip.zip or DB_Previous_Models.zip.ZIP.
unzip:  cannot find or open PAGES.zip, PAGES.zip.zip or PAGES.zip.ZIP.
unzip:  cannot find or open OsiriXReport.template.zip, OsiriXReport.template.zip.zip or OsiriXReport.template.zip.ZIP.
unzip:  cannot find or open ILCrashReporter.framework.zip, ILCrashReporter.framework.zip.zip or ILCrashReporter.framework.zip.ZIP.
unzip:  cannot find or open Growl.framework.zip, Growl.framework.zip.zip or Growl.framework.zip.ZIP.
unzip:  cannot find or open 3DconnexionClient.framework.zip, 3DconnexionClient.framework.zip.zip or 3DconnexionClient.framework.zip.ZIP.
unzip:  cannot find or open dciodvfy.zip, dciodvfy.zip.zip or dciodvfy.zip.ZIP.
unzip:  cannot find or open libPapyrusToolkit.a.zip, libPapyrusToolkit.a.zip.zip or libPapyrusToolkit.a.zip.ZIP.
unzip:  cannot find or open Ming.zip, Ming.zip.zip or Ming.zip.ZIP.
unzip:  cannot find or open weasis-portable.zip, weasis-portable.zip.zip or weasis-portable.zip.ZIP.
./unzip-binaries.sh: line 29: cd: /Users/zdavatz/Documents/xcode/miele-lxiv/doc/build-steps/..//Binaries/ReportsToPDF/odt2pdf/build: No such file or directory
unzip:  cannot find or open odt2pdf.zip, odt2pdf.zip.zip or odt2pdf.zip.ZIP.
./unzip-binaries.sh: line 32: cd: /Users/zdavatz/Documents/xcode/miele-lxiv/doc/build-steps/..//Binaries/Icons: No such file or directory
unzip:  cannot find or open Logo.tif.zip, Logo.tif.zip.zip or Logo.tif.zip.ZIP.
./unzip-binaries.sh: line 35: cd: /Users/zdavatz/Documents/xcode/miele-lxiv/doc/build-steps/..//Binaries/PAGES: No such file or directory
rm: ._*: No such file or directory
./unzip-binaries.sh: line 38: cd: /Users/zdavatz/Documents/xcode/miele-lxiv/doc/build-steps/..//AYDicomPrint: No such file or directory
unzip:  cannot find or open libdcmprintscu.dylib.zip, libdcmprintscu.dylib.zip.zip or libdcmprintscu.dylib.zip.ZIP.
unzip:  cannot find or open libxerces-c.27.dylib.zip, libxerces-c.27.dylib.zip.zip or libxerces-c.27.dylib.zip.ZIP.
unzip:  cannot find or open xercesc.zip, xercesc.zip.zip or xercesc.zip.ZIP.
unzip:  cannot find or open options.h.zip, options.h.zip.zip or options.h.zip.ZIP.
unzip:  cannot find or open url.h.zip, url.h.zip.zip or url.h.zip.ZIP.
view · edit · sidebar · attach · print · history
Page last modified on January 14, 2019, at 10:10 AM