MSVC2013 c++11 support

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
sgrogan
Posts: 5425
Joined: Wed Oct 22, 2014 5:02 pm

Re: MSVC2013 c++11 support

Postby sgrogan » Fri Apr 05, 2019 9:06 pm

saso wrote:
Fri Apr 05, 2019 8:13 pm
Thanks, it was BUILD_QT5 ;)
Cool, the new Libpack has NetGen support too.
abdullah
Posts: 3174
Joined: Sun May 04, 2014 3:16 pm

Re: MSVC2013 c++11 support

Postby abdullah » Sat Apr 06, 2019 9:24 am

saso wrote:
Fri Apr 05, 2019 8:13 pm
Thanks, it was BUILD_QT5
So now it is stuck with finding libboost:

Code: Select all

-- C:/projects/freecad/build/src/Mod/Path/App/FeatureAreaPy.cpp
-- Could NOT find Boost
-- Could NOT find Boost
CMake Error at cmake-3.14.1-win64-x64/share/cmake-3.14/Modules/FindBoost.cmake:2132 (message):
  Unable to find the requested Boost libraries.
  Boost version: 1.67.0
  Boost include path: C:/projects/freecad/FreeCADLibs/include
  Could not find the following Boost libraries:
          boost_python
  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  src/Mod/Path/libarea/CMakeLists.txt:26 (find_package)
-- area module (for Path Workbench) will be installed to: lib
https://ci.appveyor.com/project/sasobad ... s/23636105
sgrogan wrote:...ping...
Any ideas?
abdullah
Posts: 3174
Joined: Sun May 04, 2014 3:16 pm

Re: MSVC2013 c++11 support

Postby abdullah » Sat Apr 06, 2019 9:30 am

saso wrote:
I found this link:
https://forum.freecadweb.org/viewtopic. ... 10#p135178

It says "it needed to delete the cache". Not sure what this means in an appimage where it should not be one... :?
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: MSVC2013 c++11 support

Postby saso » Sat Apr 06, 2019 10:04 am

abdullah wrote:
Sat Apr 06, 2019 9:24 am
So now it is stuck with finding libboost
Yes, by default it does not find the boost that is included in the libpack. If I set BOOST_ROOT=C:\Libraries\boost_1_67_0 (this is the boost library that is included in appveyor) or copy this to the libpack folder it will find the boost and run but then it breaks again by not finding boost_python from the Path/libarea/CMakeLists.txt possible because the boost_python from the C:\Libraries\boost_1_67_0 is py2 https://ci.appveyor.com/project/sasobad ... 43866#L267 ... I guess something is missing from the boost in the libpack or something has to be changed in the cmake files :| maybe sgrogan, werner or apeltauer will understand the issue better
User avatar
sgrogan
Posts: 5425
Joined: Wed Oct 22, 2014 5:02 pm

Re: MSVC2013 c++11 support

Postby sgrogan » Sat Apr 06, 2019 3:18 pm

saso wrote:
Sat Apr 06, 2019 10:04 am
maybe sgrogan, werner or apeltauer will understand the issue better
It looks like somehow CMake is fighting system boost/Libpack boost. Locally everything is found for me automatically, but I don't have a system installed boost.
You can try to brute force set all the libboost paths. You only need to set the release ones.
Capture.PNG
Capture.PNG (85.62 KiB) Viewed 246 times
User avatar
apeltauer
Posts: 212
Joined: Fri Aug 11, 2017 2:19 pm

Re: MSVC2013 c++11 support

Postby apeltauer » Sat Apr 06, 2019 4:14 pm

I think you need to set "FREECAD_LIBPACK_DIR" as an environment variable and point it to the libpack directory. Then everything should be found in from the libpack...
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: MSVC2013 c++11 support

Postby saso » Sat Apr 06, 2019 4:35 pm

apeltauer wrote:
Sat Apr 06, 2019 4:14 pm
I think you need to set "FREECAD_LIBPACK_DIR" as an environment variable and point it to the libpack directory. Then everything should be found in from the libpack...
FREECAD_LIBPACK_DIR is set and working. Appveyor has several boost versions available by default https://www.appveyor.com/docs/windows-i ... are/#boost, but I am guessing that non of this are actually installed on the system so by default cmake does not see them, when I set BOOST_ROOT=C:\Libraries\boost_1_67_0 it sort of starts to work but then breaks at boost_python from the Path/libarea/CMakeLists.txt, I am guessing because there is py2 and we need py3...

Can you maybe pack your installed boost directory as an extra package and make it available on github next to libpack. I would then try to just download and unpack it and point the cmake to it... ? I could try to download, build and install it from the source but this will only take more time from each build.
User avatar
sgrogan
Posts: 5425
Joined: Wed Oct 22, 2014 5:02 pm

Re: MSVC2013 c++11 support

Postby sgrogan » Sat Apr 06, 2019 4:42 pm

saso wrote:
Sat Apr 06, 2019 4:35 pm
FREECAD_LIBPACK_DIR is set and working.
There seems to be a difference if FREECAD_LIBPACK_DIR is set as a CMake variable or a system variable.
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: MSVC2013 c++11 support

Postby saso » Sat Apr 06, 2019 4:45 pm

sgrogan wrote:
Sat Apr 06, 2019 3:18 pm
Locally everything is found for me automatically, but I don't have a system installed boost.
Interesting, I was thinking it must be working for you because you probably have a system installed boost :|
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: MSVC2013 c++11 support

Postby saso » Sat Apr 06, 2019 5:10 pm

sgrogan wrote:
Sat Apr 06, 2019 4:42 pm
There seems to be a difference if FREECAD_LIBPACK_DIR is set as a CMake variable or a system variable.
:?: Can you explain this more directly