problem building demos with Qt5

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

problem building demos with Qt5

robinsv
I've downloaded and installed CGAL-4.10 on Mac OS 10.10.5  

I build and compiled with Qt5 and got the following libraries ~/cgal-releases-CGAL-4.10/build/lib/ :

libCGAL.13.0.0.dylib libCGAL_Core.13.0.0.dylib libCGAL_ImageIO.13.0.0.dylib libCGAL_Qt5.13.0.0.dylib
libCGAL.13.dylib libCGAL_Core.13.dylib libCGAL_ImageIO.13.dylib libCGAL_Qt5.13.dylib
libCGAL.dylib libCGAL_Core.dylib libCGAL_ImageIO.dylib libCGAL_Qt5.dylib

I set the CGAL_DIR=~/cgal-releases-CGAL-4.10/build

I then tried to compile demos for Periodic_3_triangulation_3:
In the directory ~/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
I ran
> cmake .

and get the following

-- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be configured.
-- NOTICE: The CGAL_Qt5 library was not configured.
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '
-- Targetting Unix Makefiles
-- Using /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ compiler.
-- DARWIN_VERSION=14
-- Mac Leopard detected
-- Code taken from Git branch: n/a
-- Requested component: Qt5
-- Requested component: MPFR
-- Requested component: GMP
-- NOTICE: This demo requires qcollectiongenerator, Qt5, the CGAL Qt5 library, and will not be compiled.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3


I don't understand why cmake can't find the CGAL_Qt5 library.

Grateful for any advice you can give me.

Kind regards,
Vanessa

 
Reply | Threaded
Open this post in threaded view
|

Re: problem building demos with Qt5

Sebastien Loriot (GeometryFactory)
Did you set the environment variable Qt5_DIR to point to the path to
the directory containing the file Qt5Config.cmake from your Qt5
installation?

Sebastien.

On 06/27/2017 07:40 AM, robinsv wrote:

> I've downloaded and installed CGAL-4.10 on Mac OS 10.10.5
>
> I build and compiled with Qt5 and got the following libraries
> ~/cgal-releases-CGAL-4.10/build/lib/ :
>
> libCGAL.13.0.0.dylib libCGAL_Core.13.0.0.dylib libCGAL_ImageIO.13.0.0.dylib
> libCGAL_Qt5.13.0.0.dylib
> libCGAL.13.dylib libCGAL_Core.13.dylib libCGAL_ImageIO.13.dylib
> libCGAL_Qt5.13.dylib
> libCGAL.dylib libCGAL_Core.dylib libCGAL_ImageIO.dylib libCGAL_Qt5.dylib
>
> I set the CGAL_DIR=~/cgal-releases-CGAL-4.10/build
>
> I then tried to compile demos for Periodic_3_triangulation_3:
> In the directory
> ~/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
> I ran
>> cmake .
>
> and get the following
>
> -- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be
> configured.
> -- NOTICE: The CGAL_Qt5 library was not configured.
> -- Build type: Release
> -- USING CXXFLAGS = ' -O3 -DNDEBUG'
> -- USING EXEFLAGS = '
> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
> '
> -- Targetting Unix Makefiles
> -- Using
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
> compiler.
> -- DARWIN_VERSION=14
> -- Mac Leopard detected
> -- Code taken from Git branch: n/a
> -- Requested component: Qt5
> -- Requested component: MPFR
> -- Requested component: GMP
> -- NOTICE: This demo requires qcollectiongenerator, Qt5, the CGAL Qt5
> library, and will not be compiled.
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
>
>
> I don't understand why cmake can't find the CGAL_Qt5 library.
>
> Grateful for any advice you can give me.
>
> Kind regards,
> Vanessa
>
>
>
>
>
> --
> View this message in context: http://cgal-discuss.949826.n4.nabble.com/problem-building-demos-with-Qt5-tp4662789.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: problem building demos with Qt5

robinsv
Thanks for that quick reply!  

I set the Qt5_DIR environment variable, and also QGLVIEWERROOT=/usr/local/libQGLViewer-2.7.0
This allowed cmake to run and make also compiled with no complaints.  

But then trying to run the demo I get

./periodic_3_triangulation_3_demo

dyld: Library not loaded: QGLViewer.framework/Versions/2/QGLViewer
  Referenced from: /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/./periodic_3_triangulation_3_demo
  Reason: image not found
Trace/BPT trap: 5

Any hints on this one?  

Regards,
Vanessa


> On 27 Jun 2017, at 4:18 pm, Sebastien Loriot (GeometryFactory) <[hidden email]> wrote:
>
> Did you set the environment variable Qt5_DIR to point to the path to
> the directory containing the file Qt5Config.cmake from your Qt5 installation?
>
> Sebastien.
>
> On 06/27/2017 07:40 AM, robinsv wrote:
>> I've downloaded and installed CGAL-4.10 on Mac OS 10.10.5
>>
>> I build and compiled with Qt5 and got the following libraries
>> ~/cgal-releases-CGAL-4.10/build/lib/ :
>>
>> libCGAL.13.0.0.dylib libCGAL_Core.13.0.0.dylib libCGAL_ImageIO.13.0.0.dylib
>> libCGAL_Qt5.13.0.0.dylib
>> libCGAL.13.dylib libCGAL_Core.13.dylib libCGAL_ImageIO.13.dylib
>> libCGAL_Qt5.13.dylib
>> libCGAL.dylib libCGAL_Core.dylib libCGAL_ImageIO.dylib libCGAL_Qt5.dylib
>>
>> I set the CGAL_DIR=~/cgal-releases-CGAL-4.10/build
>>
>> I then tried to compile demos for Periodic_3_triangulation_3:
>> In the directory
>> ~/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
>> I ran
>>> cmake .
>>
>> and get the following
>>
>> -- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be
>> configured.
>> -- NOTICE: The CGAL_Qt5 library was not configured.
>> -- Build type: Release
>> -- USING CXXFLAGS = ' -O3 -DNDEBUG'
>> -- USING EXEFLAGS = '
>> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
>> '
>> -- Targetting Unix Makefiles
>> -- Using
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
>> compiler.
>> -- DARWIN_VERSION=14
>> -- Mac Leopard detected
>> -- Code taken from Git branch: n/a
>> -- Requested component: Qt5
>> -- Requested component: MPFR
>> -- Requested component: GMP
>> -- NOTICE: This demo requires qcollectiongenerator, Qt5, the CGAL Qt5
>> library, and will not be compiled.
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to:
>> /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
>>
>>
>> I don't understand why cmake can't find the CGAL_Qt5 library.
>>
>> Grateful for any advice you can give me.
>>
>> Kind regards,
>> Vanessa
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://cgal-discuss.949826.n4.nabble.com/problem-building-demos-with-Qt5-tp4662789.html
>> Sent from the cgal-discuss mailing list archive at Nabble.com.
>>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: problem building demos with Qt5

Sebastien Loriot (GeometryFactory)
Did you check that QGlviewer has been compiled using Qt5 and not Qt4 ?
You can run ldd on libqglviewer.so for example.

Sebastien.

On 06/27/2017 08:53 AM, Vanessa Robins wrote:

> Thanks for that quick reply!
>
> I set the Qt5_DIR environment variable, and also QGLVIEWERROOT=/usr/local/libQGLViewer-2.7.0
> This allowed cmake to run and make also compiled with no complaints.
>
> But then trying to run the demo I get
>
> ./periodic_3_triangulation_3_demo
>
> dyld: Library not loaded: QGLViewer.framework/Versions/2/QGLViewer
>   Referenced from: /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/./periodic_3_triangulation_3_demo
>   Reason: image not found
> Trace/BPT trap: 5
>
> Any hints on this one?
>
> Regards,
> Vanessa
>
>
>> On 27 Jun 2017, at 4:18 pm, Sebastien Loriot (GeometryFactory) <[hidden email]> wrote:
>>
>> Did you set the environment variable Qt5_DIR to point to the path to
>> the directory containing the file Qt5Config.cmake from your Qt5 installation?
>>
>> Sebastien.
>>
>> On 06/27/2017 07:40 AM, robinsv wrote:
>>> I've downloaded and installed CGAL-4.10 on Mac OS 10.10.5
>>>
>>> I build and compiled with Qt5 and got the following libraries
>>> ~/cgal-releases-CGAL-4.10/build/lib/ :
>>>
>>> libCGAL.13.0.0.dylib libCGAL_Core.13.0.0.dylib libCGAL_ImageIO.13.0.0.dylib
>>> libCGAL_Qt5.13.0.0.dylib
>>> libCGAL.13.dylib libCGAL_Core.13.dylib libCGAL_ImageIO.13.dylib
>>> libCGAL_Qt5.13.dylib
>>> libCGAL.dylib libCGAL_Core.dylib libCGAL_ImageIO.dylib libCGAL_Qt5.dylib
>>>
>>> I set the CGAL_DIR=~/cgal-releases-CGAL-4.10/build
>>>
>>> I then tried to compile demos for Periodic_3_triangulation_3:
>>> In the directory
>>> ~/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
>>> I ran
>>>> cmake .
>>>
>>> and get the following
>>>
>>> -- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be
>>> configured.
>>> -- NOTICE: The CGAL_Qt5 library was not configured.
>>> -- Build type: Release
>>> -- USING CXXFLAGS = ' -O3 -DNDEBUG'
>>> -- USING EXEFLAGS = '
>>> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
>>> '
>>> -- Targetting Unix Makefiles
>>> -- Using
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
>>> compiler.
>>> -- DARWIN_VERSION=14
>>> -- Mac Leopard detected
>>> -- Code taken from Git branch: n/a
>>> -- Requested component: Qt5
>>> -- Requested component: MPFR
>>> -- Requested component: GMP
>>> -- NOTICE: This demo requires qcollectiongenerator, Qt5, the CGAL Qt5
>>> library, and will not be compiled.
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to:
>>> /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
>>>
>>>
>>> I don't understand why cmake can't find the CGAL_Qt5 library.
>>>
>>> Grateful for any advice you can give me.
>>>
>>> Kind regards,
>>> Vanessa
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context: http://cgal-discuss.949826.n4.nabble.com/problem-building-demos-with-Qt5-tp4662789.html
>>> Sent from the cgal-discuss mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>
>>
>
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: problem building demos with Qt5

Sukhraj Singh
Just to inform.

I have made a step by step Installation guideline for CGAL and Polyhedron Demo.
Please see the link
And download the pdf provided named: CGAL_Installation_Guide_V2.1.pdf 
You can compare your steps from this guide.



On Tue, Jun 27, 2017 at 12:41 PM, Sebastien Loriot (GeometryFactory) <[hidden email]> wrote:
Did you check that QGlviewer has been compiled using Qt5 and not Qt4 ?
You can run ldd on libqglviewer.so for example.

Sebastien.


On 06/27/2017 08:53 AM, Vanessa Robins wrote:
Thanks for that quick reply!

I set the Qt5_DIR environment variable, and also QGLVIEWERROOT=/usr/local/libQGLViewer-2.7.0
This allowed cmake to run and make also compiled with no complaints.

But then trying to run the demo I get

./periodic_3_triangulation_3_demo

dyld: Library not loaded: QGLViewer.framework/Versions/2/QGLViewer
  Referenced from: /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/./periodic_3_triangulation_3_demo
  Reason: image not found
Trace/BPT trap: 5

Any hints on this one?

Regards,
Vanessa


On 27 Jun 2017, at 4:18 pm, Sebastien Loriot (GeometryFactory) <[hidden email]> wrote:

Did you set the environment variable Qt5_DIR to point to the path to
the directory containing the file Qt5Config.cmake from your Qt5 installation?

Sebastien.

On 06/27/2017 07:40 AM, robinsv wrote:
I've downloaded and installed CGAL-4.10 on Mac OS 10.10.5

I build and compiled with Qt5 and got the following libraries
~/cgal-releases-CGAL-4.10/build/lib/ :

libCGAL.13.0.0.dylib            libCGAL_Core.13.0.0.dylib       libCGAL_ImageIO.13.0.0.dylib
libCGAL_Qt5.13.0.0.dylib
libCGAL.13.dylib                libCGAL_Core.13.dylib           libCGAL_ImageIO.13.dylib
libCGAL_Qt5.13.dylib
libCGAL.dylib                   libCGAL_Core.dylib              libCGAL_ImageIO.dylib           libCGAL_Qt5.dylib

I set the CGAL_DIR=~/cgal-releases-CGAL-4.10/build

I then tried to compile demos for Periodic_3_triangulation_3:
In the directory
~/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3
I ran
cmake .

and get the following

-- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be
configured.
-- NOTICE: The CGAL_Qt5 library was not configured.
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- Targetting Unix Makefiles
-- Using
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
compiler.
-- DARWIN_VERSION=14
-- Mac Leopard detected
-- Code taken from Git branch: n/a
-- Requested component: Qt5
-- Requested component: MPFR
-- Requested component: GMP
-- NOTICE: This demo requires qcollectiongenerator, Qt5, the CGAL Qt5
library, and will not be compiled.
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3


I don't understand why cmake can't find the CGAL_Qt5 library.

Grateful for any advice you can give me.

Kind regards,
Vanessa





--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/problem-building-demos-with-Qt5-tp4662789.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





--
Sukhraj Singh
 
Reply | Threaded
Open this post in threaded view
|

Re: problem building demos with Qt5

teillaud
Administrator
In reply to this post by robinsv
Hi 

After struggling, googling, reading stack overflow, etc, we found the solution. It is just a (stupid) Mac thing.

~/Library/Frameworks must contain a symbolic link to (path)/libQGLViewer-xx/QGLViewer/QGLViewer.framework

Just manually adding the link eventually allowed the periodic_3.._demo to work. 

A cube has never looked so nice!! ;) 

--
Monique Teillaud 
https://members.loria.fr/Monique.Teillaud/
INRIA Nancy - Grand Est, LORIA 
Institut National de Recherche en Informatique et Automatique 

On 27 Jun 2017, at 08:53, Vanessa Robins <[hidden email]> wrote:

Thanks for that quick reply!   

I set the Qt5_DIR environment variable, and also QGLVIEWERROOT=/usr/local/libQGLViewer-2.7.0
This allowed cmake to run and make also compiled with no complaints.  

But then trying to run the demo I get

./periodic_3_triangulation_3_demo

dyld: Library not loaded: QGLViewer.framework/Versions/2/QGLViewer
 Referenced from: /Users/vanessa/Software/cgal-releases-CGAL-4.10/Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/./periodic_3_triangulation_3_demo
 Reason: image not found
Trace/BPT trap: 5

Any hints on this one?  

Regards,
Vanessa