cryptobox-c
cryptobox-c copied to clipboard
warning: crate-type "cdylib" was not one of lib|rlib|dylib|staticlib
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
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)
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?