Proxmark developers community

Research, development and trades concerning the powerful Proxmark3 device!

You are not logged in.

#1 2009-07-14 14:21:36

Sly
Member
Registered: 2009-03-02
Posts: 19

Compiling Problems

Sorry to be a pain in the ass guys... trying to compile the linux client for '20090409' and having trouble even tried using edo512's install script and still can't compile.

sudo make:

cc -I. -I/opt/local/include -Wall   -c -o proxmark3.o proxmark3.c
proxmark3.c:8:31: error: readline/readline.h: No such file or directory
proxmark3.c:9:30: error: readline/history.h: No such file or directory
proxmark3.c: In function ‘main_loop’:
proxmark3.c:52: warning: implicit declaration of function ‘readline’
proxmark3.c:52: warning: assignment makes pointer from integer without a cast
proxmark3.c:59: warning: implicit declaration of function ‘add_history’
make: *** [proxmark3.o] Error 1

anyone know where I've screwed up?

Offline

#2 2009-07-14 14:35:50

ryan
Member
Registered: 2009-06-17
Posts: 36

Re: Compiling Problems

Looks like you need a libreadline-dev package which will install the header files it is looking for.  Without knowing which distro you are running, it's hard to say what the exact package name should be.  Try looking for it in your distro's package repository.

Offline

#3 2009-07-16 10:03:11

Sly
Member
Registered: 2009-03-02
Posts: 19

Re: Compiling Problems

ok thanks, that helped but I've now got another one... btw I'm using Ubuntu 8.10

cc -I. -I/opt/local/include -Wall   -c -o command.o command.c
In file included from command.c:2:
../winsrc/command.cpp:14:36: error: ..\common\iso14443_crc.c: No such file or directory
In file included from command.c:2:
../winsrc/command.cpp: In function ‘CmdHi14bdemod’:
../winsrc/command.cpp:577: warning: implicit declaration of function ‘ComputeCrc14443’
../winsrc/command.cpp:577: error: ‘CRC_14443_B’ undeclared (first use in this function)
../winsrc/command.cpp:577: error: (Each undeclared identifier is reported only once
../winsrc/command.cpp:577: error: for each function it appears in.)
../winsrc/command.cpp: In function ‘CmdHi14list’:
../winsrc/command.cpp:637: error: ‘CRC_14443_B’ undeclared (first use in this function)
../winsrc/command.cpp: In function ‘CmdHi14alist’:
../winsrc/command.cpp:762: error: ‘CRC_14443_A’ undeclared (first use in this function)
../winsrc/command.cpp: In function ‘Cmdmanchesterdemod’:
../winsrc/command.cpp:1465: warning: unused variable ‘grouping’
../winsrc/command.cpp: At top level:
../winsrc/command.cpp:1688: warning: missing braces around initializer
../winsrc/command.cpp:1688: warning: (near initialization for ‘CommandTable[0]’)
make: *** [command.o] Error 1

Offline

#4 2009-07-16 14:43:43

ryan
Member
Registered: 2009-06-17
Posts: 36

Re: Compiling Problems

The \winsrc directory is the windows client.  I don't think that will compile in Linux (maybe under Wine).  Either way, you don't need it if you can get the Linux client to work.

-Ryan

Offline

#5 2009-07-17 06:12:29

Sly
Member
Registered: 2009-03-02
Posts: 19

Re: Compiling Problems

See I kind of thought that, but it doesn't seem to be making the binaries in the linux folder unless there's something I'm missing, someone could really do with putting out a little bit of documentation on what libaries are required and such... I don't really get why the make file in the linux folder should include anything to do with the windows client.

Offline

#6 2009-07-17 07:16:52

samy
Moderator
From: los angeles, california
Registered: 2009-06-18
Posts: 117
Website

Re: Compiling Problems

Sly,

All the guts of the client code is in the windows directory, however the actual Linux wrapper is in the linux directory.

All you should have to do to install is:
cd linux && make

And the binaries should show up in the directory. I also always include Linux binaries in the packages every few releases, you can get them from the downloads section of google code.

If you're having any errors when compiling, let us know!

Offline

#7 2009-07-18 12:16:59

Sly
Member
Registered: 2009-03-02
Posts: 19

Re: Compiling Problems

well, thanks, but I've given up for the moment, tried running the binaries, got another library missing I believe.

Offline

#8 2009-07-18 14:32:50

adam@algroup.co.uk
Moderator
From: UK
Registered: 2009-05-01
Posts: 202
Website

Re: Compiling Problems

I know you said you tried edo's script, but did you try the updated 'tools/build-arm-toolchain'?

Offline

Board footer

Powered by FluxBB