Skip to content

Cannot build with python nor MESON #988

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

Closed
rafak360 opened this issue Jul 17, 2019 · 2 comments
Closed

Cannot build with python nor MESON #988

rafak360 opened this issue Jul 17, 2019 · 2 comments

Comments

@rafak360
Copy link

rafak360 commented Jul 17, 2019

Windows 7 64-bit
Tested on Python 2.6 32-bit and 64-bit same error output

C:\jsoncpp-master>python amalgamate.py
Amalgamating header...
Traceback (most recent call last):
  File "amalgamate.py", line 155, in <module>
    main()
  File "amalgamate.py", line 147, in main
    header_include_path=options.header_include_path)
  File "amalgamate.py", line 69, in amalgamate_source
    header.add_file("include/json/version.h")
  File "amalgamate.py", line 30, in add_file
    f = open(os.path.join(self.top_dir, relative_input_path), "rt")
IOError: [Errno 2] No such file or directory: 'C:\\jsoncpp-master\\include/json/
version.h'

I just followed these steps: Amalgamated source but it's not working for me, why?

EDIT:
I tried with MESON, but it didn't help:

Build started at 2019-07-17T18:38:44.657486
Main binary: c:\users\userexample\appdata\local\programs\python\python37\python.exe
Python system: Windows
The Meson build system
Version: 0.51.1
Source dir: C:\jsoncpp-master
Build dir: C:\jsoncpp-master\builddir
Build type: native build
Project name: jsoncpp
Project version: 1.9.0

meson.build:1:0: ERROR: Unknown compiler(s): ['icl', 'cl', 'c++', 'g++', 'clang++', 'clang-cl']
The follow exceptions were encountered:
Running "icl " gave "[WinError 2] The system cannot find the file specified"
Running "cl /?" gave "[WinError 2] The system cannot find the file specified"
Running "c++ --version" gave "[WinError 2] The system cannot find the file specified"
Running "g++ --version" gave "[WinError 2] The system cannot find the file specified"
Running "clang++ --version" gave "[WinError 2] The system cannot find the file specified"
Running "clang-cl /?" gave "[WinError 2] The system cannot find the file specified"
@rafak360 rafak360 changed the title Cannot build with python Cannot build with python nor MESON Jul 17, 2019
@baylesj
Copy link
Contributor

baylesj commented Jul 17, 2019

Looks like your meson isn't working because you don't have a compiler installed.

I have a fix for the amalgamate script, this has been an evolving issue recently. I will close this issue when that PR is checked in, thanks!

@rafak360
Copy link
Author

rafak360 commented Jul 17, 2019

Looks like your meson isn't working because you don't have a compiler installed.

I have a fix for the amalgamate script, this has been an evolving issue recently. I will close this issue when that PR is checked in, thanks!

Thank you, your fix worked for me, I built that by the amalgamate script, it should be merged in the master branch which is really a mess.

@baylesj baylesj closed this as completed Jul 22, 2019
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

2 participants