Comments (15)
Hi!
For me worked:
- install libqglviewer-dev (or libqglviewer-dev-qt4 like @lvgeng noticed)
- install libsuitesparse-dev
- rebuild g2opy
Maybe it will be useful to someone.
from g2opy.
I had this same problem, solved by deleting g2opy folder, re-cloning it, but then do the change on #48 before building it. Afterwards, it just worked.
from g2opy.
Hi @thomasfermi and @cyc790,
I had the same issue and I solved it by installing libqglviewer-dev.
Hope it can work for you too.
Cheers!
from g2opy.
Hi @thomasfermi and @cyc790,
I had the same issue and I solved it by installing libqglviewer-dev.Hope it can work for you too.
Cheers!
reinstalled my libqglviewer-dev and it works now, thanks a lot
from g2opy.
Hi!
I encountered the problem of Segmentation fault when I directly import g2o at the very beginning of python 3.5.2:
>>> import g2o
Segmentation fault (core dumped)
But when I import g2o after importing a module that doesn't exist, undefined symbol error occurs:
>>> import ggg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'ggg'
>>> import g2o
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python3/dist-packages/g2o.cpython-35m-x86_64-linux-gnu.so: undefined symbol: cs_di_schol
I've tried to install libqglviewer-dev (or libqglviewer-dev-qt4) and libsuitesparse-dev and rebuild g2opy mentioned by @pro100kot but nothing worked.
I don't know whether these two problems are the same. Either do I know how to fix them...
from g2opy.
My solution was the same as from @randomlylelo:
System: Ubuntu 20.04, Eigen3, python3.8
- remove g2o folder
- remove
g2o.cpython-38-x86_64-linux-gnu.so
file from/usr/lib/python3/dist-packages
- clone g2o again
- change
g2opy/python/core/eigen_types.h
according to #48 or #16 (I don't now which is better #16 worked for me) - install
libqglviewer
from source (http://libqglviewer.com/download.html) andlibqglviewer-dev-qt5
+libsuitesparse-dev
with apt-get - follow build instructions
Let me know if it works for you too :)
from g2opy.
I encountered the same problem,have you solved it? @thomasfermi
from g2opy.
Hi @cyc790
No, sorry. I gave up.
from g2opy.
Hi!
I tried to install everything with anaconda (and python3.7). The install works as well, but I get the same problem :
ImportError: /mypath/python3.7/site-packages/g2o.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cs_di_schol
Notice that mypath
here is actually "HOME/anaconda3/envs/py37/lib/".
I tried reinstalling libqglviewer-dev but it didn't change anything. It might be because the .so file is in our custom path in anaconda and not in /usr/lib
Then I reconstructed everything outside of anaconda (with python3.5) and it works.
Any idea on how to make things work in anaconda?
from g2opy.
Hi @thomasfermi and @cyc790,
I had the same issue and I solved it by installing libqglviewer-dev.Hope it can work for you too.
Cheers!
I am not so sure if it is a recent change.
Currently, there are two versions of libqglviewer-dev.
libqglviewer-dev-qt4 and libqglviewer-dev-qt5
The key is libqglviewer-dev-qt4 need to be installed. Well... kind of hard to understand but it it works...
And I assume that qt4 or qt5 only plays a part in visualization, I guess it would not affect the performance of graph optimization.
Hope so...
from g2opy.
Hi,
installing http://libqglviewer.com/download.html from source worked for me.
from g2opy.
Hi,
installing http://libqglviewer.com/download.html from source worked for me.
Hi,
tried this, but still not work.
then I remove libqglviewer-dev-qt5 and install libqglviewer-dev-qt4, not work neither. @CydKnocking
I have a question.
I have qmake4 and qmake5 both in my environment. does it influence qglviewer thing?
#50 @marctuscher
from g2opy.
I am running into this same issue now, and the previously suggested fixes are not working. I am on Ubuntu 20.04.3 LTS, and when I try to install libqglviewer
, the only options are libqglviewer2-qt5
, libqglviewer-dev-qt5
, libqglviewer-doc
, and libqglviewer-headers
. I have tried them all and none of this fixes my issues. I also tried @marctuscher's link (http://libqglviewer.com/download.html) to install from source and that didnt fix it either.
If this is only related to the visualization part, is there an easy way to change things so that I can still import g2o and use the optimization functionality w/o errors?
If anyone has any other suggestions, I would love to hear them!
from g2opy.
Have the same problem. libqglviewer-dev
and libsuitsparse-dev
installed, build without errors. Import fails with /usr/lib/python3/dist-packages/g2o.cpython-38-x86_64-linux-gnu.so: undefined symbol: cs_di_schol
.
Tried reinstalling almost every dependency without any luck. Also tried using manually installed QGLViewer.
from g2opy.
My solution was the same as from @randomlylelo:
System: Ubuntu 20.04, Eigen3, python3.8
1. remove g2o folder 2. remove `g2o.cpython-38-x86_64-linux-gnu.so` file from `/usr/lib/python3/dist-packages` 3. clone g2o again 4. change `g2opy/python/core/eigen_types.h` according to
Thanks. That also worked for my virtual envirorment (venv), could maybe also work in anaconda see above as a problem/issue
from g2opy.
Related Issues (20)
- Error in installing on ubuntu 20.04 HOT 5
- Provide range for a variable to be optimized
- Hiii HOT 1
- Usage
- in descriptor.py
- python3.7 + eigen3.3.1 + gcc 4.8.5 is ok
- make -j8 failed HOT 1
- I met this problem when run python setup.py install HOT 5
- Photometric BA HOT 1
- make[99%] error && void declareXXXX(py::module & m) {^} HOT 2
- ImportError: cannot import name 'AngleAxis' from 'g2o' HOT 1
- python setup.py install assertion error HOT 1
- make: *** [Makefile:130: all] Error 2 HOT 3
- Installation: libsuitesparse-dev is not Optional, but rather required
- window pycharm g2opy HOT 1
- How can I define a new g2o vertex or edge HOT 1
- PGO with unknown translation magnitude
- optimize.save("text.g2o") not working
- Hello, why canβt I get optimized results? Can you help me improve the code? HOT 1
- windows install error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2opy.