Giter Club home page Giter Club logo

Comments (6)

patricxu avatar patricxu commented on May 18, 2024

configure glags as shared library which is not the default option!

from graph-learn.

CNLHC avatar CNLHC commented on May 18, 2024

configure glags as shared library which is not the default option!

But it seems that the default configuration do treat gflags as shared library. Am i missing something ?🤔

I will try to reproduce this problem in a brand new environment later.

from graph-learn.

patricxu avatar patricxu commented on May 18, 2024

@CNLHC see my notes
The output of the default config is .a, but we need .so.

from graph-learn.

CNLHC avatar CNLHC commented on May 18, 2024

@CNLHC see my notes
The output of the default config is .a, but we need .so.

Obviously. In fact, I have already noticed that and done a similar job in a build script here

But i do not think this is the key point of the problem. What I concern is that do we need to compile gflags manually or not?

After testing in a brand new environment and reading your notes, i can pretty sure that the answer is yes: we do need to build gflags manually.

I will try to submit a PR to automate this process.

Thanks for your communication!

from graph-learn.

jackonan avatar jackonan commented on May 18, 2024

@CNLHC Great thanks for your PR. Would you mind show your building steps and commands that lead to the errors exactly? I did not reproduce the problem in my environment.

from graph-learn.

CNLHC avatar CNLHC commented on May 18, 2024

The reproducing steps

export GL_DIR=<Graph-Learn Directory>
cd $GL_DIR
git checkout  1d024e7
make cleanall
git reset --hard
git clean -dif
make
make python
source env.sh
python -m pip install -I ./dist/graphlearn-0.1-cp27-cp27mu-linux_x86_64.whl
cd examples/tf/gcn
python train_supervised.py

then , got error

Traceback (most recent call last):
  File "train_supervised.py", line 22, in <module>
    import graphlearn as gl
  File "/home/cn/research/graph/venv/lib/python2.7/site-packages/graphlearn/__init__.py", line 16, in <module>
    from graphlearn import pywrap_graphlearn as pywrap
ImportError: /home/cn/research/graph/graph-learn/built/lib/libgraphlearn_shared.so: undefined symbol: _ZN6google14FlagRegistererC1IiEEPKcS3_S3_PT_S5_

os

NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

and kernel-version

4.15.0-88-generic

from graph-learn.

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.