Hello everybody,
I have been a quiet reader for some time. I am new to Qt and C++ in general. I started a couple of days ago with this topic and have read and followed a lot of tutorials online. Many problems have been solved and many have come up. This forum came up a couple of times and has helped me a as well.
At the moment I try to compile a library for scrypt. It is plain C/C++. The project I am using is from http://www.tarsnap.com/scrypt.html
I have followed the steps in a different thread on here that explains in very high detail what to do.
Basically I opened the CMD and moved to the lib folder of the download. I then used
qmake -project
qmake -project
To copy to clipboard, switch view to plain text mode
To get a .pro file, I opened the .pro file and changed it to TEMPLATE = lib, resulting into this .pro file:
######################################################################
# Automatically generated by qmake (3.0) Mon Jun 10 01:11:01 2013
######################################################################
TEMPLATE = lib
TARGET = scrypt-1.1.6
INCLUDEPATH += .
# Input
HEADERS += scrypt_platform.h \
lib/crypto/crypto_aesctr.h \
lib/crypto/crypto_scrypt.h \
lib/crypto/sha256.h \
lib/scryptenc/scryptenc.h \
lib/scryptenc/scryptenc_cpuperf.h \
lib/util/memlimit.h \
lib/util/readpass.h \
lib/util/sysendian.h \
lib/util/warn.h
SOURCES += main.c \
lib/crypto/crypto_aesctr.c \
lib/crypto/crypto_scrypt-nosse.c \
lib/crypto/crypto_scrypt-ref.c \
lib/crypto/crypto_scrypt-sse.c \
lib/crypto/sha256.c \
lib/scryptenc/scryptenc.c \
lib/scryptenc/scryptenc_cpuperf.c \
lib/util/memlimit.c \
lib/util/readpass.c \
lib/util/warn.c
######################################################################
# Automatically generated by qmake (3.0) Mon Jun 10 01:11:01 2013
######################################################################
TEMPLATE = lib
TARGET = scrypt-1.1.6
INCLUDEPATH += .
# Input
HEADERS += scrypt_platform.h \
lib/crypto/crypto_aesctr.h \
lib/crypto/crypto_scrypt.h \
lib/crypto/sha256.h \
lib/scryptenc/scryptenc.h \
lib/scryptenc/scryptenc_cpuperf.h \
lib/util/memlimit.h \
lib/util/readpass.h \
lib/util/sysendian.h \
lib/util/warn.h
SOURCES += main.c \
lib/crypto/crypto_aesctr.c \
lib/crypto/crypto_scrypt-nosse.c \
lib/crypto/crypto_scrypt-ref.c \
lib/crypto/crypto_scrypt-sse.c \
lib/crypto/sha256.c \
lib/scryptenc/scryptenc.c \
lib/scryptenc/scryptenc_cpuperf.c \
lib/util/memlimit.c \
lib/util/readpass.c \
lib/util/warn.c
To copy to clipboard, switch view to plain text mode
However, when I try to compile it I get a few error message:
http://i.imgur.com/EPeS4Wp.png
My compiler settings are:
http://i.imgur.com/a6lxSoA.png
I know that <stdlib.h> etc are very basic header files and that they should be available, I have not seen inttypes.h etc. I am not really sure how to go about this creating a library from a 3rd party project.
Basically I just want to compile this as a lib and then be able to use it as an external library in my main project.
I hope somebody could help me.
I am looking forward to reading your answers.
All the best,
Richard
Bookmarks