rncarpio/py_tsg

error when executing make all

Opened this issue · 12 comments

rkhyd commented

i get the following error as attached, when i am trying to execute "make all". can you help me?
error.txt

Hi

  1. could you post the output of "make clean" followed by "make all"?
  2. is the file libtasmaniansparsegrid.so present in the directory where you are running make all?
rkhyd commented

hello rncarpio,
Thanks for answering my query.

  1. please find the attached output of make clean and make all
    http://prntscr.com/he5sxh
    http://prntscr.com/he5t3s
  2. yes the file libtasmaniansparsegrid.so is present when "make all" command is issued.

could you post the output of "g++ -v -L. -ltasmaniansparsegrid build/example.obj -o build/example"? thanks.

rkhyd commented

Hi
The output of the command "g++ -v -L. -ltasmaniansparsegrid build/example.obj -o build/example" is attached.
build-example.txt

OK, it seems the problem is "-L." is not recognized properly. Could you try
"g++ -v -L/home/ravi/rncarpio-py_tsg-ccf723e -ltasmaniansparsegrid build/example.obj -o build/example"?

rkhyd commented

hi
looks like its the same error as before...
out put attached.
build-example.txt

Please try moving the -L, -l to the end:
"g++ -v build/example.obj -o build/example -L/home/ravi/rncarpio-py_tsg-ccf723e -ltasmaniansparsegrid"

rkhyd commented

ok, i have tried the above command.. no errors seems to occur.. The output is attached.. what is to be done next to get the _py_tsg.so or _py_tsg.pyd
build-example.txt

Hi, please try this new Makefile. I've moved the .so files into the build directory and put the -L at the end of the link commands. Please try "make clean; make all" and let me know if there are any problems.

Makefile.txt

rkhyd commented

Hi,
i have used the makefile given by you, updated the paths accordingly. The error now is related to some unmatched function. kindly check the attached message. Thank you very much for your continued support.
make-all-error.txt

Please try replacing tsg_python.cpp with this file. Note that you need to install pyublas into your python distribution in order to run py_tsg.
tsg_python.txt

rkhyd commented

hi
After replacing the tsg_python.cpp file with the above, i was able to generate the _py_tsg.so and import it as well. Thank you for solving the issue.