Struggling with Sierra build

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Struggling with Sierra build

Bill Lorensen
Folks,

I have been able to build Slicer on Sierra 10.12.3 using
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
-DSlicer_BUILD_EMSegment:BOOL=OFF \
-DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
-DSlicer_BUILD_SimpleFilters:BOOL=OFF \
-DSlicer_USE_NUMPY:BOOL=OFF \
-DSlicer_USE_OpenIGTLink:BOOL=OFF \
-DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
-DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
-DSlicer_USE_SimpleITK:BOOL=OFF \
-DSlicer_USE_PYTHONQT:BOOL=ON \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
-DCMAKE_BUILD_TYPE:STRING=Release \
../Slicer

But when I run Slicer I get this runtime error:

./Slicer
dyld: Symbol not found: _PyBool_Type
  Referenced from:
/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
  Expected in: /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
 in /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
error: [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
exit abnormally - Report the problem.


--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Steve Pieper-2
Hi Bill -

That's interesting - I've always been doing debug builds and haven't run into this issue.  Did you happen to try a debug build?

The dashboard seems to be working fine in release mode.


it purposely uses an old deployment target (10.6) but I don't know if that would impact this linker issue.

-Steve

On Mon, Feb 6, 2017 at 9:55 AM, Bill Lorensen <[hidden email]> wrote:
Folks,

I have been able to build Slicer on Sierra 10.12.3 using
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
-DSlicer_BUILD_EMSegment:BOOL=OFF \
-DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
-DSlicer_BUILD_SimpleFilters:BOOL=OFF \
-DSlicer_USE_NUMPY:BOOL=OFF \
-DSlicer_USE_OpenIGTLink:BOOL=OFF \
-DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
-DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
-DSlicer_USE_SimpleITK:BOOL=OFF \
-DSlicer_USE_PYTHONQT:BOOL=ON \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
-DCMAKE_BUILD_TYPE:STRING=Release \
../Slicer

But when I run Slicer I get this runtime error:

./Slicer
dyld: Symbol not found: _PyBool_Type
  Referenced from:
/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
  Expected in: /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
 in /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
error: [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
exit abnormally - Report the problem.


--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Bill Lorensen
In reply to this post by Bill Lorensen
That is an old snow leopard build 10.6. I'm on Sierra, 10.12.3


On Mon, Feb 6, 2017 at 10:24 AM, Steve Pieper <[hidden email]> wrote:

> Hi Bill -
>
> That's interesting - I've always been doing debug builds and haven't run
> into this issue.  Did you happen to try a debug build?
>
> The dashboard seems to be working fine in release mode.
>
> http://slicer.cdash.org/buildSummary.php?buildid=967455
>
> it purposely uses an old deployment target (10.6) but I don't know if that
> would impact this linker issue.
>
> -Steve
>
> On Mon, Feb 6, 2017 at 9:55 AM, Bill Lorensen <[hidden email]>
> wrote:
>>
>> Folks,
>>
>> I have been able to build Slicer on Sierra 10.12.3 using
>> cmake -DCMAKE_BUILD_TYPE:STRING=Release \
>> -DSlicer_BUILD_EMSegment:BOOL=OFF \
>> -DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
>> -DSlicer_BUILD_SimpleFilters:BOOL=OFF \
>> -DSlicer_USE_NUMPY:BOOL=OFF \
>> -DSlicer_USE_OpenIGTLink:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
>> -DSlicer_USE_SimpleITK:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT:BOOL=ON \
>> -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
>> -DCMAKE_BUILD_TYPE:STRING=Release \
>> ../Slicer
>>
>> But when I run Slicer I get this runtime error:
>>
>> ./Slicer
>> dyld: Symbol not found: _PyBool_Type
>>   Referenced from:
>>
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>>   Expected in:
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
>>  in
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>> error:
>> [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
>> exit abnormally - Report the problem.
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> slicer-devel mailing list
>> [hidden email]
>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>> To unsubscribe: send email to [hidden email] with
>> unsubscribe as the subject
>>
>> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>



--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Steve Pieper-2
In reply to this post by Bill Lorensen
Just trying to narrow things down - did you try a debug build?

On Mon, Feb 6, 2017 at 10:29 AM, Bill Lorensen <[hidden email]> wrote:
That is an old snow leopard build 10.6. I'm on Sierra, 10.12.3


On Mon, Feb 6, 2017 at 10:24 AM, Steve Pieper <[hidden email]> wrote:
> Hi Bill -
>
> That's interesting - I've always been doing debug builds and haven't run
> into this issue.  Did you happen to try a debug build?
>
> The dashboard seems to be working fine in release mode.
>
> http://slicer.cdash.org/buildSummary.php?buildid=967455
>
> it purposely uses an old deployment target (10.6) but I don't know if that
> would impact this linker issue.
>
> -Steve
>
> On Mon, Feb 6, 2017 at 9:55 AM, Bill Lorensen <[hidden email]>
> wrote:
>>
>> Folks,
>>
>> I have been able to build Slicer on Sierra 10.12.3 using
>> cmake -DCMAKE_BUILD_TYPE:STRING=Release \
>> -DSlicer_BUILD_EMSegment:BOOL=OFF \
>> -DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
>> -DSlicer_BUILD_SimpleFilters:BOOL=OFF \
>> -DSlicer_USE_NUMPY:BOOL=OFF \
>> -DSlicer_USE_OpenIGTLink:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
>> -DSlicer_USE_SimpleITK:BOOL=OFF \
>> -DSlicer_USE_PYTHONQT:BOOL=ON \
>> -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
>> -DCMAKE_BUILD_TYPE:STRING=Release \
>> ../Slicer
>>
>> But when I run Slicer I get this runtime error:
>>
>> ./Slicer
>> dyld: Symbol not found: _PyBool_Type
>>   Referenced from:
>>
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>>   Expected in:
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
>>  in
>> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>> error:
>> [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
>> exit abnormally - Report the problem.
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> slicer-devel mailing list
>> [hidden email]
>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>> To unsubscribe: send email to [hidden email] with
>> unsubscribe as the subject
>>
>> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>



--
Unpaid intern in BillsBasement at noware dot com


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Bill Lorensen
In reply to this post by Bill Lorensen
I'll try debug, but it will probably take most of the day...


On Mon, Feb 6, 2017 at 10:33 AM, Steve Pieper <[hidden email]> wrote:

> Just trying to narrow things down - did you try a debug build?
>
> On Mon, Feb 6, 2017 at 10:29 AM, Bill Lorensen <[hidden email]>
> wrote:
>>
>> That is an old snow leopard build 10.6. I'm on Sierra, 10.12.3
>>
>>
>> On Mon, Feb 6, 2017 at 10:24 AM, Steve Pieper <[hidden email]> wrote:
>> > Hi Bill -
>> >
>> > That's interesting - I've always been doing debug builds and haven't run
>> > into this issue.  Did you happen to try a debug build?
>> >
>> > The dashboard seems to be working fine in release mode.
>> >
>> > http://slicer.cdash.org/buildSummary.php?buildid=967455
>> >
>> > it purposely uses an old deployment target (10.6) but I don't know if
>> > that
>> > would impact this linker issue.
>> >
>> > -Steve
>> >
>> > On Mon, Feb 6, 2017 at 9:55 AM, Bill Lorensen <[hidden email]>
>> > wrote:
>> >>
>> >> Folks,
>> >>
>> >> I have been able to build Slicer on Sierra 10.12.3 using
>> >> cmake -DCMAKE_BUILD_TYPE:STRING=Release \
>> >> -DSlicer_BUILD_EMSegment:BOOL=OFF \
>> >> -DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
>> >> -DSlicer_BUILD_SimpleFilters:BOOL=OFF \
>> >> -DSlicer_USE_NUMPY:BOOL=OFF \
>> >> -DSlicer_USE_OpenIGTLink:BOOL=OFF \
>> >> -DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
>> >> -DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
>> >> -DSlicer_USE_SimpleITK:BOOL=OFF \
>> >> -DSlicer_USE_PYTHONQT:BOOL=ON \
>> >> -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
>> >> -DCMAKE_BUILD_TYPE:STRING=Release \
>> >> ../Slicer
>> >>
>> >> But when I run Slicer I get this runtime error:
>> >>
>> >> ./Slicer
>> >> dyld: Symbol not found: _PyBool_Type
>> >>   Referenced from:
>> >>
>> >>
>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>> >>   Expected in:
>> >>
>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
>> >>  in
>> >>
>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>> >> error:
>> >>
>> >> [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
>> >> exit abnormally - Report the problem.
>> >>
>> >>
>> >> --
>> >> Unpaid intern in BillsBasement at noware dot com
>> >> _______________________________________________
>> >> slicer-devel mailing list
>> >> [hidden email]
>> >> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>> >> To unsubscribe: send email to [hidden email] with
>> >> unsubscribe as the subject
>> >>
>> >>
>> >> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>> >
>> >
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>



--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Bill Lorensen
First I'm going to try turning on
Slicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=ON

I had trouble with this compiling before. I went through the xcode
installation again and now it compiles.

I'll keep you posted.

Bill

On Mon, Feb 6, 2017 at 10:33 AM, Bill Lorensen <[hidden email]> wrote:

> I'll try debug, but it will probably take most of the day...
>
>
> On Mon, Feb 6, 2017 at 10:33 AM, Steve Pieper <[hidden email]> wrote:
>> Just trying to narrow things down - did you try a debug build?
>>
>> On Mon, Feb 6, 2017 at 10:29 AM, Bill Lorensen <[hidden email]>
>> wrote:
>>>
>>> That is an old snow leopard build 10.6. I'm on Sierra, 10.12.3
>>>
>>>
>>> On Mon, Feb 6, 2017 at 10:24 AM, Steve Pieper <[hidden email]> wrote:
>>> > Hi Bill -
>>> >
>>> > That's interesting - I've always been doing debug builds and haven't run
>>> > into this issue.  Did you happen to try a debug build?
>>> >
>>> > The dashboard seems to be working fine in release mode.
>>> >
>>> > http://slicer.cdash.org/buildSummary.php?buildid=967455
>>> >
>>> > it purposely uses an old deployment target (10.6) but I don't know if
>>> > that
>>> > would impact this linker issue.
>>> >
>>> > -Steve
>>> >
>>> > On Mon, Feb 6, 2017 at 9:55 AM, Bill Lorensen <[hidden email]>
>>> > wrote:
>>> >>
>>> >> Folks,
>>> >>
>>> >> I have been able to build Slicer on Sierra 10.12.3 using
>>> >> cmake -DCMAKE_BUILD_TYPE:STRING=Release \
>>> >> -DSlicer_BUILD_EMSegment:BOOL=OFF \
>>> >> -DSlicer_BUILD_OpenIGTLinkIF:BOOL=ON \
>>> >> -DSlicer_BUILD_SimpleFilters:BOOL=OFF \
>>> >> -DSlicer_USE_NUMPY:BOOL=OFF \
>>> >> -DSlicer_USE_OpenIGTLink:BOOL=OFF \
>>> >> -DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=OFF \
>>> >> -DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF \
>>> >> -DSlicer_USE_SimpleITK:BOOL=OFF \
>>> >> -DSlicer_USE_PYTHONQT:BOOL=ON \
>>> >> -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 \
>>> >> -DCMAKE_BUILD_TYPE:STRING=Release \
>>> >> ../Slicer
>>> >>
>>> >> But when I run Slicer I get this runtime error:
>>> >>
>>> >> ./Slicer
>>> >> dyld: Symbol not found: _PyBool_Type
>>> >>   Referenced from:
>>> >>
>>> >>
>>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>>> >>   Expected in:
>>> >>
>>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
>>> >>  in
>>> >>
>>> >> /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
>>> >> error:
>>> >>
>>> >> [/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer]
>>> >> exit abnormally - Report the problem.
>>> >>
>>> >>
>>> >> --
>>> >> Unpaid intern in BillsBasement at noware dot com
>>> >> _______________________________________________
>>> >> slicer-devel mailing list
>>> >> [hidden email]
>>> >> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>> >> To unsubscribe: send email to [hidden email] with
>>> >> unsubscribe as the subject
>>> >>
>>> >>
>>> >> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
Hi Folks,

I am also having troubles with my Slicer build on Sierra 10.12.3.

Slicer nighly builds and starts on my machine, but outputs several errors of
type:
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768
...

And all related Slicer functionality is not working.

I am working on Sierra 10.12.3 with the latest nightly source code of
Slicer.
I followed the instructions from
https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
and for cmake I've set:
CMAKE_OSX_DEPLOYMENT_TARGET=10.12
BUILD_TESTING=OFF
Slicer_USE_PYTHONQT_WITH_TCL=OFF
Slicer_USE_PYTHONQT_WITH_OPENSSL=ON

Any ideas what could be wrong?

Thank you,
Christian




--
View this message in context: http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
Sent from the slicer-devel mailing list archive at Nabble.com.
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
This post has NOT been accepted by the mailing list yet.
In reply to this post by Bill Lorensen
Hi Folks,

I am also having troubles with my Slicer build on Sierra 10.12.3.

Slicer nighly builds and starts on my machine, but outputs several errors of type:
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so, 2): no suitable image found.  Did find:
        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so: malformed mach-o: load commands size (33472) > 32768
        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so: malformed mach-o: load commands size (33472) > 32768
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so, 2): no suitable image found.  Did find:
        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so: malformed mach-o: load commands size (35064) > 32768
        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so: malformed mach-o: load commands size (35064) > 32768
...

And all related Slicer functionality is not working.

I am working on Sierra 10.12.3 with the latest nightly source code of Slicer.
I followed the instructions from https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
and for cmake I've set:
CMAKE_OSX_DEPLOYMENT_TARGET=10.12
BUILD_TESTING=OFF
Slicer_USE_PYTHONQT_WITH_TCL=OFF
Slicer_USE_PYTHONQT_WITH_OPENSSL=ON

Any ideas what could be wrong?

Thank you,
Christian
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Steve Pieper-2
In reply to this post by chribaue
Must be something about the deployment target / version of qt.  I used 10.9 because that's what corresponds to my qmake installation.  My qt is 4.8.7 installed via homebrew before the OS upgrade.

I built on 10.12.3 just now on the current git master.  I get some errors about opengl and vtkPlaneSource during startup, but no complaints about the libraries.

-Steve


On Tue, Feb 7, 2017 at 2:41 PM, chribaue <[hidden email]> wrote:
Hi Folks,

I am also having troubles with my Slicer build on Sierra 10.12.3.

Slicer nighly builds and starts on my machine, but outputs several errors of
type:
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768
...

And all related Slicer functionality is not working.

I am working on Sierra 10.12.3 with the latest nightly source code of
Slicer.
I followed the instructions from
https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
and for cmake I've set:
CMAKE_OSX_DEPLOYMENT_TARGET=10.12
BUILD_TESTING=OFF
Slicer_USE_PYTHONQT_WITH_TCL=OFF
Slicer_USE_PYTHONQT_WITH_OPENSSL=ON

Any ideas what could be wrong?

Thank you,
Christian




--
View this message in context: http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
Sent from the slicer-devel mailing list archive at Nabble.com.
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Bill Lorensen
I'm rebuilding with just Simple it'll turned off. I'll keep you posted.


On Feb 7, 2017 3:45 PM, "Steve Pieper" <[hidden email]> wrote:
Must be something about the deployment target / version of qt.  I used 10.9 because that's what corresponds to my qmake installation.  My qt is 4.8.7 installed via homebrew before the OS upgrade.

I built on 10.12.3 just now on the current git master.  I get some errors about opengl and vtkPlaneSource during startup, but no complaints about the libraries.

-Steve


On Tue, Feb 7, 2017 at 2:41 PM, chribaue <[hidden email]> wrote:
Hi Folks,

I am also having troubles with my Slicer build on Sierra 10.12.3.

Slicer nighly builds and starts on my machine, but outputs several errors of
type:
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
malformed mach-o: load commands size (33472) > 32768
dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
2): no suitable image found.  Did find:

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768

/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
malformed mach-o: load commands size (35064) > 32768
...

And all related Slicer functionality is not working.

I am working on Sierra 10.12.3 with the latest nightly source code of
Slicer.
I followed the instructions from
https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
and for cmake I've set:
CMAKE_OSX_DEPLOYMENT_TARGET=10.12
BUILD_TESTING=OFF
Slicer_USE_PYTHONQT_WITH_TCL=OFF
Slicer_USE_PYTHONQT_WITH_OPENSSL=ON

Any ideas what could be wrong?

Thank you,
Christian




--
View this message in context: http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
Sent from the slicer-devel mailing list archive at Nabble.com.
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
In reply to this post by chribaue
Hi Steve,

I also installed qt via homebrew using:
brew install cartr/qt4/qt
xcode-select --install
as instructed in the developer wiki.

otool -l /us/local/bin/qmake gives me:
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.7
      sdk 10.12

Does this mean I have to set 10.7 as deployment target?

Christian

On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:

> Must be something about the deployment target / version of qt.  I used
> 10.9 because that's what corresponds to my qmake installation.  My qt
> is 4.8.7 installed via homebrew before the OS upgrade.
>
>
> I built on 10.12.3 just now on the current git master.  I get some
> errors about opengl and vtkPlaneSource during startup, but no
> complaints about the libraries.
>
>
> -Steve
>
>
>
> On Tue, Feb 7, 2017 at 2:41 PM, chribaue <[hidden email]>
> wrote:
>         Hi Folks,
>        
>         I am also having troubles with my Slicer build on Sierra
>         10.12.3.
>        
>         Slicer nighly builds and starts on my machine, but outputs
>         several errors of
>         type:
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>         2): no suitable image found.  Did find:
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>         2): no suitable image found.  Did find:
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>         ...
>        
>         And all related Slicer functionality is not working.
>        
>         I am working on Sierra 10.12.3 with the latest nightly source
>         code of
>         Slicer.
>         I followed the instructions from
>         https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>         and for cmake I've set:
>         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>         BUILD_TESTING=OFF
>         Slicer_USE_PYTHONQT_WITH_TCL=OFF
>         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>        
>         Any ideas what could be wrong?
>        
>         Thank you,
>         Christian
>        
>        
>        
>        
>         --
>         View this message in context:
>         http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>         Sent from the slicer-devel mailing list archive at Nabble.com.
>         _______________________________________________
>         slicer-devel mailing list
>         [hidden email]
>         http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>         To unsubscribe: send email to
>         [hidden email] with unsubscribe as the
>         subject
>         http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>        
>
>


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

pinter
Hi Christian,

After I installed the Qt via homebrew as it was described on the wiki, the qmake I needed to use was not in /usr/local/bin, but in /usr/local/Cellar/qt/4.8.7_3/bin !
Only after I entered this path as as -DQT_QMAKE_EXECUTABLE value was I able to build Slicer.

Hth,
csaba

-----Original Message-----
From: slicer-devel [mailto:[hidden email]] On Behalf Of Christian Bauer
Sent: Tuesday, February 7, 2017 16:25
To: Steve Pieper <[hidden email]>
Cc: SPL Slicer Devel <[hidden email]>
Subject: Re: [slicer-devel] Struggling with Sierra build

Hi Steve,

I also installed qt via homebrew using:
brew install cartr/qt4/qt
xcode-select --install
as instructed in the developer wiki.

otool -l /us/local/bin/qmake gives me:
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.7
      sdk 10.12

Does this mean I have to set 10.7 as deployment target?

Christian

On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:

> Must be something about the deployment target / version of qt.  I used
> 10.9 because that's what corresponds to my qmake installation.  My qt
> is 4.8.7 installed via homebrew before the OS upgrade.
>
>
> I built on 10.12.3 just now on the current git master.  I get some
> errors about opengl and vtkPlaneSource during startup, but no
> complaints about the libraries.
>
>
> -Steve
>
>
>
> On Tue, Feb 7, 2017 at 2:41 PM, chribaue <[hidden email]>
> wrote:
>         Hi Folks,
>        
>         I am also having troubles with my Slicer build on Sierra
>         10.12.3.
>        
>         Slicer nighly builds and starts on my machine, but outputs
>         several errors of
>         type:
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>         2): no suitable image found.  Did find:
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>         2): no suitable image found.  Did find:
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>        
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>         ...
>        
>         And all related Slicer functionality is not working.
>        
>         I am working on Sierra 10.12.3 with the latest nightly source
>         code of
>         Slicer.
>         I followed the instructions from
>         https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>         and for cmake I've set:
>         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>         BUILD_TESTING=OFF
>         Slicer_USE_PYTHONQT_WITH_TCL=OFF
>         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>        
>         Any ideas what could be wrong?
>        
>         Thank you,
>         Christian
>        
>        
>        
>        
>         --
>         View this message in context:
>         http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>         Sent from the slicer-devel mailing list archive at Nabble.com.
>         _______________________________________________
>         slicer-devel mailing list
>         [hidden email]
>         http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>         To unsubscribe: send email to
>         [hidden email] with unsubscribe as the
>         subject
>        
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Devel
> opers/FAQ
>        
>
>


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Steve Pieper-2
In reply to this post by chribaue
Hi Christian - 

I think my version of qt4 from homebrew pre-dates the "cartr" version.  I've pasted some details below.

I used the 10.9 deployment target following the rules encoded in the cmake file [1].

When I run otool on my qmake I get the following result:
 
$ otool -L $(which qmake) |grep lib.\*c++
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)

(Just saw Csaba's email - my qmake is also in /usr/local/bin/Cellar and it's the only one on this system - perhaps you have another one in your path?).

Hope that helps,
Steve




$ cmake -version
cmake version 3.7.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ xcodebuild -version
Xcode 8.2.1
Build version 8C1002

$ qmake -v
QMake version 2.01a
Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib

$ ls -l /usr/local/Cellar/qt/4.8.7_1/
total 16
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
-rw-r--r--    1 pieper  admin   404 Dec  3  2015 INSTALL_RECEIPT.json
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
-rw-r--r--    1 pieper  admin  3209 May  7  2015 README
drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 qttracereplay.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/

On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer <[hidden email]> wrote:
Hi Steve,

I also installed qt via homebrew using:
brew install cartr/qt4/qt
xcode-select --install
as instructed in the developer wiki.

otool -l /us/local/bin/qmake gives me:
Load command 9
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.7
      sdk 10.12

Does this mean I have to set 10.7 as deployment target?

Christian

On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
> Must be something about the deployment target / version of qt.  I used
> 10.9 because that's what corresponds to my qmake installation.  My qt
> is 4.8.7 installed via homebrew before the OS upgrade.
>
>
> I built on 10.12.3 just now on the current git master.  I get some
> errors about opengl and vtkPlaneSource during startup, but no
> complaints about the libraries.
>
>
> -Steve
>
>
>
> On Tue, Feb 7, 2017 at 2:41 PM, chribaue <[hidden email]>
> wrote:
>         Hi Folks,
>
>         I am also having troubles with my Slicer build on Sierra
>         10.12.3.
>
>         Slicer nighly builds and starts on my machine, but outputs
>         several errors of
>         type:
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>         2): no suitable image found.  Did find:
>
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>         malformed mach-o: load commands size (33472) > 32768
>         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>         2): no suitable image found.  Did find:
>
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>
>         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>         malformed mach-o: load commands size (35064) > 32768
>         ...
>
>         And all related Slicer functionality is not working.
>
>         I am working on Sierra 10.12.3 with the latest nightly source
>         code of
>         Slicer.
>         I followed the instructions from
>         https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>         and for cmake I've set:
>         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>         BUILD_TESTING=OFF
>         Slicer_USE_PYTHONQT_WITH_TCL=OFF
>         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>
>         Any ideas what could be wrong?
>
>         Thank you,
>         Christian
>
>
>
>
>         --
>         View this message in context:
>         http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>         Sent from the slicer-devel mailing list archive at Nabble.com.
>         _______________________________________________
>         slicer-devel mailing list
>         [hidden email]
>         http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>         To unsubscribe: send email to
>         [hidden email] with unsubscribe as the
>         subject
>         http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>
>
>




_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
In reply to this post by chribaue
Hi Steve, Csaba

otool -L $(which qmake) |grep lib.\*c++ gives me
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
307.4.0)

my /usr/local/bin/qmake points to /usr/local/Cellar/qt/4.8.7_3/bin/qmake

So, I'll set the deployment target to 10.09 and QT_QMAKE_EXECUTABLE
to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if this
works.

Christian

On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:

> Hi Christian -
>
>
> I think my version of qt4 from homebrew pre-dates the "cartr" version.
> I've pasted some details below.
>
>
> I used the 10.9 deployment target following the rules encoded in the
> cmake file [1].
>
>
> When I run otool on my qmake I get the following result:
>  
> $ otool -L $(which qmake) |grep lib.\*c++
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> 120.1.0)
>
>
> (Just saw Csaba's email - my qmake is also in /usr/local/bin/Cellar
> and it's the only one on this system - perhaps you have another one in
> your path?).
>
>
> Hope that helps,
> Steve
>
>
>
>
>
>
> [1] https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117
>
>
> $ cmake -version
> cmake version 3.7.1
>
>
> CMake suite maintained and supported by Kitware (kitware.com/cmake).
>
>
> $ xcodebuild -version
> Xcode 8.2.1
> Build version 8C1002
>
>
> $ qmake -v
> QMake version 2.01a
> Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib
>
>
> $ ls -l /usr/local/Cellar/qt/4.8.7_1/
> total 16
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
> -rw-r--r--    1 pieper  admin   404 Dec  3  2015 INSTALL_RECEIPT.json
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
> -rw-r--r--    1 pieper  admin  3209 May  7  2015 README
> drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
> drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
> drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
> drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
> drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
> drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 qttracereplay.app/
> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
> drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/
>
> On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
> <[hidden email]> wrote:
>         Hi Steve,
>        
>         I also installed qt via homebrew using:
>         brew install cartr/qt4/qt
>         xcode-select --install
>         as instructed in the developer wiki.
>        
>         otool -l /us/local/bin/qmake gives me:
>         Load command 9
>               cmd LC_VERSION_MIN_MACOSX
>           cmdsize 16
>           version 10.7
>               sdk 10.12
>        
>         Does this mean I have to set 10.7 as deployment target?
>        
>         Christian
>        
>         On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
>         > Must be something about the deployment target / version of
>         qt.  I used
>         > 10.9 because that's what corresponds to my qmake
>         installation.  My qt
>         > is 4.8.7 installed via homebrew before the OS upgrade.
>         >
>         >
>         > I built on 10.12.3 just now on the current git master.  I
>         get some
>         > errors about opengl and vtkPlaneSource during startup, but
>         no
>         > complaints about the libraries.
>         >
>         >
>         > -Steve
>         >
>         >
>         >
>         > On Tue, Feb 7, 2017 at 2:41 PM, chribaue
>         <[hidden email]>
>         > wrote:
>         >         Hi Folks,
>         >
>         >         I am also having troubles with my Slicer build on
>         Sierra
>         >         10.12.3.
>         >
>         >         Slicer nighly builds and starts on my machine, but
>         outputs
>         >         several errors of
>         >         type:
>         >
>          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>         >         2): no suitable image found.  Did find:
>         >
>         >
>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>         >         malformed mach-o: load commands size (33472) > 32768
>         >
>         >
>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>         >         malformed mach-o: load commands size (33472) > 32768
>         >
>          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>         >         2): no suitable image found.  Did find:
>         >
>         >
>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>         >         malformed mach-o: load commands size (35064) > 32768
>         >
>         >
>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>         >         malformed mach-o: load commands size (35064) > 32768
>         >         ...
>         >
>         >         And all related Slicer functionality is not working.
>         >
>         >         I am working on Sierra 10.12.3 with the latest
>         nightly source
>         >         code of
>         >         Slicer.
>         >         I followed the instructions from
>         >
>          https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>         >         and for cmake I've set:
>         >         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>         >         BUILD_TESTING=OFF
>         >         Slicer_USE_PYTHONQT_WITH_TCL=OFF
>         >         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>         >
>         >         Any ideas what could be wrong?
>         >
>         >         Thank you,
>         >         Christian
>         >
>         >
>         >
>         >
>         >         --
>         >         View this message in context:
>         >
>          http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>         >         Sent from the slicer-devel mailing list archive at
>         Nabble.com.
>         >         _______________________________________________
>         >         slicer-devel mailing list
>         >         [hidden email]
>         >
>          http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>         >         To unsubscribe: send email to
>         >         [hidden email] with
>         unsubscribe as the
>         >         subject
>         >
>          http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>         >
>         >
>         >
>        
>        
>        
>
>


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

Bill Lorensen
I tried many configurations. Still get:

[Slicer-build] ./Slicer
dyld: Symbol not found: _PyBool_Type
  Referenced from:
/Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib
  Expected in: /Users/lorensen/ProjectsGIT/Slicer-Superbuild/CTK-build/PythonQt-build/./libPythonQt.dylib
 in /Users/lorensen/ProjectsGIT/Slicer-Superbuild/Slicer-build/bin/./libqSlicerBaseQTGUI.dylib


On Tue, Feb 7, 2017 at 4:57 PM, Christian Bauer
<[hidden email]> wrote:

> Hi Steve, Csaba
>
> otool -L $(which qmake) |grep lib.\*c++ gives me
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> 307.4.0)
>
> my /usr/local/bin/qmake points to /usr/local/Cellar/qt/4.8.7_3/bin/qmake
>
> So, I'll set the deployment target to 10.09 and QT_QMAKE_EXECUTABLE
> to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if this
> works.
>
> Christian
>
> On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:
>> Hi Christian -
>>
>>
>> I think my version of qt4 from homebrew pre-dates the "cartr" version.
>> I've pasted some details below.
>>
>>
>> I used the 10.9 deployment target following the rules encoded in the
>> cmake file [1].
>>
>>
>> When I run otool on my qmake I get the following result:
>>
>> $ otool -L $(which qmake) |grep lib.\*c++
>> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
>> 120.1.0)
>>
>>
>> (Just saw Csaba's email - my qmake is also in /usr/local/bin/Cellar
>> and it's the only one on this system - perhaps you have another one in
>> your path?).
>>
>>
>> Hope that helps,
>> Steve
>>
>>
>>
>>
>>
>>
>> [1] https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117
>>
>>
>> $ cmake -version
>> cmake version 3.7.1
>>
>>
>> CMake suite maintained and supported by Kitware (kitware.com/cmake).
>>
>>
>> $ xcodebuild -version
>> Xcode 8.2.1
>> Build version 8C1002
>>
>>
>> $ qmake -v
>> QMake version 2.01a
>> Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib
>>
>>
>> $ ls -l /usr/local/Cellar/qt/4.8.7_1/
>> total 16
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
>> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
>> -rw-r--r--    1 pieper  admin   404 Dec  3  2015 INSTALL_RECEIPT.json
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
>> -rw-r--r--    1 pieper  admin  3209 May  7  2015 README
>> drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
>> drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
>> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
>> drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
>> drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
>> drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
>> drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 qttracereplay.app/
>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
>> drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/
>>
>> On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
>> <[hidden email]> wrote:
>>         Hi Steve,
>>
>>         I also installed qt via homebrew using:
>>         brew install cartr/qt4/qt
>>         xcode-select --install
>>         as instructed in the developer wiki.
>>
>>         otool -l /us/local/bin/qmake gives me:
>>         Load command 9
>>               cmd LC_VERSION_MIN_MACOSX
>>           cmdsize 16
>>           version 10.7
>>               sdk 10.12
>>
>>         Does this mean I have to set 10.7 as deployment target?
>>
>>         Christian
>>
>>         On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
>>         > Must be something about the deployment target / version of
>>         qt.  I used
>>         > 10.9 because that's what corresponds to my qmake
>>         installation.  My qt
>>         > is 4.8.7 installed via homebrew before the OS upgrade.
>>         >
>>         >
>>         > I built on 10.12.3 just now on the current git master.  I
>>         get some
>>         > errors about opengl and vtkPlaneSource during startup, but
>>         no
>>         > complaints about the libraries.
>>         >
>>         >
>>         > -Steve
>>         >
>>         >
>>         >
>>         > On Tue, Feb 7, 2017 at 2:41 PM, chribaue
>>         <[hidden email]>
>>         > wrote:
>>         >         Hi Folks,
>>         >
>>         >         I am also having troubles with my Slicer build on
>>         Sierra
>>         >         10.12.3.
>>         >
>>         >         Slicer nighly builds and starts on my machine, but
>>         outputs
>>         >         several errors of
>>         >         type:
>>         >
>>          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>>         >         2): no suitable image found.  Did find:
>>         >
>>         >
>>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>>         >         malformed mach-o: load commands size (33472) > 32768
>>         >
>>         >
>>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>>         >         malformed mach-o: load commands size (33472) > 32768
>>         >
>>          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>>         >         2): no suitable image found.  Did find:
>>         >
>>         >
>>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>>         >         malformed mach-o: load commands size (35064) > 32768
>>         >
>>         >
>>          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>>         >         malformed mach-o: load commands size (35064) > 32768
>>         >         ...
>>         >
>>         >         And all related Slicer functionality is not working.
>>         >
>>         >         I am working on Sierra 10.12.3 with the latest
>>         nightly source
>>         >         code of
>>         >         Slicer.
>>         >         I followed the instructions from
>>         >
>>          https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>>         >         and for cmake I've set:
>>         >         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>>         >         BUILD_TESTING=OFF
>>         >         Slicer_USE_PYTHONQT_WITH_TCL=OFF
>>         >         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>>         >
>>         >         Any ideas what could be wrong?
>>         >
>>         >         Thank you,
>>         >         Christian
>>         >
>>         >
>>         >
>>         >
>>         >         --
>>         >         View this message in context:
>>         >
>>          http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>>         >         Sent from the slicer-devel mailing list archive at
>>         Nabble.com.
>>         >         _______________________________________________
>>         >         slicer-devel mailing list
>>         >         [hidden email]
>>         >
>>          http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>         >         To unsubscribe: send email to
>>         >         [hidden email] with
>>         unsubscribe as the
>>         >         subject
>>         >
>>          http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>         >
>>         >
>>         >
>>
>>
>>
>>
>>
>
>
> _______________________________________________
> slicer-devel mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ



--
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
In reply to this post by chribaue
Using deployment target 10.9 and setting QT_QMAKE_EXECUTABLE
to /usr/local/Cellar/qt/4.8.7_3/bin/qmake did the trick.

Thank you all for your support,
Christian

On Tue, 2017-02-07 at 15:57 -0600, Christian Bauer wrote:

> Hi Steve, Csaba
>
> otool -L $(which qmake) |grep lib.\*c++ gives me
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> 307.4.0)
>
> my /usr/local/bin/qmake points to /usr/local/Cellar/qt/4.8.7_3/bin/qmake
>
> So, I'll set the deployment target to 10.09 and QT_QMAKE_EXECUTABLE
> to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if this
> works.
>
> Christian
>
> On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:
> > Hi Christian -
> >
> >
> > I think my version of qt4 from homebrew pre-dates the "cartr" version.
> > I've pasted some details below.
> >
> >
> > I used the 10.9 deployment target following the rules encoded in the
> > cmake file [1].
> >
> >
> > When I run otool on my qmake I get the following result:
> >  
> > $ otool -L $(which qmake) |grep lib.\*c++
> > /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> > 120.1.0)
> >
> >
> > (Just saw Csaba's email - my qmake is also in /usr/local/bin/Cellar
> > and it's the only one on this system - perhaps you have another one in
> > your path?).
> >
> >
> > Hope that helps,
> > Steve
> >
> >
> >
> >
> >
> >
> > [1] https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117
> >
> >
> > $ cmake -version
> > cmake version 3.7.1
> >
> >
> > CMake suite maintained and supported by Kitware (kitware.com/cmake).
> >
> >
> > $ xcodebuild -version
> > Xcode 8.2.1
> > Build version 8C1002
> >
> >
> > $ qmake -v
> > QMake version 2.01a
> > Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib
> >
> >
> > $ ls -l /usr/local/Cellar/qt/4.8.7_1/
> > total 16
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
> > drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
> > -rw-r--r--    1 pieper  admin   404 Dec  3  2015 INSTALL_RECEIPT.json
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
> > -rw-r--r--    1 pieper  admin  3209 May  7  2015 README
> > drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
> > drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
> > drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
> > drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
> > drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
> > drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
> > drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 qttracereplay.app/
> > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
> > drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/
> >
> > On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
> > <[hidden email]> wrote:
> >         Hi Steve,
> >        
> >         I also installed qt via homebrew using:
> >         brew install cartr/qt4/qt
> >         xcode-select --install
> >         as instructed in the developer wiki.
> >        
> >         otool -l /us/local/bin/qmake gives me:
> >         Load command 9
> >               cmd LC_VERSION_MIN_MACOSX
> >           cmdsize 16
> >           version 10.7
> >               sdk 10.12
> >        
> >         Does this mean I have to set 10.7 as deployment target?
> >        
> >         Christian
> >        
> >         On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
> >         > Must be something about the deployment target / version of
> >         qt.  I used
> >         > 10.9 because that's what corresponds to my qmake
> >         installation.  My qt
> >         > is 4.8.7 installed via homebrew before the OS upgrade.
> >         >
> >         >
> >         > I built on 10.12.3 just now on the current git master.  I
> >         get some
> >         > errors about opengl and vtkPlaneSource during startup, but
> >         no
> >         > complaints about the libraries.
> >         >
> >         >
> >         > -Steve
> >         >
> >         >
> >         >
> >         > On Tue, Feb 7, 2017 at 2:41 PM, chribaue
> >         <[hidden email]>
> >         > wrote:
> >         >         Hi Folks,
> >         >
> >         >         I am also having troubles with my Slicer build on
> >         Sierra
> >         >         10.12.3.
> >         >
> >         >         Slicer nighly builds and starts on my machine, but
> >         outputs
> >         >         several errors of
> >         >         type:
> >         >
> >          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
> >         >         2): no suitable image found.  Did find:
> >         >
> >         >
> >          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
> >         >         malformed mach-o: load commands size (33472) > 32768
> >         >
> >         >
> >          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
> >         >         malformed mach-o: load commands size (33472) > 32768
> >         >
> >          dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
> >         >         2): no suitable image found.  Did find:
> >         >
> >         >
> >          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
> >         >         malformed mach-o: load commands size (35064) > 32768
> >         >
> >         >
> >          /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
> >         >         malformed mach-o: load commands size (35064) > 32768
> >         >         ...
> >         >
> >         >         And all related Slicer functionality is not working.
> >         >
> >         >         I am working on Sierra 10.12.3 with the latest
> >         nightly source
> >         >         code of
> >         >         Slicer.
> >         >         I followed the instructions from
> >         >
> >          https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
> >         >         and for cmake I've set:
> >         >         CMAKE_OSX_DEPLOYMENT_TARGET=10.12
> >         >         BUILD_TESTING=OFF
> >         >         Slicer_USE_PYTHONQT_WITH_TCL=OFF
> >         >         Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
> >         >
> >         >         Any ideas what could be wrong?
> >         >
> >         >         Thank you,
> >         >         Christian
> >         >
> >         >
> >         >
> >         >
> >         >         --
> >         >         View this message in context:
> >         >
> >          http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
> >         >         Sent from the slicer-devel mailing list archive at
> >         Nabble.com.
> >         >         _______________________________________________
> >         >         slicer-devel mailing list
> >         >         [hidden email]
> >         >
> >          http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> >         >         To unsubscribe: send email to
> >         >         [hidden email] with
> >         unsubscribe as the
> >         >         subject
> >         >
> >          http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
> >         >
> >         >
> >         >
> >        
> >        
> >        
> >
> >
>


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

criskross
Hi Christian B.,

could you summarize, which parameters you are using now? I am having the same issues, but setting deployment target to 10.9 and the QT_QMAKE_EXECUTABLE as you described didn’t work for me. 

Anything else, that I need to take care of? What about the instructions on https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29 ?

Christian H.

On Feb 9, 2017, at 1:06 PM, Christian Bauer <[hidden email]> wrote:

Using deployment target 10.9 and setting QT_QMAKE_EXECUTABLE
to /usr/local/Cellar/qt/4.8.7_3/bin/qmake did the trick.

Thank you all for your support,
Christian

On Tue, 2017-02-07 at 15:57 -0600, Christian Bauer wrote:
Hi Steve, Csaba

otool -L $(which qmake) |grep lib.\*c++ gives me
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
307.4.0)

my /usr/local/bin/qmake points to /usr/local/Cellar/qt/4.8.7_3/bin/qmake

So, I'll set the deployment target to 10.09 and QT_QMAKE_EXECUTABLE
to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if this
works.

Christian

On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:
Hi Christian -


I think my version of qt4 from homebrew pre-dates the "cartr" version.
I've pasted some details below.


I used the 10.9 deployment target following the rules encoded in the
cmake file [1].


When I run otool on my qmake I get the following result:

$ otool -L $(which qmake) |grep lib.\*c++
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
120.1.0)


(Just saw Csaba's email - my qmake is also in /usr/local/bin/Cellar
and it's the only one on this system - perhaps you have another one in
your path?).


Hope that helps,
Steve






[1] https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117


$ cmake -version
cmake version 3.7.1


CMake suite maintained and supported by Kitware (kitware.com/cmake).


$ xcodebuild -version
Xcode 8.2.1
Build version 8C1002


$ qmake -v
QMake version 2.01a
Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib


$ ls -l /usr/local/Cellar/qt/4.8.7_1/
total 16
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
-rw-r--r--    1 pieper  admin   404 Dec  3  2015 INSTALL_RECEIPT.json
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
-rw-r--r--    1 pieper  admin  3209 May  7  2015 README
drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 qttracereplay.app/
drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/

On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
<[hidden email]> wrote:
       Hi Steve,

       I also installed qt via homebrew using:
       brew install cartr/qt4/qt
       xcode-select --install
       as instructed in the developer wiki.

       otool -l /us/local/bin/qmake gives me:
       Load command 9
             cmd LC_VERSION_MIN_MACOSX
         cmdsize 16
         version 10.7
             sdk 10.12

       Does this mean I have to set 10.7 as deployment target?

       Christian

       On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
Must be something about the deployment target / version of
       qt.  I used
10.9 because that's what corresponds to my qmake
       installation.  My qt
is 4.8.7 installed via homebrew before the OS upgrade.


I built on 10.12.3 just now on the current git master.  I
       get some
errors about opengl and vtkPlaneSource during startup, but
       no
complaints about the libraries.


-Steve



On Tue, Feb 7, 2017 at 2:41 PM, chribaue
       <[hidden email]>
wrote:
       Hi Folks,

       I am also having troubles with my Slicer build on
       Sierra
       10.12.3.

       Slicer nighly builds and starts on my machine, but
       outputs
       several errors of
       type:

        dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
       2): no suitable image found.  Did find:


        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
       malformed mach-o: load commands size (33472) > 32768


        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
       malformed mach-o: load commands size (33472) > 32768

        dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
       2): no suitable image found.  Did find:


        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
       malformed mach-o: load commands size (35064) > 32768


        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
       malformed mach-o: load commands size (35064) > 32768
       ...

       And all related Slicer functionality is not working.

       I am working on Sierra 10.12.3 with the latest
       nightly source
       code of
       Slicer.
       I followed the instructions from

        https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
       and for cmake I've set:
       CMAKE_OSX_DEPLOYMENT_TARGET=10.12
       BUILD_TESTING=OFF
       Slicer_USE_PYTHONQT_WITH_TCL=OFF
       Slicer_USE_PYTHONQT_WITH_OPENSSL=ON

       Any ideas what could be wrong?

       Thank you,
       Christian




       --
       View this message in context:

        http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
       Sent from the slicer-devel mailing list archive at
       Nabble.com.
       _______________________________________________
       slicer-devel mailing list
       [hidden email]

        http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
       To unsubscribe: send email to
       [hidden email] with
       unsubscribe as the
       subject

        http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ











_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

chribaue
In reply to this post by chribaue
Hi Christian H.,

I set deployment target to 10.9 and QT_QMAKE_EXECUTABLE. Initially after
building with these parameters it also still didn't work and running
"$otool -L Slicer-build/Slicer | grep lib.\*c++" gave me "libstdc++"
which should not be.

So, I did everything from scratch again to make sure I didn't miss
anything and there are no cached files messing things up.

I uninstalled the homebrew QT from my machine, made sure there's no
other version of QT on my machine, then reinstalled QT as described in
the Slicer Developer wiki for Sierra:
$brew install cartr/qt4/qt
$xcode-select --install

I also deleted my Slicer source code and the Super-build directory,
checkout out the source code from github again and build slicer.
Again with the same settings:
CMAKE_OSX_DEPLOYMENT_TARGET=10.9
QT_QMAKE_EXECUTABLE=
/usr/local/Cellar/qt/4.8.7_3/bin/qmake
BUILD_TESTING=OFF
Slicer_USE_PYTHONQT_WITH_TCL=OFF

Then, it finally worked.

Christian B.

On Mon, 2017-02-13 at 14:52 -0500, Christian Herz wrote:

> Hi Christian B.,
>
>
> could you summarize, which parameters you are using now? I am having
> the same issues, but setting deployment target to 10.9 and the
> QT_QMAKE_EXECUTABLE as you described didn’t work for me.
>
>
> Anything else, that I need to take care of? What about the
> instructions
> on https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29 ?
>
>
> Christian H.
>
> > On Feb 9, 2017, at 1:06 PM, Christian Bauer
> > <[hidden email]> wrote:
> >
> > Using deployment target 10.9 and setting QT_QMAKE_EXECUTABLE
> > to /usr/local/Cellar/qt/4.8.7_3/bin/qmake did the trick.
> >
> > Thank you all for your support,
> > Christian
> >
> > On Tue, 2017-02-07 at 15:57 -0600, Christian Bauer wrote:
> > > Hi Steve, Csaba
> > >
> > > otool -L $(which qmake) |grep lib.\*c++ gives me
> > > /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
> > > version
> > > 307.4.0)
> > >
> > > my /usr/local/bin/qmake points
> > > to /usr/local/Cellar/qt/4.8.7_3/bin/qmake
> > >
> > > So, I'll set the deployment target to 10.09 and
> > > QT_QMAKE_EXECUTABLE
> > > to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if
> > > this
> > > works.
> > >
> > > Christian
> > >
> > > On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:
> > > > Hi Christian -
> > > >
> > > >
> > > > I think my version of qt4 from homebrew pre-dates the "cartr"
> > > > version.
> > > > I've pasted some details below.
> > > >
> > > >
> > > > I used the 10.9 deployment target following the rules encoded in
> > > > the
> > > > cmake file [1].
> > > >
> > > >
> > > > When I run otool on my qmake I get the following result:
> > > >
> > > > $ otool -L $(which qmake) |grep lib.\*c++
> > > > /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
> > > > version
> > > > 120.1.0)
> > > >
> > > >
> > > > (Just saw Csaba's email - my qmake is also
> > > > in /usr/local/bin/Cellar
> > > > and it's the only one on this system - perhaps you have another
> > > > one in
> > > > your path?).
> > > >
> > > >
> > > > Hope that helps,
> > > > Steve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > [1]
> > > > https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117
> > > >
> > > >
> > > > $ cmake -version
> > > > cmake version 3.7.1
> > > >
> > > >
> > > > CMake suite maintained and supported by Kitware
> > > > (kitware.com/cmake).
> > > >
> > > >
> > > > $ xcodebuild -version
> > > > Xcode 8.2.1
> > > > Build version 8C1002
> > > >
> > > >
> > > > $ qmake -v
> > > > QMake version 2.01a
> > > > Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib
> > > >
> > > >
> > > > $ ls -l /usr/local/Cellar/qt/4.8.7_1/
> > > > total 16
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
> > > > drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
> > > > -rw-r--r--    1 pieper  admin   404 Dec  3  2015
> > > > INSTALL_RECEIPT.json
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
> > > > -rw-r--r--    1 pieper  admin  3209 May  7  2015 README
> > > > drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
> > > > drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
> > > > drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
> > > > drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
> > > > drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
> > > > drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
> > > > drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015
> > > > qttracereplay.app/
> > > > drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
> > > > drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/
> > > >
> > > > On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
> > > > <[hidden email]> wrote:
> > > >        Hi Steve,
> > > >
> > > >        I also installed qt via homebrew using:
> > > >        brew install cartr/qt4/qt
> > > >        xcode-select --install
> > > >        as instructed in the developer wiki.
> > > >
> > > >        otool -l /us/local/bin/qmake gives me:
> > > >        Load command 9
> > > >              cmd LC_VERSION_MIN_MACOSX
> > > >          cmdsize 16
> > > >          version 10.7
> > > >              sdk 10.12
> > > >
> > > >        Does this mean I have to set 10.7 as deployment target?
> > > >
> > > >        Christian
> > > >
> > > >        On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
> > > > > Must be something about the deployment target / version of
> > > >        qt.  I used
> > > > > 10.9 because that's what corresponds to my qmake
> > > >        installation.  My qt
> > > > > is 4.8.7 installed via homebrew before the OS upgrade.
> > > > >
> > > > >
> > > > > I built on 10.12.3 just now on the current git master.  I
> > > >        get some
> > > > > errors about opengl and vtkPlaneSource during startup, but
> > > >        no
> > > > > complaints about the libraries.
> > > > >
> > > > >
> > > > > -Steve
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Feb 7, 2017 at 2:41 PM, chribaue
> > > >        <[hidden email]>
> > > > > wrote:
> > > > >        Hi Folks,
> > > > >
> > > > >        I am also having troubles with my Slicer build on
> > > >        Sierra
> > > > >        10.12.3.
> > > > >
> > > > >        Slicer nighly builds and starts on my machine, but
> > > >        outputs
> > > > >        several errors of
> > > > >        type:
> > > > >
> > > >         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
> > > > >        2): no suitable image found.  Did find:
> > > > >
> > > > >
> > > >         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
> > > > >        malformed mach-o: load commands size (33472) > 32768
> > > > >
> > > > >
> > > >         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
> > > > >        malformed mach-o: load commands size (33472) > 32768
> > > > >
> > > >         dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
> > > > >        2): no suitable image found.  Did find:
> > > > >
> > > > >
> > > >         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
> > > > >        malformed mach-o: load commands size (35064) > 32768
> > > > >
> > > > >
> > > >         /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
> > > > >        malformed mach-o: load commands size (35064) > 32768
> > > > >        ...
> > > > >
> > > > >        And all related Slicer functionality is not working.
> > > > >
> > > > >        I am working on Sierra 10.12.3 with the latest
> > > >        nightly source
> > > > >        code of
> > > > >        Slicer.
> > > > >        I followed the instructions from
> > > > >
> > > >         https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
> > > > >        and for cmake I've set:
> > > > >        CMAKE_OSX_DEPLOYMENT_TARGET=10.12
> > > > >        BUILD_TESTING=OFF
> > > > >        Slicer_USE_PYTHONQT_WITH_TCL=OFF
> > > > >        Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
> > > > >
> > > > >        Any ideas what could be wrong?
> > > > >
> > > > >        Thank you,
> > > > >        Christian
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >        --
> > > > >        View this message in context:
> > > > >
> > > >         http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
> > > > >        Sent from the slicer-devel mailing list archive at
> > > >        Nabble.com.
> > > > >        _______________________________________________
> > > > >        slicer-devel mailing list
> > > > >        [hidden email]
> > > > >
> > > >         http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> > > > >        To unsubscribe: send email to
> > > > >        [hidden email] with
> > > >        unsubscribe as the
> > > > >        subject
> > > > >
> > > >         http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> > _______________________________________________
> > slicer-devel mailing list
> > [hidden email]
> > http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> > To unsubscribe: send email to [hidden email]
> > with unsubscribe as the subject
> > http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
> >
>
>


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

criskross
In reply to this post by chribaue
Thanks for the detailed instructions. I will try and give feedback.

Christian

> On Feb 13, 2017, at 3:56 PM, Christian Bauer <[hidden email]> wrote:
>
> Hi Christian H.,
>
> I set deployment target to 10.9 and QT_QMAKE_EXECUTABLE. Initially after
> building with these parameters it also still didn't work and running
> "$otool -L Slicer-build/Slicer | grep lib.\*c++" gave me "libstdc++"
> which should not be.
>
> So, I did everything from scratch again to make sure I didn't miss
> anything and there are no cached files messing things up.
>
> I uninstalled the homebrew QT from my machine, made sure there's no
> other version of QT on my machine, then reinstalled QT as described in
> the Slicer Developer wiki for Sierra:
> $brew install cartr/qt4/qt
> $xcode-select --install
>
> I also deleted my Slicer source code and the Super-build directory,
> checkout out the source code from github again and build slicer.
> Again with the same settings:
> CMAKE_OSX_DEPLOYMENT_TARGET=10.9
> QT_QMAKE_EXECUTABLE=
> /usr/local/Cellar/qt/4.8.7_3/bin/qmake
> BUILD_TESTING=OFF
> Slicer_USE_PYTHONQT_WITH_TCL=OFF
>
> Then, it finally worked.
>
> Christian B.
>
> On Mon, 2017-02-13 at 14:52 -0500, Christian Herz wrote:
>> Hi Christian B.,
>>
>>
>> could you summarize, which parameters you are using now? I am having
>> the same issues, but setting deployment target to 10.9 and the
>> QT_QMAKE_EXECUTABLE as you described didn’t work for me.
>>
>>
>> Anything else, that I need to take care of? What about the
>> instructions
>> on https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29 ?
>>
>>
>> Christian H.
>>
>>> On Feb 9, 2017, at 1:06 PM, Christian Bauer
>>> <[hidden email]> wrote:
>>>
>>> Using deployment target 10.9 and setting QT_QMAKE_EXECUTABLE
>>> to /usr/local/Cellar/qt/4.8.7_3/bin/qmake did the trick.
>>>
>>> Thank you all for your support,
>>> Christian
>>>
>>> On Tue, 2017-02-07 at 15:57 -0600, Christian Bauer wrote:
>>>> Hi Steve, Csaba
>>>>
>>>> otool -L $(which qmake) |grep lib.\*c++ gives me
>>>> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
>>>> version
>>>> 307.4.0)
>>>>
>>>> my /usr/local/bin/qmake points
>>>> to /usr/local/Cellar/qt/4.8.7_3/bin/qmake
>>>>
>>>> So, I'll set the deployment target to 10.09 and
>>>> QT_QMAKE_EXECUTABLE
>>>> to /usr/local/Cellar/qt/4.8.7_3/bin/qmake. I'll report back if
>>>> this
>>>> works.
>>>>
>>>> Christian
>>>>
>>>> On Tue, 2017-02-07 at 16:35 -0500, Steve Pieper wrote:
>>>>> Hi Christian -
>>>>>
>>>>>
>>>>> I think my version of qt4 from homebrew pre-dates the "cartr"
>>>>> version.
>>>>> I've pasted some details below.
>>>>>
>>>>>
>>>>> I used the 10.9 deployment target following the rules encoded in
>>>>> the
>>>>> cmake file [1].
>>>>>
>>>>>
>>>>> When I run otool on my qmake I get the following result:
>>>>>
>>>>> $ otool -L $(which qmake) |grep lib.\*c++
>>>>> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
>>>>> version
>>>>> 120.1.0)
>>>>>
>>>>>
>>>>> (Just saw Csaba's email - my qmake is also
>>>>> in /usr/local/bin/Cellar
>>>>> and it's the only one on this system - perhaps you have another
>>>>> one in
>>>>> your path?).
>>>>>
>>>>>
>>>>> Hope that helps,
>>>>> Steve
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> [1]
>>>>> https://github.com/Slicer/Slicer/blob/eefeac9286f48552e8418a11f412b2823a09b407/CMake/SlicerBlockSetCMakeOSXVariables.cmake#L96-L117
>>>>>
>>>>>
>>>>> $ cmake -version
>>>>> cmake version 3.7.1
>>>>>
>>>>>
>>>>> CMake suite maintained and supported by Kitware
>>>>> (kitware.com/cmake).
>>>>>
>>>>>
>>>>> $ xcodebuild -version
>>>>> Xcode 8.2.1
>>>>> Build version 8C1002
>>>>>
>>>>>
>>>>> $ qmake -v
>>>>> QMake version 2.01a
>>>>> Using Qt version 4.8.7 in /usr/local/Cellar/qt/4.8.7_1/lib
>>>>>
>>>>>
>>>>> $ ls -l /usr/local/Cellar/qt/4.8.7_1/
>>>>> total 16
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Assistant.app/
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Designer.app/
>>>>> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 Frameworks/
>>>>> -rw-r--r--    1 pieper  admin   404 Dec  3  2015
>>>>> INSTALL_RECEIPT.json
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 Linguist.app/
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 QMLViewer.app/
>>>>> -rw-r--r--    1 pieper  admin  3209 May  7  2015 README
>>>>> drwxr-xr-x   17 pieper  admin   578 Oct  3  2015 bin/
>>>>> drwxr-xr-x    4 pieper  admin   136 Oct  3  2015 imports/
>>>>> drwxr-xr-x   20 pieper  admin   680 Oct  3  2015 include/
>>>>> drwxr-xr-x   30 pieper  admin  1020 Dec  3  2015 lib/
>>>>> drwxr-xr-x  114 pieper  admin  3876 Dec  3  2015 mkspecs/
>>>>> drwxr-xr-x   15 pieper  admin   510 Oct  3  2015 phrasebooks/
>>>>> drwxr-xr-x   12 pieper  admin   408 Oct  3  2015 plugins/
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015
>>>>> qttracereplay.app/
>>>>> drwxr-xr-x    3 pieper  admin   102 Oct  3  2015 tests/
>>>>> drwxr-xr-x  102 pieper  admin  3468 Oct  3  2015 translations/
>>>>>
>>>>> On Tue, Feb 7, 2017 at 4:24 PM, Christian Bauer
>>>>> <[hidden email]> wrote:
>>>>>       Hi Steve,
>>>>>
>>>>>       I also installed qt via homebrew using:
>>>>>       brew install cartr/qt4/qt
>>>>>       xcode-select --install
>>>>>       as instructed in the developer wiki.
>>>>>
>>>>>       otool -l /us/local/bin/qmake gives me:
>>>>>       Load command 9
>>>>>             cmd LC_VERSION_MIN_MACOSX
>>>>>         cmdsize 16
>>>>>         version 10.7
>>>>>             sdk 10.12
>>>>>
>>>>>       Does this mean I have to set 10.7 as deployment target?
>>>>>
>>>>>       Christian
>>>>>
>>>>>       On Tue, 2017-02-07 at 15:44 -0500, Steve Pieper wrote:
>>>>>> Must be something about the deployment target / version of
>>>>>       qt.  I used
>>>>>> 10.9 because that's what corresponds to my qmake
>>>>>       installation.  My qt
>>>>>> is 4.8.7 installed via homebrew before the OS upgrade.
>>>>>>
>>>>>>
>>>>>> I built on 10.12.3 just now on the current git master.  I
>>>>>       get some
>>>>>> errors about opengl and vtkPlaneSource during startup, but
>>>>>       no
>>>>>> complaints about the libraries.
>>>>>>
>>>>>>
>>>>>> -Steve
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Feb 7, 2017 at 2:41 PM, chribaue
>>>>>       <[hidden email]>
>>>>>> wrote:
>>>>>>       Hi Folks,
>>>>>>
>>>>>>       I am also having troubles with my Slicer build on
>>>>>       Sierra
>>>>>>       10.12.3.
>>>>>>
>>>>>>       Slicer nighly builds and starts on my machine, but
>>>>>       outputs
>>>>>>       several errors of
>>>>>>       type:
>>>>>>
>>>>>        dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so,
>>>>>>       2): no suitable image found.  Did find:
>>>>>>
>>>>>>
>>>>>        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/./qSlicerBaseQTCLIPython.so:
>>>>>>       malformed mach-o: load commands size (33472) > 32768
>>>>>>
>>>>>>
>>>>>        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/bin/qSlicerBaseQTCLIPython.so:
>>>>>>       malformed mach-o: load commands size (33472) > 32768
>>>>>>
>>>>>        dlopen(/Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so,
>>>>>>       2): no suitable image found.  Did find:
>>>>>>
>>>>>>
>>>>>        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/./vtkSlicerAnnotationsModuleLogicPython.so:
>>>>>>       malformed mach-o: load commands size (35064) > 32768
>>>>>>
>>>>>>
>>>>>        /Users/christian/software/public/Slicer-src/Slicer-SuperBuild-Release/Slicer-build/lib/Slicer-4.7/qt-loadable-modules/vtkSlicerAnnotationsModuleLogicPython.so:
>>>>>>       malformed mach-o: load commands size (35064) > 32768
>>>>>>       ...
>>>>>>
>>>>>>       And all related Slicer functionality is not working.
>>>>>>
>>>>>>       I am working on Sierra 10.12.3 with the latest
>>>>>       nightly source
>>>>>>       code of
>>>>>>       Slicer.
>>>>>>       I followed the instructions from
>>>>>>
>>>>>        https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.12_.28Sierra.29
>>>>>>       and for cmake I've set:
>>>>>>       CMAKE_OSX_DEPLOYMENT_TARGET=10.12
>>>>>>       BUILD_TESTING=OFF
>>>>>>       Slicer_USE_PYTHONQT_WITH_TCL=OFF
>>>>>>       Slicer_USE_PYTHONQT_WITH_OPENSSL=ON
>>>>>>
>>>>>>       Any ideas what could be wrong?
>>>>>>
>>>>>>       Thank you,
>>>>>>       Christian
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>       --
>>>>>>       View this message in context:
>>>>>>
>>>>>        http://slicer-devel.65872.n3.nabble.com/Struggling-with-Sierra-build-tp4037945p4037966.html
>>>>>>       Sent from the slicer-devel mailing list archive at
>>>>>       Nabble.com.
>>>>>>       _______________________________________________
>>>>>>       slicer-devel mailing list
>>>>>>       [hidden email]
>>>>>>
>>>>>        http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>>>>>       To unsubscribe: send email to
>>>>>>       [hidden email] with
>>>>>       unsubscribe as the
>>>>>>       subject
>>>>>>
>>>>>        http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> slicer-devel mailing list
>>> [hidden email]
>>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
>>> To unsubscribe: send email to [hidden email]
>>> with unsubscribe as the subject
>>> http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
>>>
>>
>>
>
>

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with Sierra build

mschumaker
This post has NOT been accepted by the mailing list yet.
I'm also having difficulty building on Sierra.
Operating system: OSX 10.12.5
Slicer: Newest nightly
Qt: cartr/qt4/qt
CMake: 3.8.0
Xcode: 8.3.2
I've tried CMAKE_BUILD_TYPE set to Debug and Release, CMAKE_OSX_DEPLOYMENT_TARGET set to 10.12 and 10.9. CMAKE_C_COMPILER is set to /usr/bin/clang and CMAKE_CXX_COMPILER is set to /usr/bin/clang++. QT_QMAKE_EXECUTABLE is set to /usr/local/bin/qmake, which has a symbolic link to qmake in the Cellar directory.

The build fails on the "python" target. Error output is:

PhaseScriptExecution CMake\ Rules /Users/michaelschumaker/Packages/Slicer-SuperBuild-Debug/Slicer.build/Debug/python.build/Script-30496EF0E9A74020BE818B09.sh
    cd /Users/michaelschumaker/Packages/Slicer
    /bin/sh -c /Users/michaelschumaker/Packages/Slicer-SuperBuild-Debug/Slicer.build/Debug/python.build/Script-30496EF0E9A74020BE818B09.sh

make: *** No rule to make target `/Users/michaelschumaker/Packages/Slicer-SuperBuild-Debug/python-source-prefix/src/python-source-stamp/Release/python-source-done', needed by `/Users/michaelschumaker/Packages/Slicer-SuperBuild-Debug/python-prefix/src/python-stamp/Release/python-configure'.  Stop.
Command /bin/sh failed with exit code 2

What's interesting is that, even when I set it to the Debug build type, the directories of python-source-done and python-configure in the error are still "Release". Is there a mistake in the configuration script?
Software Developer at Sunnybrook Health Sciences Centre