Answer the question
In order to leave comments, you need to log in
How to build the .lib library [muParser]?
I need to link the muParser library ( GitHub ) to a Qt Creator project.
1. Installation on win32
========================
muParser supports various win32 command-line compilers:
-> mingw
-> watcom
-> microsoft CL
and provides also the project files for MSVC6 IDE.
In order to compile muParser from makefiles, open an MSDOS prompt and
then move to the muParser/build directory and type:
mingw32-make -fmakefile.mingw for mingw
nmake -fmakefile.vc for msvc
make -fmakefile.bcc for borland
wmake -fmakefile.wat for watcom
All makefiles supports the following options:
# Set to 1 to build debug version [0,1]
# 0 - Release
# 1 - Debug
DEBUG = 0
# Set to 1 to build shared (DLL) version [0,1]
# 0 - Static
# 1 - DLL
SHARED = 0
# Set to 1 to compile samples [0,1]
SAMPLES = 1
The muParser library is created in the 'lib' folder and the sample binaries are
created in samples\example1 or samples\example2.
mingw32-make: makefile.mingw: No such or directory
mingw32-make: *** No rule to make target 'makefile.mingw'. stop.
Answer the question
In order to leave comments, you need to log in
So there is CMakeLists.txt at the root. Something like "mkdir build && cd build && cmake .. && make" (Windows equivalent) doesn't work?
Why not look at CI scripts, for example for AppVeyor?
Version from master branch :
version: 1.0.{build}
os: Visual Studio 2015
clone_folder: C:\projects\muParser
test: off
branches:
only:
- master
environment:
matrix:
- CMAKE_PLATFORM: Visual Studio 14 2015
build_script:
- cmake -LAH -G "%CMAKE_PLATFORM%" -DCMAKE_INSTALL_PREFIX="%CD:\=/%/install" .
- cmake --build . --config Release --target install
- ctest -C Release --output-on-failure
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question