fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Having trouble installing or compiling FreeCAD? Get help here.
pranav_sondhi
Posts: 4
Joined: Tue Jan 22, 2019 8:35 am

fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby pranav_sondhi » Tue Jan 22, 2019 8:41 am

Hello,

I am new to FreeCAD.

I tried to compile FreeCAD on my system using cMake and VS 2017 Community. I am encountering an error repeatedly and have no idea why this is happening.

I am attaching the error log and output log.

Please do let me know regarding the best course of action there. I am using Windows 10 not Ubuntu.

Regards,
Pranav Sondhi
Attachments
CMakeOutput.log
(29.24 KiB) Downloaded 8 times
CMakeError.log
(3.1 KiB) Downloaded 14 times
reox
Posts: 515
Joined: Sat Aug 13, 2016 10:06 am

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby reox » Tue Jan 22, 2019 3:06 pm

usually this error happens because something in the configure failed earlier.
cmake is just printing out everything and this error happens there.

Can you post the whole output of the cmake call? I can not see anything in the two log files.
User avatar
sgrogan
Posts: 4893
Joined: Wed Oct 22, 2014 5:02 pm

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby sgrogan » Thu Jan 24, 2019 12:06 am

pranav_sondhi wrote:
Tue Jan 22, 2019 8:41 am
I tried to compile FreeCAD on my system using cMake and VS 2017 Community.
What are you using for FreeCAD's dependencies, the available Libpacks work with VS2013 only.
pranav_sondhi
Posts: 4
Joined: Tue Jan 22, 2019 8:35 am

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby pranav_sondhi » Mon Feb 04, 2019 9:10 am

Hi sgrogan,

I am using VS2017 community. I do all my development with this itself, which is creating add-ons for Solid Works & AutoCAD. The SDK for both are made for VS2010 but work with VS2015 & VS2017 (my current platform). I was hoping for it to work with FreeCAD as well.

For this I was hoping if there could be any other reason for this to happen.

Regards
pranav_sondhi
Posts: 4
Joined: Tue Jan 22, 2019 8:35 am

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby pranav_sondhi » Mon Feb 04, 2019 9:15 am

Hi reox,

Can you guide me to the location of the files you require.

I am new to this and am not sure where to find the same.

Thanks
reox
Posts: 515
Joined: Sat Aug 13, 2016 10:06 am

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby reox » Tue Feb 05, 2019 4:10 pm

just save the whole output (stderr + stdout) of cmake somewhere. Usually the problem is visible in the first few hundret lines where all packages are configured and search.
pranav_sondhi
Posts: 4
Joined: Tue Jan 22, 2019 8:35 am

Re: fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

Postby pranav_sondhi » Thu Feb 07, 2019 7:18 pm

reox wrote:
Tue Feb 05, 2019 4:10 pm
just save the whole output (stderr + stdout) of cmake somewhere. Usually the problem is visible in the first few hundret lines where all packages are configured and search.

I just used my other workstation to do a clean install using VS2013. Now i am getting a different issue (attached cmake message box output). I also installed a new OpenCASCADE librarry (could fined it only for VS10).

I am getting an error "Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)".

I am not able to find the option "FREECAD_BUILD_DOXYGEN_DOCU" to disable (as per the wiki documentation).
Attachments
cmake output.txt
(4.22 KiB) Downloaded 12 times