[MBDyn-users] mbdyn windows build patch

Pierangelo Masarati pierangelo.masarati at polimi.it
Thu Jan 18 06:30:16 CET 2018

On 01/17/2018 05:07 PM, Richard Crozier wrote:
> On 17/01/18 16:00, Pierangelo Masarati wrote:
>> On 01/17/2018 03:17 PM, Richard Crozier wrote:
>>> Dear Prof. Masarati,
>>> I mentioned previosly that I have done some work on porting MBDyn to 
>>> Windows. I attach a patch 
> <snip>
>> Thanks, I'll look at it ASAP.  Patches are always welcome, but 
>> unfortunately time is running shorter and shorter, sorry... :-)
>> Sincerely, p.
> I understand, I have my own open source projects and have the same 
> problem.

Dear Richard,

your patch applies smoothly, but I have a compile error

make[2]: Entering directory 
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H 
-I. -I../../include  -I../../include -I./../../include 
-I./../../libraries/libmbc -I./../../libraries/libmbutil 
-I./../../libraries/libmbmath -I./../../libraries/libmbwrap 
-I./../../libraries/libmbc -I./../../mbdyn -I./../../mbdyn/base 
-I./../../mbdyn/struct -I./../../mbdyn/aero -I./../../mbdyn/elec 
-I./../../mbdyn/hydr -I/usr/include/octave-3.8.1 
-I/usr/include/octave-3.8.1/octave -I/usr/include/suitesparse 
-I/usr/include -I/usr/lib/pymodules/python2.7/numpy/core/include/numpy 
-U__stdcall -D__stdcall= -DCHARM_DEBUG=1  -g -Wall 
-Wno-unused-local-typedefs -pthread -MT strext.lo -MD -MP -MF 
.deps/strext.Tpo -c -o strext.lo strext.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include 
-I../../include -I./../../include -I./../../libraries/libmbc 
-I./../../libraries/libmbutil -I./../../libraries/libmbmath 
-I./../../libraries/libmbwrap -I./../../libraries/libmbc -I./../../mbdyn 
-I./../../mbdyn/base -I./../../mbdyn/struct -I./../../mbdyn/aero 
-I./../../mbdyn/elec -I./../../mbdyn/hydr -I/usr/include/octave-3.8.1 
-I/usr/include/octave-3.8.1/octave -I/usr/include/suitesparse 
-I/usr/include -I/usr/lib/pymodules/python2.7/numpy/core/include/numpy 
-U__stdcall -D__stdcall= -DCHARM_DEBUG=1 -g -Wall 
-Wno-unused-local-typedefs -pthread -MT strext.lo -MD -MP -MF 
.deps/strext.Tpo -c strext.cc -fPIC -DPIC -o .libs/strext.o
In file included from strext.cc:48:0:
./../../libraries/libmbc/sharedmem.h:41:56: fatal error: 
boost/interprocess/managed_shared_memory.hpp: No such file or directory
  #include <boost/interprocess/managed_shared_memory.hpp>
compilation terminated.
make[2]: *** [strext.lo] Error 1
make[2]: Leaving directory 
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/masarati/Lavoro/mbdyn/mbdyn-win/mbdyn'
make: *** [all-recursive] Error 1

All boost-related headers are missing: in include/mbconfig.h


You probably need to add some further ifdefs to shared memory-related 
code.  Could you please look at it?

Thanks, p.

> Thanks,
> Richard

Pierangelo Masarati
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano

More information about the MBDyn-users mailing list