mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-31 20:41:27 +08:00
updated makefile, readme
This commit is contained in:
parent
14e1862537
commit
8fac5452b8
2 changed files with 36 additions and 5 deletions
27
README.txt
27
README.txt
|
@ -34,11 +34,28 @@ DEVELOPMENT:
|
|||
This fork is adjusted to compile on windows/mingw environment with Qt5.3.1 & GCC 4.8
|
||||
For people with linux you will need to patch some source code and some small change to one makefile. If you are lazy, you google the forum and find asper's or holimans makefile or you find your solution below.
|
||||
|
||||
GC made updates to allow this to build easily on Ubuntu 14.04.2 LTS.
|
||||
- See https://github.com/Proxmark/proxmark3/wiki/Ubuntu%20Linux
|
||||
- Generally speaking, if you're running a "later" Proxmark, installation is very easy.
|
||||
- Run "sudo apt-get install p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget"a
|
||||
- Follow these instructions
|
||||
Get devkitARM release 41 from SourceForge (choose either the 64/32 ¿bit depending on your architecture, it is assumed you know how to check and recognize your architecture):
|
||||
|
||||
(64-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-x86_64-linux.tar.bz2/download
|
||||
(32-bit) http://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM_r41-i686-linux.tar.bz2/download
|
||||
Extract the contents of the .tar.bz2:
|
||||
tar jxvf devkitARM_r41-<arch>-linux.tar.bz2
|
||||
Create a directory for the arm dev kit:
|
||||
sudo mkdir -p /opt/devkitpro/
|
||||
Move the ARM developer kit to the newly created directory:
|
||||
sudo mv devkitARM /opt/devkitpro/
|
||||
Add the appropriate environment variable:
|
||||
export PATH=${PATH}:/opt/devkitpro/devkitARM/bin/
|
||||
Add the environment variable to your profile:
|
||||
echo 'PATH=${PATH}:/opt/devkitpro/devkitARM/bin/ ' >> ~/.bashrc
|
||||
- Use the magic build command "make UBUNTU_1404_QT4=1"
|
||||
|
||||
Common errors linux/macOS finds
|
||||
Error:
|
||||
* loclass/fileutils.c:15:2: warning: implicit declaration of function ‘_stat’ [-Wimplicit-function-declaration]
|
||||
Solution:
|
||||
* Remove the "unscore" sign. In linux you use without underscore, in windows you need a underscore.
|
||||
|
||||
Error:
|
||||
* \client\makefile the parameter -lgdi32
|
||||
|
@ -67,4 +84,4 @@ following locations:
|
|||
|
||||
|
||||
January 2015, Sweden
|
||||
iceman at host iuse.se
|
||||
iceman at host iuse.se
|
||||
|
|
|
@ -53,6 +53,20 @@ else
|
|||
QTLDLIBS = -L$(QTDIR)/lib -lQtCore4 -lQtGui4
|
||||
endif
|
||||
|
||||
# easy variable to pass to allow this to build on ubutnu 14.04.2
|
||||
ifeq (1,$(UBUNTU_1404_QT4))
|
||||
CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O4
|
||||
QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
|
||||
LUALIB = ../liblua/liblua.a
|
||||
LUALIB += -ldl
|
||||
MOC = $(shell pkg-config --variable=moc_location QtCore)
|
||||
LUAPLATFORM = linux
|
||||
|
||||
# pop out the libgdi/etc strings
|
||||
LDLIBS = -L/mingw/lib -L/opt/local/lib -L/usr/local/lib -lm -lreadline -lpthread
|
||||
|
||||
endif
|
||||
|
||||
ifneq ($(QTLDLIBS),)
|
||||
QTGUI = $(OBJDIR)/proxgui.o $(OBJDIR)/proxguiqt.o $(OBJDIR)/proxguiqt.moc.o
|
||||
CFLAGS += -DHAVE_GUI
|
||||
|
|
Loading…
Reference in a new issue