GithubHelp home page GithubHelp logo

undefined symbol: cs_di_schol about g2opy HOT 15 OPEN

uoip avatar uoip commented on July 28, 2024 4
undefined symbol: cs_di_schol

from g2opy.

Comments (15)

kochaika avatar kochaika commented on July 28, 2024 3

Hi!
For me worked:

  1. install libqglviewer-dev (or libqglviewer-dev-qt4 like @lvgeng noticed)
  2. install libsuitesparse-dev
  3. rebuild g2opy

Maybe it will be useful to someone.

from g2opy.

randomlylelo avatar randomlylelo commented on July 28, 2024 3

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.

ferreram avatar ferreram commented on July 28, 2024 2

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.

district10 avatar district10 commented on July 28, 2024 2

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.

CydKnocking avatar CydKnocking commented on July 28, 2024 1

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.

Strohhut1 avatar Strohhut1 commented on July 28, 2024 1

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 #48 or #16 (I don't now which is better #16 worked for me)
  5. install libqglviewer from source (http://libqglviewer.com/download.html) and libqglviewer-dev-qt5 + libsuitesparse-dev with apt-get
  6. follow build instructions

Let me know if it works for you too :)

from g2opy.

cyc790 avatar cyc790 commented on July 28, 2024

I encountered the same problem,have you solved it? @thomasfermi

from g2opy.

thomasfermi avatar thomasfermi commented on July 28, 2024

Hi @cyc790
No, sorry. I gave up.

from g2opy.

AmaurX avatar AmaurX commented on July 28, 2024

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.

lvgeng avatar lvgeng commented on July 28, 2024

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.

marctuscher avatar marctuscher commented on July 28, 2024

Hi,
installing http://libqglviewer.com/download.html from source worked for me.

from g2opy.

shaoxh avatar shaoxh commented on July 28, 2024

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.

cacadam89 avatar cacadam89 commented on July 28, 2024

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.

freesynapse avatar freesynapse commented on July 28, 2024

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.

iljastas avatar iljastas commented on July 28, 2024

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)

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.