Error occurred when compile to build objrender #48
Comments
Could you include full logs please? |
For some reason I can't use docker, so I install the dependencies step by step. When I install glm, the logs show that: It seems that no mistake when installing glm. So I complie the render file with INCLUDE_DIR. running : SYSTEM=conda.linux PYTHON_CONFIG=/home/zhoujingwen/anaconda3/envs/LG/bin/python3-config INCLUDE_DIR=-I/home/zhoujingwen/glm/build/SOME/INSTALL_DIR/include-I/home/zhoujingwen/glm/build/SOME/INSTALL_DIR make -j the problem is coming,the logs says: /usr/include/glm/gtc/matrix_transform.inl: In function ‘glm::detail::tmat4x4<T, (glm::precision)0u> glm::tweakedInfinitePerspective(T, T, T)’: pragma message("GLM: tweakedInfinitePerspective function taking degrees as a parameter is deprecated. #define GLM_FORCE_RADIANS before including GLMheaders to remove this message.") pragma message("GLM: tweakedInfinitePerspective function taking degrees as a parameter is deprecated. #define GLM_FORCE_RADIANS before including GLMheaders to remove this message.") plaese help me solve this problem, Thanks. |
Please include your system information, including OS distribution, gcc version. From the log you're not using the glm you installed. You're using glm at From the information you gave the command is wrong: |
Thanks for your reply, errors changed into that: Thanks! |
Have you followed the instructions and installed glfw3 as well? You've posted this:
Could you double-check you did not miss anything and this is what you saw in the terminal? You may be pasting things in a wrong way. It's better to paste logs inside codeblocks: https://help.github.com/articles/creating-and-highlighting-code-blocks/#fenced-code-blocks |
Hi,Thanks for your reply ~
The g++ --version only 4.8.5,maybe that's the problem? |
Could you answer my question above? |
The README said the code requires gcc>=4.9. https://github.com/facebookresearch/House3D/tree/master/renderer#build |
emmm... Sorry for my mistake.
The result comes to :
run ./debug-build.sh says:
|
I think you did not follow the EGL header part in the docs: https://github.com/facebookresearch/House3D/blob/master/renderer/DEPENDENCIES.md#ubuntu-1404-with-nvidia-gpu In general, compiling it on an old system like ubuntu 14.04 is hard, and it's easier to use nvidia-docker for it. |
I agreeee, so I just download the EGL files in browser and uploaded them to the server directory 'INSTALL_DIR/EGL',
I already switched the source link. But cannot fix. |
I think you've misunderstood the README.
This is saying that you need to add |
OK, I realized that I'm a little ugly to put up the question above.
I got:
Sure for that I have installed these dependencies:
I got:
for that libglvnd sometimes not necessary so I test the renderer
mention that tests is not in renderer, it is in House3D folder.
Then I got:
So it's the EGL's problem again, please check my path and help me out,Thanks a lot. ./debug-build.sh like that:
|
And it not help after I set:
|
Please run the debug script and include the outputs. For compile errors, please include full logs. |
run ./debug-build.sh:
for libglvnd installation,the logs like
render compile logs is all right, but testing goes wrong |
the compile logs:
test logs:
paths:
|
The two library paths you set are wrong and please unset them. You'll need to make sure that nvidia drivers are installed on your system and find where it is. Nvidia driver has a libEGL library which you need to use. |
nvidia driver
and the directory of libegl.so actually is where I found in the system |
If your driver is installed correctly, there should be multiple libegl.so, /usr/lib/x86_64-linux-gnu/mesa-egl/libEGL.so is the wrong one. The correct one is usually in /usr/lib/nvidiaxxx |
In the '/usr/lib/x86_64-linux-gnu/mesa-egl/' directory,
but I couldn't find other nvidia driver folder |
To mention that, I just can find libEGL.so in x86..folder
And I found the Nvidia driver folder, no libEGL.so file.... |
Problem has solved, I can import the House3D components already. That beacuse I can't display it on server. |
Display is not needed to use House3D to render. When you have display, House3D will not use EGL, and therefore will not trigger the problem you have. To use EGL you'll need to know where is the nvidia EGL library, and this will depend on how the driver is installed. If you install it with apt-get, you may need to remove and reinstall the package |
You mean I need to reinstall the nvidia-driver not with apt-get but download the corresponding nvidia-dirver packages according to the graphics card and install? |
You can install the drivers in either way but they may put the EGL libraries in different places. The package Could you do the following:
Again I strongly suggest you to use docker since it's just one command to solve all the issues. Your previous docker error suggest a problem with the 163 mirror you're using and can probably be easily solved by retry or by switching the mirror. |
Hi, follow your advice,I installed docker and compiled the renderer correctly,Still got the EGL error.
I got.
Hope receive your suggestion. |
What is your GPU model and are you using |
Yes,I used the nvidia-docker,and my GPU model is GeForce GTX 1080. |
Could you run the code at NVIDIA/nvidia-docker#328 (comment) inside the docker and put its outputs here? The code can be built and run by |
The result in docker shows that:
|
Then you can report this issue to https://github.com/NVIDIA/nvidia-docker/ because EGL for some reason does not work inside your docker. Make sure to include the Dockerfile, the above code and its outputs. |
Maybe sound silly but please make sure |
I just update the result, and the 'nvidia-smi' does work in nvidia docker. |
The reason why EGL does not work inside your docker may be the same though (i.e. an incomplete installation of nvidia drivers on your host machine). How did you install the nvidia driver? If it is by
|
|
Is there any update on the information I asked for above? |
emmm...So sad... |
Could you provide the information I asked for? |
1.The Nvidia driver was installed by .run file
returns nothing.
returns that:
|
As mentioned in the docs there are backends other than EGL. |
OK, I got it,maybe I need to reinstall the nvidia driver... |
Finally, I complement the opengl part by overlay Nvidia driver on server,and now, I can use it correctly! |
when I runing SYSTEM=conda.linux PYTHON_CONFIG=/home/zjw/anaconda3/envs/LG/bin/python-config make -j
It comes that:
/usr/include/glm/detail/type_vec3.inl:86:33: error: invalid static_cast from type ‘const glm::detail::tvec3<float, (glm::precision)0u>’ to type ‘float’
/usr/include/glm/detail/type_vec3.inl:86:33: error: invalid static_cast from type ‘const glm::detail::tvec3<float, (glm::precision)0u>’ to type ‘float’
make: *** [build/objview-suncg.o] Error 1
make: *** [build/suncg/render.o] Error 1
The text was updated successfully, but these errors were encountered: