Git Product home page Git Product logo

Comments (6)

maxixb avatar maxixb commented on July 17, 2024 1

I have the exact same issue...

from dex-net.

Maultaschenboii avatar Maultaschenboii commented on July 17, 2024 1

I have exactly the same problem.

from dex-net.

jeffmahler avatar jeffmahler commented on July 17, 2024 1

Great, we are starting to make some progress. Looks like you are missing some necessary GL libraries.

This link suggests the following command:

sudo apt-get install libxmu-dev libxi-dev

@maxixb Can you run this command and try to compile again? Let me know if you have any errors.

from dex-net.

jeffmahler avatar jeffmahler commented on July 17, 2024

I suspect the meshrender binary didn't install properly. Let's see if you can find the binary

Open a Python terminal and find the location of meshpy

python
>>> import meshpy
>>> print meshpy.__file__

Then look for the file meshrender.so in the directory that is printed from the above statements.

If you do not find it, then your build failed. Change directories to /path/to/meshpy/clone and run the commands in this file from the command line. Paste any errors here.

from dex-net.

maxixb avatar maxixb commented on July 17, 2024

At first thank you for fast reply.
You are right, the problem ist meshrender.so file, it dosn´t exist.
I tried to run the comands like you sad, but i get instant an error if i run cmake ...

Output in the command line:
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.7")
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so
-- Found GLUT: /usr/lib/i386-linux-gnu/libglut.so
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- python
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLUT_Xi_LIBRARY (ADVANCED)
linked by target "meshrender" in directory /dex-net/deps/meshpy/meshpy
GLUT_Xmu_LIBRARY (ADVANCED)
linked by target "meshrender" in directory /dex-net/deps/meshpy/meshpy

-- Configuring incomplete, errors occurred!
See also "/dex-net/deps/meshpy/build/CMakeFiles/CMakeOutput.log".

from dex-net.

maxixb avatar maxixb commented on July 17, 2024

Great, it worked! Thank you!
But now I have trouble with the comand make...

I get this output...

/usr/bin/cmake -H/dex-net/deps/meshpy -B/dex-net/deps/meshpy/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /dex-net/deps/meshpy/build/CMakeFiles /dex-net/deps/meshpy/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Verzeichnis »/dex-net/deps/meshpy/build« wird betreten
make -f meshpy/CMakeFiles/meshrender.dir/build.make meshpy/CMakeFiles/meshrender.dir/depend
make[2]: Verzeichnis »/dex-net/deps/meshpy/build« wird betreten
cd /dex-net/deps/meshpy/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /dex-net/deps/meshpy /dex-net/deps/meshpy/meshpy /dex-net/deps/meshpy/build /dex-net/deps/meshpy/build/meshpy /dex-net/deps/meshpy/build/meshpy/CMakeFiles/meshrender.dir/DependInfo.cmake --color=
make[2]: Verzeichnis »/dex-net/deps/meshpy/build« wird verlassen
make -f meshpy/CMakeFiles/meshrender.dir/build.make meshpy/CMakeFiles/meshrender.dir/build
make[2]: Verzeichnis »/dex-net/deps/meshpy/build« wird betreten
/usr/bin/cmake -E cmake_progress_report /dex-net/deps/meshpy/build/CMakeFiles 1
[100%] Building CXX object meshpy/CMakeFiles/meshrender.dir/meshrender.cpp.o
cd /dex-net/deps/meshpy/build/meshpy && /usr/bin/c++ -Dmeshrender_EXPORTS -fPIC -I/usr/include/python2.7 -I/usr/include/i386-linux-gnu/python2.7 -o CMakeFiles/meshrender.dir/meshrender.cpp.o -c /dex-net/deps/meshpy/meshpy/meshrender.cpp
/dex-net/deps/meshpy/meshpy/meshrender.cpp: In function ‘boost::python::tuple render_mesh(boost::python::list, unsigned int, unsigned int, boost::python::numeric::array, boost::python::numeric::array, boost::python::numeric::array, boost::python::numeric::array, boost::python::numeric::array, bool, bool)’:
/dex-net/deps/meshpy/meshpy/meshrender.cpp:71:100: error: invalid conversion from ‘long int*’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool verts_readbuf_success = !PyObject_AsReadBuffer(verts.ptr(), &verts_raw_buffer, &verts_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp:72:96: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool tris_readbuf_success = !PyObject_AsReadBuffer(tris.ptr(), &tris_raw_buffer, &tris_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp:73:100: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool norms_readbuf_success = !PyObject_AsReadBuffer(norms.ptr(), &norms_raw_buffer, &norms_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp:74:116: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool mat_props_readbuf_success = !PyObject_AsReadBuffer(mat_props.ptr(), &mat_props_raw_buffer, &mat_props_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp:75:124: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool light_props_readbuf_success = !PyObject_AsReadBuffer(light_props.ptr(), &light_props_raw_buffer, &light_props_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp:218:68: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
&proj_buflen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject obj,
^
/dex-net/deps/meshpy/meshpy/meshrender.cpp: In function ‘boost::python::list mul_array(boost::python::numeric::array, int)’:
/dex-net/deps/meshpy/meshpy/meshrender.cpp:365:71: error: invalid conversion from ‘long int
’ to ‘Py_ssize_t* {aka int*}’ [-fpermissive]
bool isReadBuffer = !PyObject_AsReadBuffer(a.ptr(), &buffer, &bufLen);
^
In file included from /usr/include/python2.7/Python.h:133:0,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /dex-net/deps/meshpy/meshpy/meshrender.cpp:1:
/usr/include/python2.7/abstract.h:501:22: error: initializing argument 3 of ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’ [-fpermissive]
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
^
make[2]: *** [meshpy/CMakeFiles/meshrender.dir/meshrender.cpp.o] Fehler 1
make[2]: Verzeichnis »/dex-net/deps/meshpy/build« wird verlassen
make[1]: *** [meshpy/CMakeFiles/meshrender.dir/all] Fehler 2
make[1]: Verzeichnis »/dex-net/deps/meshpy/build« wird verlassen
make: *** [all] Fehler 2

from dex-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.