I'm trying to compile a code named OpenSN. In a step:
mpicc build/temp.linux-x86_64-3.10/opensn/swig/opensn_wrap.o build/temp.linux-x86_64-3.10/src/cmesh3d.o build/temp.linux-x86_64-3.10/src/cmeshformpi.o build/temp.linux-x86_64-3.10/src/cmeshtort.o build/temp.linux-x86_64-3.10/src/fido/blocker.o build/temp.linux-x86_64-3.10/src/fido/parser.o build/temp.linux-x86_64-3.10/src/fido/str2field.o build/temp.linux-x86_64-3.10/src/fluxlc.o build/temp.linux-x86_64-3.10/src/fluxndl6n.o build/temp.linux-x86_64-3.10/src/fluxndl6s.o build/temp.linux-x86_64-3.10/src/fluxndl6us.o build/temp.linux-x86_64-3.10/src/fluxwgt6.o build/temp.linux-x86_64-3.10/src/fluxwgt8.o build/temp.linux-x86_64-3.10/src/gip.o build/temp.linux-x86_64-3.10/src/inraccel.o build/temp.linux-x86_64-3.10/src/mesh3d.o build/temp.linux-x86_64-3.10/src/meshtort.o build/temp.linux-x86_64-3.10/src/msg_stuff.o build/temp.linux-x86_64-3.10/src/otrmonitor.o build/temp.linux-x86_64-3.10/src/sorsolver_dmdaksp.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/common.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/exsource.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/general.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/mpictrl.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/ntflx.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/parameter.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/primary.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/secondary.o build/temp.linux-x86_64-3.10/src/symmetric_quadrature.o -L/home/zxdi/.local/lib/python3.10/site-packages -L/home/zxdi/Downloads/petsc-main/lib -lstdc++ -lgomp -ldl -lpthread -lm -lopenmoc -lpetsc -o build/lib/_opensn.cpython-310-x86_64-linux-gnu.so -shared -Wl,-soname,_opensn.cpython-310-x86_64-linux-gnu.so
I got an error:
/usr/bin/ld: cannot find -lopenmoc: No such file or directory collect2: error: ld returned 1 exit status
It seems that the OpenMOC files in site-packages were not recognized as a linkable library while the -lpetsc works fine. I have tried to set the lib path to mypath/OpenMOC-develop/ and to mypath/OpenMOC-develop/build/lib but it did not work.
I installed OpenMOC with python3 setup.py install --user twice, and the codes are the latest of the branch OpenMOC-develop.
Where did I do wrong? Does OpenMOC support -lopenmoc?
Thanks!
I'm trying to compile a code named OpenSN. In a step:
mpicc build/temp.linux-x86_64-3.10/opensn/swig/opensn_wrap.o build/temp.linux-x86_64-3.10/src/cmesh3d.o build/temp.linux-x86_64-3.10/src/cmeshformpi.o build/temp.linux-x86_64-3.10/src/cmeshtort.o build/temp.linux-x86_64-3.10/src/fido/blocker.o build/temp.linux-x86_64-3.10/src/fido/parser.o build/temp.linux-x86_64-3.10/src/fido/str2field.o build/temp.linux-x86_64-3.10/src/fluxlc.o build/temp.linux-x86_64-3.10/src/fluxndl6n.o build/temp.linux-x86_64-3.10/src/fluxndl6s.o build/temp.linux-x86_64-3.10/src/fluxndl6us.o build/temp.linux-x86_64-3.10/src/fluxwgt6.o build/temp.linux-x86_64-3.10/src/fluxwgt8.o build/temp.linux-x86_64-3.10/src/gip.o build/temp.linux-x86_64-3.10/src/inraccel.o build/temp.linux-x86_64-3.10/src/mesh3d.o build/temp.linux-x86_64-3.10/src/meshtort.o build/temp.linux-x86_64-3.10/src/msg_stuff.o build/temp.linux-x86_64-3.10/src/otrmonitor.o build/temp.linux-x86_64-3.10/src/sorsolver_dmdaksp.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/common.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/exsource.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/general.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/mpictrl.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/ntflx.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/parameter.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/primary.o build/temp.linux-x86_64-3.10/src/sourcefromTORT/secondary.o build/temp.linux-x86_64-3.10/src/symmetric_quadrature.o -L/home/zxdi/.local/lib/python3.10/site-packages -L/home/zxdi/Downloads/petsc-main/lib -lstdc++ -lgomp -ldl -lpthread -lm -lopenmoc -lpetsc -o build/lib/_opensn.cpython-310-x86_64-linux-gnu.so -shared -Wl,-soname,_opensn.cpython-310-x86_64-linux-gnu.so
I got an error:/usr/bin/ld: cannot find -lopenmoc: No such file or directory collect2: error: ld returned 1 exit status
It seems that the OpenMOC files in site-packages were not recognized as a linkable library while the -lpetsc works fine. I have tried to set the lib path to mypath/OpenMOC-develop/ and to mypath/OpenMOC-develop/build/lib but it did not work. I installed OpenMOC withpython3 setup.py install --user
twice, and the codes are the latest of the branch OpenMOC-develop. Where did I do wrong? Does OpenMOC support -lopenmoc? Thanks!