LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling XPDP1 make error (https://www.linuxquestions.org/questions/linux-software-2/compiling-xpdp1-make-error-4175553881/)

cgnick26 09-18-2015 01:17 PM

Compiling XPDP1 make error
 
I am unable to solve this issue regarding XGC250

bash-4.1$ make
gcc -o ../xpdp1 fft.o field.o move.o gather.o pdp1.o start.o load.o prest.o padjus.o initwin.o maxwellv.o mccdiaginit.o xsect.o argonmcc.o heliummcc.o neonmcc.o oxygenmcc.o mcc.o -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib -lXGC250 -L/usr/lib -ltk -ltcl -lXpm -lX11 -lm -ldl
/usr/bin/ld: cannot find -lXGC250
collect2: ld returned 1 exit status
make: *** [../xpdp1] Error 1

knudfl 09-19-2015 04:42 AM

Welcome to LQ.

-lXGC250 means libXGC250.a , from "xgrafix" >>> xgrafix-2.70.5.tar.gz
http://ptsg.egr.msu.edu/pub/codes/xg...-2.70.5.tar.gz

Build example http://hareesh098.blogspot.dk/2015/0...ubuntu-12.html
... provides /usr/local/lib/libXGC250.a


-

cgnick26 09-19-2015 08:38 AM

That's what I originally thought. It did the same with -lm and -ldl.

After fixing those with the appropriate paths (i.e. -L/home/name/xgrafix/lib/libXGC250.a), a tremendous amount of errors throughout the code appeared that were unrecognized statements.

knudfl 09-19-2015 11:28 AM

Re #3.

How old is your "XPDP1" ?
This command will show the time stamps in XPDP1* : $ ls -laR

? May be XPDP1 requires an older version of libXGC250.a ?


Any questions ? Then please specify your OS : Name and version.


-

knudfl 09-19-2015 12:19 PM

The example OS, mentioned in post #2 : Ubuntu 12.04 - 64
>>> No xpdp1 issues. See the below text .....
Code:

$ tar xvf xpdp1.tar.gz 
http://ptsg.egr.msu.edu/pub/codes/xpdp1/xpdp1.tar.gz
$ cd xpdp1/
$ ./xpdp1 : OK.
$ cd src/ && make -f makefile.linux
$ cd ../bin/ && ./xpdp1.linux : Also OK.


-

knudfl 09-19-2015 01:50 PM

Ref. your thread about Xoopic software from PTSG
http://www.linuxquestions.org/questi...es-4175553882/
PTSG http://ptsg.egr.msu.edu/

No issues with xpdp1, RHEL/CentOS 6.7 :
$ cd xpdp1/src/
$ make
.. and the new executable 'xpdp1' will replace/overwrite the stock 'xpdp1' executable.
$ ./xpdp1 : OK.

-

cgnick26 09-21-2015 12:51 PM

Thanks! this solved the xpdp1 issue I was haivng


All times are GMT -5. The time now is 08:09 AM.