das-labor / panopticon

A libre cross-platform disassembler.
https://panopticon.re
GNU General Public License v3.0
1.43k stars 78 forks source link

Ubuntu 16.04LTS build failure #153

Closed silverdr closed 8 years ago

silverdr commented 8 years ago

After installing rust/cargo and the dependencies from readme file, I get the following result when trying to build from a freshly cloned repository:

silverdr@ubuntu1604:~/sources/panopticon$ cargo build
failed to parse manifest at `/home/silverdr/sources/panopticon/Cargo.toml`

Caused by:
  could not parse input as TOML
Cargo.toml:34:9 expected a key but found an empty string
Cargo.toml:34:9-34:10 expected `.`, but found `'`

Are there still some undocumented dependencies that I need to install?

flanfly commented 8 years ago

What's the output of rustc --version?

silverdr commented 8 years ago
silverdr@ubuntu1604:~$ rustc --version
rustc 1.7.0

the default that installs on Ubuntu 16.04LTS.

flanfly commented 8 years ago

You need the current stable version of Rust (1.8.0) in order to compile Panopticon. You can get that on https://rust-lang.org/

silverdr commented 8 years ago

1.8.0 seems to be of 2016-04-16, IOW less than a month old and Panopticon already depends on it? If that's the case, it would be nice to have a line on this in the readme.md. Especially that Ubuntu 16.04 is quite fresh and (myself not excluded) people often dislike patching fresh distros with "unofficial" sources.

flanfly commented 8 years ago

Ok, the dependency on 1.8.0 isn't hard to relax. I think it's worth it if we get Ubuntu 16.04 support.

silverdr commented 8 years ago

That would surely be great, thanks.

flanfly commented 8 years ago

Reopen if it still does not build.

silverdr commented 8 years ago

Just to confirm - after pulling the updated Cargo.toml it emits some warnings about:

plus lots of warnings, mostly about unused imports and unused variables in panopticon itself. Some looking more dangerously:

warning: unused result which must be used,

but theoretically builds into target/debug/qtpanopticon.

When trying to run - it says:

silverdr@ubuntu1604:~/sources/panopticon$ target/debug/qtpanopticon 
OpenGL Warning: glXCreatePbuffer not implemented by Chromium
appmenu-qt: handleReparent 138 The given QWindow has no QMenuBar assigned

and I don't seem to get anything beyond a big window with logo in the middle.