Configure Error:Unknown CMake command "fc_wrap_cpp".

Having trouble installing or compiling FreeCAD? Get help here.
tak
Posts: 22
Joined: Thu May 02, 2019 2:32 am

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby tak » Thu May 09, 2019 6:43 am

apeltauer wrote:
Thu May 09, 2019 6:34 am
tak wrote:
Thu May 09, 2019 5:51 am
I got another problem now.
When check for medfile (libmed and libmedc), there is a error 'Unknown CMake command "ctest_empty_binary_directory".'
I checked the config in MEDFILE. "MEDFILE_F_LIBRARIES" not found and "MEDFILE_ROOT_DIR" is nothing. Are there something wrong?
https://imgur.com/r8ayh6E
In your pic i can see that your are using the libpack version 11.11. Any reason why not switching to the new one, version 12.1.2?
If I use version 12.1.2. The boost library cannot found. So I use 11.11.
User avatar
apeltauer
Posts: 212
Joined: Fri Aug 11, 2017 2:19 pm

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby apeltauer » Thu May 09, 2019 6:54 am

The cmake config files in the libpack 12.1.2 should find all the boost libs by itself. I run this several times a day in always works... :)
UR_
Posts: 1018
Joined: Tue Jan 03, 2017 8:42 pm

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby UR_ » Thu May 09, 2019 6:57 am

tak wrote:
Thu May 09, 2019 6:43 am
The boost library cannot found
sgrogan posted a nasty ;) workaround for this problem

https://forum.freecadweb.org/viewtopic. ... 10#p299534
tak
Posts: 22
Joined: Thu May 02, 2019 2:32 am

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby tak » Thu May 09, 2019 7:03 am

apeltauer wrote:
Thu May 09, 2019 6:54 am
The cmake config files in the libpack 12.1.2 should find all the boost libs by itself. I run this several times a day in always works... :)
libpack 12.1.2 with FC 0.19PRE?
cant libpack 12.1.2 with FC 0.18?

also is libpack 11.11 and 12.1.2 using python 2.7?
User avatar
apeltauer
Posts: 212
Joined: Fri Aug 11, 2017 2:19 pm

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby apeltauer » Thu May 09, 2019 8:49 am

The new libpack is 0.19 pre and it uses python 3.6
tak
Posts: 22
Joined: Thu May 02, 2019 2:32 am

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby tak » Thu May 09, 2019 9:11 am

UR_ wrote:
Thu May 09, 2019 6:57 am
tak wrote:
Thu May 09, 2019 6:43 am
The boost library cannot found
sgrogan posted a nasty ;) workaround for this problem

https://forum.freecadweb.org/viewtopic. ... 10#p299534
The boost is ok now.
I am using FC 0.18 and libpack 12.1.2.
But I face another problem "Qt5WebKitWidgets_DIR-NOTFOUND".
I already install QT. I can find many "Qt5xxxxx" folder under "FreeCADLibs_12.1.2_x64_VC15\lib\cmake" but not "Qt5WebKitWidgets".
https://imgur.com/itr2V28
User avatar
apeltauer
Posts: 212
Joined: Fri Aug 11, 2017 2:19 pm

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby apeltauer » Thu May 09, 2019 9:17 am

Qt5WebKitWidgets is obsolete in qt 5.12. You have to use the Qt5WebEngineWidgets. With Fc 0.19pre the modifications to use the Qt5WebEngineWidgets are already included in the cmake file....
tak
Posts: 22
Joined: Thu May 02, 2019 2:32 am

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby tak » Fri May 10, 2019 6:22 am

I changed to use FC 0.19 and libpack12.1.2 now.
generate and build the solution are OK with VS2017.
But where I click the FreeCAD.exe under bin folder.
There are few errors.
"The procedure entry point XXXXXXXXXXXXX could not be located in the dynamic link library xxxx.dll"
https://imgur.com/KycolDq
I already change the window language to english. I don't know why the alert is still chinese. I am sorry about that.
User avatar
apeltauer
Posts: 212
Joined: Fri Aug 11, 2017 2:19 pm

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby apeltauer » Fri May 10, 2019 8:00 am

Good to hear that the compilation worked.
Now you have to copy all files and folder from the libpack to your cmake build directory. (The folder structure needs to be the same then in the libpack)
The following folders are not mandatory to run FreeCAD:
  • cmake
  • inc
  • include
  • lib
Then FreeCAD.exe should run...
tak
Posts: 22
Joined: Thu May 02, 2019 2:32 am

Re: Configure Error:Unknown CMake command "fc_wrap_cpp".

Postby tak » Fri May 10, 2019 8:42 am

apeltauer wrote:
Fri May 10, 2019 8:00 am
Good to hear that the compilation worked.
Now you have to copy all files and folder from the libpack to your cmake build directory. (The folder structure needs to be the same then in the libpack)
The following folders are not mandatory to run FreeCAD:
  • cmake
  • inc
  • include
  • lib
Then FreeCAD.exe should run...
I big step forward now.
I copy all libpack file to the cmake build directory.
I can build and run the exe.
it can open the loading page.
https://imgur.com/uewYteR

but after a few second. the loading page is disappear and no software popup. The image is the last screen of the loading page.