Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find config.h #63

Open
ghost opened this issue Jan 8, 2015 · 3 comments
Open

can't find config.h #63

ghost opened this issue Jan 8, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 8, 2015

After calling

sudo scons install

I get

RuntimeError: can't find config.h in either source or build directories:
  File "/home/user/projects/cpp/geode/SConstruct", line 832:
    children(env)
  File "/home/user/projects/cpp/geode/SConstruct", line 824:
    child(env,dir)
  File "/home/user/projects/cpp/geode/SConstruct", line 809:
    env.SConscript('#'+os.path.join(path,'SConscript'),exports='env')
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/user/projects/cpp/geode/geode/SConscript", line 27:
    config_header(env,'config.h',extra=['#include <geode/python/config.h>','#include <geode/utility/config.h>'])

System: Ubutnu 14.04
and

sudo apt-get install python python-numpy scons libgmp-dev
sudo apt-get install python-scipy python-pytest libpng-dev libjpeg-dev libopenexr-dev # optional

were executed successfuly

@eddysystems
Copy link

Hmm, that stacktrace is strange because config_header is a function that we define in SConstruct. The actual file is generated by the line header, = env.Textfile(name,lines) in SConstruct.config_header. Could you add some print statements before and after that line to try to localize who is throwing the error?

@girving
Copy link
Contributor

girving commented Jan 8, 2015

Oops, I was signed in as the wrong user. The above comment is from me.

@fgreen
Copy link
Contributor

fgreen commented Jan 8, 2015

Did you build before trying to install? (i.g. scons -j 5). It looks like the install target might not be triggering a build. If so, manually running the build first could be a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants