cryptobox-c icon indicating copy to clipboard operation
cryptobox-c copied to clipboard

warning: crate-type "cdylib" was not one of lib|rlib|dylib|staticlib

Open zhumeng-robotics opened this issue 7 years ago • 2 comments

Hi, when I compile cryptobox-c with make command, I run into such problem:

warning: crate-type "cdylib" was not one of lib|rlib|dylib|staticlib
failed to parse lock file at: /mnt/Patriot/Others/cryptobox-c-develop/Cargo.lock

To learn more, run the command again with --verbose.

and my rustc and cargo version is:

[sl3@localhost cryptobox-c-develop]$ rustc --version
rustc 1.6.0 (c30b771ad 2016-01-19)
[sl3@localhost cryptobox-c-develop]$ cargo --version
cargo 0.7.0-nightly (1af03be 2015-12-08)

I search the google but find no results, do you know why? I am compiling wire-server, which may need cryptobox-c I think... but stuck here, very sad...

I add --verbose after cargo build the output is

[sl3@terry-fed038900 cryptobox-c-develop]# make
cargo build --verbose
warning: crate-type "cdylib" was not one of lib|rlib|dylib|staticlib
failed to parse lock file at: /mnt/Patriot/Others/cryptobox-c-develop/Cargo.lock

Caused by:
  expected a section for the key `root`
make: *** [compile] Error 101

zhumeng-robotics avatar Mar 04 '18 05:03 zhumeng-robotics

Hi, please upgrade your versions of rustc and cargo, your versions are very old (from 2015/2016).

The following versions are known to work, more recent versions will probably also work:

rustc 1.23.0 (766bd11c8 2018-01-01)
cargo 0.24.0 (45043115c 2017-12-05)

jschaul avatar Mar 05 '18 10:03 jschaul

I have another problem when I run make,

Configuring cryptobox-haskell-0.1.1... Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: Missing dependency on a foreign library: * Missing C library: cryptobox This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. make: *** [install] Error 1 as a matter of fact, I did download the cryptobox-c and use make & make dist to generate a deb file and install it in my linux OS, but this error didn't gone, should I put the generated libcryptobox.so in a proper path ? where should I put? anyone can help on this?

zhumeng-robotics avatar Mar 09 '18 01:03 zhumeng-robotics