[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnucap-devel] gnucap build with CMake on Windows
From: |
Patrick Mulder |
Subject: |
[Gnucap-devel] gnucap build with CMake on Windows |
Date: |
Fri, 28 Jun 2019 07:55:15 +0200 |
Hello,
I thought I'd try a Windows build of Gnucap with CMake and MinGW32:
cmake .. -G "Unix Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make.exe
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.17.1")
CMake Warning (dev) at CMakeLists.txt:33 (if):
Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
--help-policy CMP0064" for policy details. Use the cmake_policy command
to
set the policy and suppress this warning.
TEST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for readline in readline
-- Looking for readline in readline - found
-- Looking for tgetent in termcap
-- Looking for tgetent in termcap - found
-- Looking for dlopen
-- Looking for dlopen - not found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mulderpa/git/gnucap/build4
It works for the modelgen.exe and libgnucap.dll and then gives:
38%] Building CXX object
modelgen/CMakeFiles/gnucap-modelgen.dir/mg_out_lib.cc.obj
[ 39%] Building CXX object
modelgen/CMakeFiles/gnucap-modelgen.dir/mg_out_model.cc.obj
[ 40%] Building CXX object
modelgen/CMakeFiles/gnucap-modelgen.dir/mg_out_root.cc.obj
[ 40%] Linking CXX executable gnucap-modelgen.exe
[ 40%] Built target gnucap-modelgen
[ 41%] Generating d_diode.cc
'..' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe[2]: ***
[apps/CMakeFiles/gnucap-default-plugins.dir/build.make:123:
apps/d_diode.cc] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/Makefile2:85:
apps/CMakeFiles/gnucap-default-plugins.dir/all] Error 2
mingw32-make.exe: *** [Makefile:152: all] Error 2
I then tried to translate d_diode.model into a cc file manually and got:
modelgen/gnucap-modelgen.exe
C:/Users/muld/git/gnucap/build4/modelgen/gnucap-modelgen.exe: error while
loading shared libraries: libgnucap.dll: cannot open shared object file: No
such file or directory
I think linking/loading the DLL is different on Windows/MSys then native
Linux.
Maybe someone here on the mailing list has more ideas what could be done to
make it work.
Thanks!
Patrick
- [Gnucap-devel] gnucap build with CMake on Windows,
Patrick Mulder <=
- Re: [Gnucap-devel] gnucap build with CMake on Windows, Patrick Mulder, 2019/06/28
- Re: [Gnucap-devel] gnucap build with CMake on Windows, Felix Salfelder, 2019/06/28
- Re: [Gnucap-devel] gnucap build with CMake on Windows, Christian Gagneraud, 2019/06/28
- Re: [Gnucap-devel] link order, Felix Salfelder, 2019/06/29
- Re: [Gnucap-devel] link order, Christian Gagneraud, 2019/06/29
- Re: [Gnucap-devel] link order, Felix Salfelder, 2019/06/29
- Re: [Gnucap-devel] link order, Christian Gagneraud, 2019/06/29
- Re: [Gnucap-devel] link order, Felix Salfelder, 2019/06/29
- Message not available
- Re: [Gnucap-devel] link order, Patrick Mulder, 2019/06/29
- Re: [Gnucap-devel] link order, Felix Salfelder, 2019/06/29