Linking CGAL & BOOSt to qt-creator project
-
-
I actually posted this previously, but you need to change this
LIBS += -LC:/local/boost_1_59_0/lib64-msvc-12.0/ -libboost_system-vc120-mt-1_59/ -libboost_thread-vc120-mt-1_59/ -boost_filesystem-vc120-mt-1_59
to
LIBS += -LC:/local/boost_1_59_0/lib64-msvc-12.0\ -libboost_system-vc120-mt-1_59\ -libboost_thread-vc120-mt-1_59\ -boost_filesystem-vc120-mt-1_59
otherwise
- -libboost_system-vc120-mt-1_59
- -libboost_thread-vc120-mt-1_59
and - -boost_filesystem-vc120-mt-1_59
will not be included.
The normal backwards Slash\
has its uses in the project file and here's one of them!or add the whole path
LIBS += -LC:/local/boost_1_59_0/lib64-msvc-12.0 LIBS += -LC:/local/boost_1_59_0/libboost_system-vc120-mt-1_59 LIBS += -LC:/local/boost_1_59_0/libboost_thread-vc120-mt-1_59 LIBS += -LC:/local/boost_1_59_0/boost_filesystem-vc120-mt-1_59
-
A minor error on your part:
LIBS += -LC:/local/boost_1_59_0/lib64-msvc-12.0 \ -lboost_system-vc120-mt-1_59 \ -lboost_thread-vc120-mt-1_59 \ -lboost_filesystem-vc120-mt-1_59
Library prefixes are handled automatically with
qmake
when the proper-l
switch is passed. -
When I look at your upload at this section:
SOURCES += main.cpp mainwindow.cpp my_polyhedron.cpp myqglwidget.cpp
then you miss the backslashes here!
It should be:
SOURCES += main.cpp \ mainwindow.cpp \ my_polyhedron.cpp \ myqglwidget.cpp
Please check your project file everywhere and upload it again for review afterwards.
Thanks
-
if you mean here:
http://freetexthost.com/l5wzgtntzb
than no, you did not make the changes @aha_1980 told you to doSOURCES += main.cpp mainwindow.cpp my_polyhedron.cpp myqglwidget.cpp HEADERS += mainwindow.h My_CGAL_Config.h My_Face_base.h My_Halfedge_base.h my_polyhedron.h My_Vertex_base.h myqglwidget.h
still mising
\
at the end of the linealso you are adding the
widgets
module twice. I'm not sure in what that will result, but you should remove oneQT += core gui QT += widgets //remove me DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x000000 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets