[solved] Compilation of FreeCADGui fails because of 3Dconnexion

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[solved] Compilation of FreeCADGui fails because of 3Dconnexion

Post by uwestoehr »

I cannot compile the project FreeCADGui because of missing 3Dconnexion files in the source code. I checked out today's git master and get this:

Code: Select all

1>------ Build started: Project: FreeCADGui, Configuration: Release x64 ------
1>Generating 3Dconnexion/moc_GuiAbstractNativeEvent.cpp
1>standard input(0): Note: No relevant classes found. No output generated.
1>Generating moc_ManualAlignment.cpp
1>standard input(0): Note: No relevant classes found. No output generated.
1>Generating 3Dconnexion/moc_GuiNativeEventWin32.cpp
1>standard input(0): Note: No relevant classes found. No output generated.
1>GuiAbstractNativeEvent.cpp
1>D:\FreeCADGit\src\Gui\3Dconnexion\GuiAbstractNativeEvent.cpp(39): fatal error C1083: Cannot open include file: '3Dconnexion/moc_GuiAbstractNativeEvent.cpp': No such file or directory
1>GuiNativeEventWin32.cpp
1>D:\FreeCADGit\src\Gui\3Dconnexion\GuiNativeEventWin32.cpp(973): fatal error C1083: Cannot open include file: '3Dconnexion/moc_GuiNativeEventWin32.cpp': No such file or directory
1>TaskDialog.cpp
1>D:\FreeCADGit\src\Gui\TaskView\TaskDialog.cpp(106): fatal error C1004: unexpected end-of-file found
1>Generating Code...
1>Done building project "FreeCADGui.vcxproj" -- FAILED.
How can this be fixed?
Last edited by uwestoehr on Thu Sep 19, 2019 12:51 am, edited 1 time in total.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Compilation of FreeCADGui fails because of 3Dconnexion

Post by PrzemoF »

I have no idea about compilation under windows, but under linux there is a switch to turn off 3DConnexion. With linux I'd ask you:
- did you try clean directory compilation?
- did you try compilation with default options?
- what do you run to start the compilation?
- do you see the files in the source code directory?

I don't know if it's any good for a windows user? Some potentially useful info:
https://www.freecadweb.org/wiki/CompileOnWindows
https://www.freecadweb.org/wiki/index.p ... ut_devices
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Compilation of FreeCADGui fails because of 3Dconnexion

Post by uwestoehr »

PrzemoF wrote: Thu Aug 22, 2019 10:50 am I have no idea about compilation under windows, but under linux there is a switch to turn off 3DConnexion.
Concerning the building, I can answer all your questions with Yes.

I see there now that there is an option in CMake to switch off 3DConnexion. Many thanks for the hint.
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compilation of FreeCADGui fails because of 3Dconnexion

Post by wmayer »

The 3dConnexion files are part of the repository and independent of the CMake switch it should build without errors.
1>D:\FreeCADGit\src\Gui\TaskView\TaskDialog.cpp(106): fatal error C1004: unexpected end-of-file found
How does the end of this file look like? Is it possible that with your source files something is wrong? Or is it possible that you have any hardware issues such as a dying HDD?
Post Reply