vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

Win32 installer: pkg config is not available #376

Closed rtrepos closed 5 years ago

rtrepos commented 5 years ago

The Win32 installation process given in the doc repositoriy does not provide a pkg-config wich is usefull for finding EXPAT through CMake

NB: I use new versions of vle dependencies msys2-i686-20180531.exe qt-unified-windows-x86-3.1.0 cmake-3.14.3-win32 boost 1.70 innosetup 6.0.2

quesnel commented 5 years ago

In https://github.com/quesnel/vle/blob/master/appveyor.yml#L80 pkg-config from msys2 is not used (PATH does not include any msys2 bin). pkg-config is not installed with qt-creator?

rtrepos commented 5 years ago

No I don't think so. There is the pacman package for pkg-config.exe but it requires to set the msys2 bin directory into the path.

quesnel commented 5 years ago

You try to build VLE 2.0 or VLE 2.1?

rtrepos commented 5 years ago

I try to build the master branch

quesnel commented 5 years ago

I try to build the master branch

Ok. I don't try to build Master branch. The documentation is for Master 2.0.x. With the 2.0.x we don't rely on pkg-config.

rtrepos commented 5 years ago

Ok, actually pkg-config is used by FindEXPAT to find the expat lib.

quesnel commented 5 years ago

On Thu 16 May 19, rtrepos wrote:

Ok, actually pkg-config is used by FindEXPAT to find the expat lib.

Yes. The documentation is bad.

I think adding a cmake variable (CMAKE_PREFIX_PATH?) to the cmake command line will help the find_path and find_library functions to found the libexpat.

https://cmake.org/cmake/help/latest/command/find_path.html

rtrepos commented 5 years ago

Ok thanks. I finally used the pkg-config executable from Mingw and set PKG_CONFIG_PATH. Now, I have difficulties to compile QCustomPlot which is no longer available in vle.