Compile on windows:can't find medfile librries

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
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Compile on windows:can't find medfile librries

Post by makkemal »

I am using the latest libpack on github FreeCADLibs_11.3_x64_VC12

Code: Select all

-- OpenCASCADE Community Edition has been found.
-- Found OCE/OpenCASCADE version: 6.8.0
-- OCE/OpenCASCADE include directory: C:/Users/makke/Documents/GitHub/FreeCADLibs_11.3_x64_VC12/lib/cmake/../../include/oce
-- OCE/OpenCASCADE shared libraries directory: 
Check for medfile (libmed and libmedc) ...
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find MEDFile (missing: MEDFILE_LIBRARIES)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cMake/FindMEDFile.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:581 (find_package)
when I select use external smesh I get

Code: Select all

-- OpenCASCADE Community Edition has been found.
-- Found OCE/OpenCASCADE version: 6.8.0
-- OCE/OpenCASCADE include directory: C:/Users/makke/Documents/GitHub/FreeCADLibs_11.3_x64_VC12/lib/cmake/../../include/oce
-- OCE/OpenCASCADE shared libraries directory: 
ERROR================
SMESH not found.
================
I presume I have to point MEDFILE_ROOT_DIR to the correct location but cant find it
Thanks
Michael
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Compile on windows:can't find medfile librries

Post by DeepSOIC »

craighaynes
Posts: 1
Joined: Thu Dec 29, 2016 4:18 am

Re: Compile on windows:can't find medfile librries

Post by craighaynes »

On Windows, the default compiler is MS Visual Studio, be it the Express or Full 2008, 2012, or 2013 versions. You will also need to install the Windows Platform SDK to get several required libraries. The CMake build system gives us a lot more flexibility over the build process. That means we can switch on and off some features or modules. It's in a way like the Linux kernel build. You have a lot of switches to determine the build process.
Post Reply