[resolved] Build freecad broken !

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
paddle
Veteran
Posts: 1413
Joined: Mon Feb 03, 2020 4:47 pm

Re: Build freecad broken !

Post by paddle »

openBrain wrote: Fri Oct 07, 2022 11:28 am
paddle wrote: Fri Oct 07, 2022 10:44 am It now says "This application failed to start because no qt platform plugin could be initialized. Reinstalling the app may fix this problem".
Did you add all the appropriate lib paths to Windows PATH ?
If you didn't, you may have to instruct cmake with

Code: Select all

          -DFREECAD_COPY_DEPEND_DIRS_TO_BUILD=ON
          -DFREECAD_COPY_LIBPACK_BIN_TO_BUILD=ON
          -DFREECAD_COPY_PLUGINS_BIN_TO_BUILD=ON
Oh right I did the copy_libpack but forgot about the 2 others. I'm finishing building and will try that thanks.
User avatar
paddle
Veteran
Posts: 1413
Joined: Mon Feb 03, 2020 4:47 pm

Re: Build freecad broken !

Post by paddle »

It finally works.

For reference:

I think the root problem initially was that the libpack was out of date. Then when I installed the new pack, I changed the url to the libpack in cmake, but I didn't delete from the bin the libpack.
Then I deleted the whole bin, but in the new one I copied only the libpack and not the other 2 (DFREECAD_COPY_DEPEND_DIRS_TO_BUILD & DFREECAD_COPY_PLUGINS_BIN_TO_BUILD)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Build freecad broken !

Post by uwestoehr »

paddle wrote: Fri Oct 07, 2022 11:50 am I think the root problem initially was that the libpack was out of date.
@paddle There was already a (somehow hidden in the table) note about the update of the LibPack.

I improved this now by adding a new section:
https://wiki.freecadweb.org/Compile_on_ ... he_LibPack

I just made the latest LibPack we already use for the 0.20.1 builds "official":
https://github.com/FreeCAD/FreeCAD-LibPack/releases

Can you therefore please test if my instructions work for you when you update the LibPack?
User avatar
paddle
Veteran
Posts: 1413
Joined: Mon Feb 03, 2020 4:47 pm

Re: Build freecad broken !

Post by paddle »

uwestoehr wrote: Fri Oct 07, 2022 7:11 pm
paddle wrote: Fri Oct 07, 2022 11:50 am I think the root problem initially was that the libpack was out of date.
@paddle There was already a (somehow hidden in the table) note about the update of the LibPack.

I improved this now by adding a new section:
https://wiki.freecadweb.org/Compile_on_ ... he_LibPack

I just made the latest LibPack we already use for the 0.20.1 builds "official":
https://github.com/FreeCAD/FreeCAD-LibPack/releases

Can you therefore please test if my instructions work for you when you update the LibPack?
Thanks for adding this paragraph. I'm sure it will be useful.
It does work, the instruction are clear. Maybe you can add that instead of building INSTALL, one can select the build options in cmake? Though they may not appear so your way may be the best.
dbleess
Posts: 1
Joined: Sat Sep 09, 2023 4:42 am

Re: [resolved] Build freecad broken !

Post by dbleess »

Just an FYI, I am getting an error report on startup. Recent fresh overwrite install. I had a use for it and thought I'd try to teach myself how to use it finally.

A web search led me to this thread.

21:34:17 During initialization the error "module 'FreeCAD' has no attribute 'EndingAdd'" occurred in C:\apps\productivity\freecad\Mod\Image\InitGui.py
21:34:17 Please look into the log file for further information

As you can see, I am not using default path. I don't know if that is part of the problem or not.
A search of the folder reveals that there are multiple log files. I don't know which one to look into.

As long as the software works, I'm not too worried about it.
If someone is interested in cleaning it up, I would try to fill any data requests.
Post Reply