Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [MSVC] FreeCAD failed to build with error C2036 on MSVC #7486

Closed
2 tasks done
fangzhouxia opened this issue Sep 14, 2022 · 7 comments
Closed
2 tasks done

[Bug] [MSVC] FreeCAD failed to build with error C2036 on MSVC #7486

fangzhouxia opened this issue Sep 14, 2022 · 7 comments
Assignees

Comments

@fangzhouxia
Copy link

fangzhouxia commented Sep 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Forums discussion

https://forum.freecadweb.org/viewtopic.php?f=4&t=71889

Version

0.21 (Development)

Full version info

N/A

Subproject(s) affected?

No response

Issue description

Hi all,
FreeCAD fails to build on MSVC due to error C2036. Could you help look?
Error message
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\vector(1946,1): error C2036: 'TechDraw::LineSet *': unknown size (compiling source file F:\gitP\FreeCAD\FreeCAD\src\Mod\TechDraw\App\AppTechDraw.cpp) [F:\gitP\FreeCAD\FreeCAD\build_amd64\src\Mod\TechDraw\App\TechDraw.vcxproj]
Repro steps

  1. open VS2019 x64 tools command
  2. git clone https://github.com/FreeCAD/FreeCAD.git F:\gitP\FreeCAD\FreeCAD
  3. download https://github.com/apeltauer/FreeCAD/re ... ack_12.5.2 F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17
  4. mkdir F:\gitP\FreeCAD\FreeCAD\build_amd64 && cd F:\gitP\FreeCAD\FreeCAD\build_amd64
  5. set CL= /permissive- or set CL= /std:c++latest
  6. set PATH=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17\bin;%PATH%
  7. set PATH=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17\bin\Scripts;%PATH%
  8. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DFREECAD_LIBPACK_DIR=F:\gitP\FreeCAD\tools\FreeCADLibs_12.5.2_x64_VC17 -DBUILD_FEM_NETGEN=OFF -DFREECAD_RELEASE_PDB=OFF -DFREECAD_RELEASE_SEH=OFF -DCMAKE_BUILD_TYPE=Release.
  9. msbuild /m /p:Platform=x64 /p:Configuration=Release FreeCAD.sln /t:Rebuild
    Detailed log
    build (5).log
    Expected Behaviour
    build successfully.
    version info
    OS Version: windows server 2019
    VS version: VS2019 (16.11.18)
    the commit of FreeCAD we use is dcf2bc4

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@WandererFan
Copy link
Contributor

Werner has already fixed this - https://forum.freecadweb.org/viewtopic.php?p=626194#p626194

@luzpaz
Copy link
Contributor

luzpaz commented Sep 15, 2022

Specifically 8b4e114

@fangzhouxia
Copy link
Author

fangzhouxia commented Sep 16, 2022

test.log.3.txt
@WandererFan Hi, according to this - https://forum.freecadweb.org/viewtopic.php?p=626194#p626194 error C2036 has indeed been resolved. But a new problem appeared in the runtest stage, as follows. Do I need to re-issue this issue?
Traceback (most recent call last):
File "F:\gitP\FreeCAD\FreeCAD\build_amd64\Mod\Part\TestPartApp.py", line 230, in testPlacement
self.assertTrue(box.Placement.isSame(p2 * p1))
AssertionError: False is not true


Ran 974 tests in 66.711s

FAILED (failures=1)
(25 %)
(33 %)
(41 %)
(50 %)
(58 %)
(66 %)
(75 %)
(83 %)
(91 %)
(100 %)

@WandererFan
Copy link
Contributor

WandererFan commented Sep 16, 2022 via email

@fangzhouxia
Copy link
Author

Hi, @ WandererFan could you give me a link to the forum, I can't find it

@WandererFan
Copy link
Contributor

WandererFan commented Sep 20, 2022 via email

@luzpaz

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants