]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
updated makefile, readme
authorGil Cohen <gcohen@gmail.com>
Tue, 4 Aug 2015 04:07:57 +0000 (23:07 -0500)
committerGil Cohen <gcohen@gmail.com>
Tue, 4 Aug 2015 04:07:57 +0000 (23:07 -0500)
README.txt
client/Makefile

index e510e792059a09ba4d15325e23f1aa6f86f6a6ab..2acd55a129c04a3d6b1bdc0420e263e49544f891 100644 (file)
@@ -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 \91_stat\92 [-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
\ No newline at end of file
+iceman at host iuse.se
index 9133abff15c41abd87f111185a5cc35fce9c21c7..de7bd45ae5213027c0d8376ab96a180e1dcb082e 100644 (file)
@@ -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
Impressum, Datenschutz