compile problems

Submitted by alberthappy on Tue, 02/25/2014 - 23:30

When I try to compile the code with make file in Ubuntu 12.04, I met the problem as:

*** No rule to make target 'angle.o', needed by '../lmp_ubuntuVTK'. Stop.

Can someone give a hint? I'm a new user of LIGGGHTS

PaulWinkler's picture

PaulWinkler | Wed, 02/26/2014 - 17:54

Hi,

the script for Ubuntu is not working for LIGGGHTS 3.0 anymore. Maybe a developer could answer the question why. Something has changed in the newer LAMMPS versions (on which LIGGGHTS 3.0 is based).
This is a snip of the tutorial, please feel free to give a feedback, so I will update and complete my tutorial. There is no MPI support integrated, since do not use it at the moment. But there is support for jpeg and png (dump image).


## 2 Install Liggghts 3.x by compiling
## 2.1 Install Packages
sudo apt-get install git libvtk5-dev libeigen2-dev libopenmpi-dev
which mpirun
- /usr/bin/mpirun comes up?
which mpic++
- /usr/bin/mpic++ comes up?
## 2.2 Get Liggghts via Git
cd ~
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC
## 2.3 Compiling Liggghts with jpg and png support
cd $HOME/LIGGGHTS-PUBLIC/src
gedit /$HOME/LIGGGHTS-PUBLIC/src/MAKE/Makefile.serial
- add "-DLAMMPS_JPEG -DLAMMPS_PNG" in line 28
- add "-I/usr/include" in line 59
- add "-ljpeg -lpng" in line 61
- save and close gedit
make clean-all
make stubs
make serial
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_serial /usr/bin/liggghts
liggghts
- Liggghts comes up, telling version, compiling date etc.
Ctr+d

Regards,
Paul

alberthappy | Wed, 02/26/2014 - 20:51

Thanks, Paul. It works in this way. But the number of modified lines in Makefile.serial are not correct. They are line 31, line 62, line 64 in my file. Check it out.

Fenglei Qi

maxxum | Wed, 06/18/2014 - 10:43

If I may make a suggestion - the line numbers change with successive releases so it might be a better idea to quote the content of the line where any addition is to be made. The discussion above is for version 3.0.0 and I am trying to install 3.0.2 on Ubuntu 13.04. The line numbers have changes in the Makefile.serial. The first one (my guess) should be line 26. I don't have a clue for the rest.

manton | Fri, 01/08/2016 - 16:04

When i try to compile the code sudo make ubuntu VTK, i get following error:
../lmp_ubuntuVTK/usr/bin/ld: cannot find -ljped -lpng
collect2:error: ld returnded 1 exit status
make[1]: *** [../lmp_ubuntuVTK] Error 1
make[1]:Leaving directory ....
make:+++[ubuntuVTK] Error 2

Could someboy please help me. I m trying Ligghts for the first time.

richti83's picture

richti83 | Fri, 01/08/2016 - 18:47

your system is missing libjpeg (d??) and libpng, you can disable this linking dependency in MAKE/Makefile.ubuntuVTK or install the libs by apt-get (but I guess you won't need dump image when you use dump custom/vtk and paraview)

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

Misterblobby | Thu, 02/16/2017 - 09:49

Compiling in Ubuntu 14.04 failed using makefile.ubuntuVTK, but worked with makefile.fedora

z3490628 | Tue, 03/21/2017 - 02:44

I have try the command 'make fedora_fpic' . At the end, I got something like this:
text data bss dec hex filename
8146213 243952 832 8390997 800955 ../lmp_fedora_fpic
make[1]: Leaving directory '/home/"User"/LIGGGHTS-PUBLIC/src/Obj_fedora_fpic'

What shall I do in order to get "lmp_fedora_fpic" instead? Thanks.

marcelo | Tue, 04/04/2017 - 23:17

//usr/lib/libvtkGraphics.so.5.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:95: recipe for target '../lmp_ubuntuVTK' failed
make[1]: *** [../lmp_ubuntuVTK] Error 1
make[1]: Leaving directory '/home/cae/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
Makefile:72: recipe for target 'ubuntuVTK' failed
make: *** [ubuntuVTK] Error 2

realsnail | Tue, 06/20/2017 - 18:46

Same here. I'm using a system ubuntu 12.04. I tried the "make ubuntuVTK" and got the same error as above.
Then, i tried Paul's script with "make serial", and it appeared another error.
FInally i tried "make fedora" and it seems working.
Still don't know why :)

govind | Fri, 06/23/2017 - 16:23

Hi,

I am trying to compile with "sudo make ubuntuVTK" but I get fatal error: dump_custom_vtm.cpp:79:41: fatal error: vtkXMLPMultiBlockDataWriter.h: No such file or directory