LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Rebuilding LAMMPS in windows-Regarding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Rebuilding LAMMPS in windows-Regarding


From: Axel Kohlmeyer <akohlmey@...24...>
Date: Thu, 10 Aug 2017 06:32:59 -0400



On Thu, Aug 10, 2017 at 6:16 AM, Kousika A <kousika12@...24...> wrote:
Thank you so much Axel.

That problem has been solved. But I am facing one more issue saying "undefined reference to 'GetProcessMemoryInfo@...981...' and collect2.exe :error: ld returned 1 exit status.

Kindly clarify this too. 

​when compiling on windows, you need to add a couple of nonstandard libraries.
please change the LIB variable in Makefile.serial to contain: -lwsock32 -lpsapi​

axel.


 

Thanks in advance

On Thu, Aug 10, 2017 at 3:19 PM, Axel Kohlmeyer <akohlmey@...24...> wrote:


On Thu, Aug 10, 2017 at 3:53 AM, Kousika A <kousika12@...24...> wrote:
Thank you so much Ray.

I am using MinGw for building lammps in windows now. But when I am giving make serial, the compilation goes on and when it reaches compute_centro atom the compilation stops with an error " there are no arguments to posix
-memalign that depend on a template parameter so a declaration of 'posix-memalign should be available [-fpermissive]"

Can anyone explain why this happening and how to fix this?

the ​window programming environment does not natively provide the function posix_memalign(), thus please edit src/MAKE/Makefile.serial and remove "-DLAMMPS_MEMALIGN=64" from the line defining the "LMP_INC" variable. then do "make clean-all; make serial". this should use malloc(), which is supported.

axel.

 

Thank you all in advance.

On Wed, Aug 9, 2017 at 10:28 AM, Ray Shan <rshan@...1795...> wrote:
 

From: Kousika A <kousika12@...24...>
Date: Tuesday, August 8, 2017 at 9:52 PM
To: "lammps-users@...42...e.net" <lammps-users@...4241......e.net>
Subject: [lammps-users] Rebuilding LAMMPS in windows-Regarding

 

Hello all,

             I am using LAMMPS in windows. I have modified a pairstyle for my system and saved new files (both c++ and header files). For including the change in the executable file, it is mentioned in manual to rebuild the lammps. How to do in windows? Kindly help to figure this out.



--

Best regards,

A.KOUSIKA

Research Scholar

Department of Metallurgical and Materials Engineering

IITMadras.




--
Best regards,
A.KOUSIKA
Research Scholar
Department of Metallurgical and Materials Engineering
IITMadras.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
lammps-users mailing list
lammps-users@...655....net
https://lists.sourceforge.net/lists/listinfo/lammps-users




--
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.



--
Best regards,
A.KOUSIKA
Research Scholar
Department of Metallurgical and Materials Engineering
IITMadras.



--
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.