Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error in ply_c #138

Open
shobhitjdpsr opened this issue Jul 24, 2019 · 44 comments
Open

cmake error in ply_c #138

shobhitjdpsr opened this issue Jul 24, 2019 · 44 comments

Comments

@shobhitjdpsr
Copy link

booost
boost
boost2
cmake error

While running cmake . -DPYTHON_LIBRARY=$CONDAENV/lib/libpython3.6m.so -DPYTHON_INCLUDE_DIR=$CONDAENV/include/python3.6m -DBOOST_INCLUDEDIR=$CONDAENV/include -DEIGEN3_INCLUDE_DIR=$CONDAENV/include/eigen3

I am getting an error that boost is too old, despite of installing boost 1.66.

What all can I do to make this work?

@shobhitjdpsr
Copy link
Author

@loicland

@loicland
Copy link
Owner

loicland commented Jul 25, 2019

Hi,

what did your set CONDAENV to?

and what is the results of

conda list

in a terminal?

@shobhitjdpsr
Copy link
Author

conda

temp

@loicland Please have a llook

@shobhitjdpsr
Copy link
Author

@Pandinosaurus @loicland

@loicland
Copy link
Owner

loicland commented Jul 25, 2019

CONDAENV should be more like something like
/home/your_session/anaconda3

Find it by typing
locate anaconda

@shobhitjdpsr
Copy link
Author

@loicland
Never mind I got it working., by removing cmakecache.txt .

But next error is in make
done

@shobhitjdpsr
Copy link
Author

In ply_c while doing MAKE, I am getting following error:

[ 50%] Building CXX object CMakeFiles/ply_c.dir/ply_c.cpp.o
/home/spartan/Desktop/superpoint_graph/partition/ply_c/ply_c.cpp:4:23: fatal error: Eigen/Dense: No such file or directory
#include <Eigen/Dense>
^
compilation terminated.
CMakeFiles/ply_c.dir/build.make:62: recipe for target 'CMakeFiles/ply_c.dir/ply_c.cpp.o' failed
make[2]: *** [CMakeFiles/ply_c.dir/ply_c.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ply_c.dir/all' failed
make[1]: *** [CMakeFiles/ply_c.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
(my_env) spartan@spartan-

@loicland
Copy link
Owner

Have you tried the latest commit? Otherwise reinstall Eigen.

@shobhitjdpsr
Copy link
Author

I tried the commit which was there 24 hours ago approx

@loicland

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 25, 2019

@loicland
Nevermind, This was fixed by editing partition/ply_c/ply_c.cpp and changing TO:-
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Eigenvalues

**BUT, NOW I AM GETTING FOLLOWING ISSUE:-

fatal error: pyconfig.h: No such file or directory**

pyconfig

@loicland
Copy link
Owner

Check whether your anaconda is using python3.6m, and if not adapt the cmake options (and dont forget to destroy all the cmakefiles).

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 25, 2019

Thanks, it worked, I changed to 3.7m in cmake, because thats what I had in my cmake

Now @loicland

cmake .. -DPYTHON_LIBRARY=$CONDAENV/lib/libpython3.7m.so -DPYTHON_INCLUDE_DIR=$CONDAENV/include/python3.7m -DBOOST_INCLUDEDIR=$CONDAENV/include -DEIGEN3_INCLUDE_DIR=$CONDAENV/include/eigen3

I am getting error
hu

@shobhitjdpsr
Copy link
Author

@loicland

Now I will summarize the whole problem that I am facing currently:-

While compiling libcp, and running cmake (cmake .. -DPYTHON_LIBRARY=$/home/spartan/anaconda3/lib/libpython3.7m.so -DPYTHON_INCLUDE_DIR=$/home/spartan/anaconda3/include/python3.7m -DBOOST_INCLUDEDIR=$/usr/local/lib -DEIGEN3_INCLUDE_DIR=$/home/spartan/anaconda3/include/eigen3
)
Note:- I have python3.7m in my anaconda3/lib and it worked for ply_c

Now , I am getting the following errors:-
errrrrrr

ALso while running locate libboost python, I am getting following errors:-

#1
#2
#22

@loicland
Copy link
Owner

you should remove the $ before your anaconda path.

@shobhitjdpsr
Copy link
Author

see

@loicland
Even after doing the same, I am still getting errors

@shobhitjdpsr
Copy link
Author

checkk

@loicland
Copy link
Owner

loicland commented Jul 26, 2019

Have you tried the symbolic link fix I added today to the readme?

Otherwise replace in cut pursuit /sec/cmakeist
numpy${PYTHONVERSION}
By
numpy

@shobhitjdpsr
Copy link
Author

hiiii

Do you mean just the line highlighted to be changed?

@shobhitjdpsr
Copy link
Author

@loicland

@shobhitjdpsr
Copy link
Author

1
abcd

@loicland
I did try the new command in readme for symbolic link, but still I am getting and error. Should I change the cmakeLists also?

@loicland
Copy link
Owner

loicland commented Jul 26, 2019

Anywhere bumpy appears. But try the symbolic link first.

And dont forget to remove makefiles etc... after the changes.

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 26, 2019

error

@loicland
Finally, cmake runs with a warning.
[
CMake Warning:
Manually-specified variables were not used by the project:

EIGEN3_INCLUDE_DIR

-- Build files have been written to: /home/spartan/Desktop/superpoint_graph/partition/cut-pursuit/build
]

But now make has some issues:-

include <pyconfig.h>

                   ^compilation terminated.

src/CMakeFiles/cp.dir/build.make:62: recipe for target 'src/CMakeFiles/cp.dir/cutpursuit.cpp.o' failed
make[2]: *** [src/CMakeFiles/cp.dir/cutpursuit.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/cp.dir/all' failed
make[1]: *** [src/CMakeFiles/cp.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@loicland
Copy link
Owner

This thread adapted to your python version.

@shobhitjdpsr
Copy link
Author

@loicland

No again a warning has popped up.
Please have a look

seeeeee

@shobhitjdpsr
Copy link
Author

@loicland

I tried various other things to export path, but issue persists....

Please have a look

error2
error23

@shobhitjdpsr
Copy link
Author

take

@loicland : Have a look at this too

@shobhitjdpsr
Copy link
Author

@loicland

While doing cmake, I was getting following cmake-warning.

Submitting for your reference:-
cmake warning

@loicland
Copy link
Owner

Isn't your python version 3.7m? Try the export with this, and dont forget to erase the cmakefiles before.

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 26, 2019

@loicland : What do you think might be causing the same and what can I do to rectify it

For your reference:-
ALso I already have libbpython3.7m.so by default in this location:-
tttttttttttttttttttttttttt

@shobhitjdpsr
Copy link
Author

3
2
1

@shobhitjdpsr
Copy link
Author

@loicland
I am using 3.7m in export, but the error persists

@loicland
Copy link
Owner

Your path has an upper case to the first letter of Anaconda which is not the case in your drive.

@loicland
Copy link
Owner

loicland commented Jul 26, 2019

Yep, it's done. Choose a dataset, open its .md file and follow the instructions.

Or run the test.py function of cut pursuit.

@shobhitjdpsr
Copy link
Author

tttt

@loicland :
In order to run the highlighted pretrained model, do we necessarily need CUDA?

I tried putting pretrained models in results/s3dis/pretrained/best after extracting like this:_

ttt

Then, I put test.sh in Desktop/superpoint_graph like this:-
hjg

Then after running this on terminal I get this:-
yyy3
tt

@loicland
Am I doing it the right way? What to do with the errors?
Also do we necessarily need CUDA installed? aSking so as its not mentioned in requirements

@shobhitjdpsr
Copy link
Author

@loicland

On running ./test.sh ,

I get something like this:-

original error: libcublas.so.9.0: cannot open shared object file: No such file or directory

Some more screenshot for your reference:-
1
tt

@loicland
Copy link
Owner

you can use the option --cuda 0

Also it seems that cupy is not found. Try to install it through conda:

 conda install -c anaconda cupy 

@nicolas-chaulet
Copy link
Contributor

You won't be able to install cupy if you don't have the nvidia drivers or no GPU, which is fine. With the flag above it should all work.

@shobhitjdpsr
Copy link
Author

@loicland @nicolas-chaulet
I tried installing using
conda install -c anaconda cupy
install

Then I updated test.sh, located here:-

abc

I tried testing with test.sh containing all this:-
0`
00

Bit I get same error:-
abcs
mnb

On doing pip freeze I get this:-
pipppp

I tried removing the one I did try running through through conda's cupy but I get error when running test.sh:-
66
hjvbbvb

Also, when I tried running through only cupy-cuda90==6.2.0 installed, I was still getting errors.(same has been attached in my previous yesterday's message)

@loicland @nicolas-chaulet
What would you recommend now?

@loicland
Copy link
Owner

what are the output of:
nvcc --version
and
conda list
in a terminal (in text form please, more readable than screenshot of terminals)

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 30, 2019

@loicland

On running nvcc --version, I get:-
The program 'nvcc' is currently not installed. You can install it by typing:
sudo apt install nvidia-cuda-toolkit

Also, conda list gives the following:-

WARNING: The conda.compat module is deprecated and will be removed in a future release.

packages in environment at /home/spartan/anaconda3/envs/my_env:

Name Version Build Channel

_libgcc_mutex 0.1 main
blas 1.0 mkl anaconda
boost 1.67.0 py37_4 anaconda
bzip2 1.0.8 h7b6447c_0 anaconda
ca-certificates 2019.5.15 0 anaconda
certifi 2019.6.16 py37_0 anaconda
chardet 3.0.4 pypi_0 pypi
cudatoolkit 10.1.168 0 anaconda
cudnn 7.6.0 cuda10.1_0 anaconda
cupy 6.0.0 py37hc0ce245_0 anaconda
eigen 3.3.7 hfd86e86_0
eigen3 3.3.7 0 omnia
fastrlock 0.4 pypi_0 pypi
future 0.17.1 pypi_0 pypi
h5py 2.9.0 pypi_0 pypi
icu 58.2 h211956c_0 anaconda
idna 2.8 pypi_0 pypi
intel-openmp 2019.4 243 anaconda
joblib 0.13.2 pypi_0 pypi
libboost 1.67.0 h46d08c1_4 anaconda
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libgcc-ng 9.1.0 hdf63c60_0
libgfortran-ng 7.3.0 hdf63c60_0 anaconda
libiconv 1.15 h63c8f33_5
libstdcxx-ng 9.1.0 hdf63c60_0
mkl 2019.4 243 anaconda
mkl_fft 1.0.12 py37ha843d7b_0 anaconda
mkl_random 1.0.2 py37hd81dba3_0 anaconda
nccl 1.3.5 cuda10.0_0 anaconda
ncurses 6.1 he6710b0_1
numpy 1.16.4 pypi_0 pypi
numpy-base 1.16.4 py37hde5b4d6_0 anaconda
openssl 1.1.1 h7b6447c_0 anaconda
pillow 6.1.0 pypi_0 pypi
pip 19.1.1 py37_0
plyfile 0.7 pypi_0 pypi
py-boost 1.67.0 py37h04863e7_4 anaconda
pynvrtc 9.2 pypi_0 pypi
python 3.7.3 h0371630_0
python-igraph 0.7.1.post6 pypi_0 pypi
pyzmq 18.0.2 pypi_0 pypi
readline 7.0 h7b6447c_5
requests 2.22.0 pypi_0 pypi
scikit-learn 0.21.2 pypi_0 pypi
scipy 1.3.0 pypi_0 pypi
setuptools 41.0.1 py37_0
six 1.12.0 pypi_0 pypi
sklearn 0.0 pypi_0 pypi
sqlite 3.29.0 h7b6447c_0
tk 8.6.8 hbc83047_0
torch 1.1.0 pypi_0 pypi
torchfile 0.1.0 pypi_0 pypi
torchnet 0.0.4 pypi_0 pypi
torchvision 0.3.0 pypi_0 pypi
tornado 6.0.3 pypi_0 pypi
tqdm 4.32.2 pypi_0 pypi
transforms3d 0.3.1 pypi_0 pypi
urllib3 1.25.3 pypi_0 pypi
visdom 0.1.8.8 pypi_0 pypi
websocket-client 0.56.0 pypi_0 pypi
wheel 0.33.4 py37_0
xz 5.2.4 h14c3975_4
zlib 1.2.11 h7b6447c_3

@loicland
Copy link
Owner

loicland commented Jul 31, 2019

Hi,

pull a fresh commit, it seems like your cuda_kernels.py is outdated.

@nicolas-chaulet I see you added a pass when cupy fail to import, but doesn't it cause an error line 42 of cuda_kernels.py when the import fails?

I don't see pytroch in either your pip or conda install. In a terminal, run:

conda install -c pytorch pytorch 

@shobhitjdpsr
Copy link
Author

shobhitjdpsr commented Jul 31, 2019

@loicland @nicolas-chaulet

When trying to run test.sh containing:-
jjj

I get the following error:-
Traceback (most recent call last):
File "learning/main.py", line 444, in
main()
File "learning/main.py", line 159, in main
train_dataset, test_dataset, valid_dataset, scaler = create_dataset(args)
File "/home/spartan/Desktop/SJ/superpoint_graph/learning/s3dis_dataset.py", line 55, in get_datasets
trainlist, testlist, validlist, scaler = spg.scaler01(trainlist, testlist, validlist=validlist)
File "/home/spartan/Desktop/SJ/superpoint_graph/learning/spg.py", line 53, in scaler01
edge_feats = np.concatenate([ trainlist[i][3] for i in range(len(trainlist)) ], 0)
ValueError: need at least one array to concatenate
tyty

Also, I tried searching in s3dis.py, it is searching .h5 files, but there are no .h5 files in stanford dataset, see:-
g

@loicland
Copy link
Owner

loicland commented Aug 1, 2019

Your S3DIS_DIR folder should have a /data folder, a /featuresfolder, a superpoint_graphs folder and a /parsed folder. All of these contains folder by area, and inside a .h5 file per room. Follow the instructions (partition and parsing) and you should get there.

@whuhxb
Copy link

whuhxb commented Feb 13, 2023

In ply_c while doing MAKE, I am getting following error:

[ 50%] Building CXX object CMakeFiles/ply_c.dir/ply_c.cpp.o /home/spartan/Desktop/superpoint_graph/partition/ply_c/ply_c.cpp:4:23: fatal error: Eigen/Dense: No such file or directory #include <Eigen/Dense> ^ compilation terminated. CMakeFiles/ply_c.dir/build.make:62: recipe for target 'CMakeFiles/ply_c.dir/ply_c.cpp.o' failed make[2]: *** [CMakeFiles/ply_c.dir/ply_c.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ply_c.dir/all' failed make[1]: *** [CMakeFiles/ply_c.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 (my_env) spartan@spartan-

How to solve this compilation error? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants