Difference between revisions of "Talk:GenPass"

From The iPhone Wiki
Jump to: navigation, search
(Mac compiling)
(Mac compiling)
Line 14: Line 14:
   
 
Must have a recent copy of openssl installed. if you don't do this.
 
Must have a recent copy of openssl installed. if you don't do this.
1) download and extract [http://www.openssl.org/source/openssl-0.9.8h.tar.gz]
 
2) run './config' and then 'make' to build the lib.
 
3) copy genpass.c into the openssl directory
 
4) compile with 'gcc genpass.c libcrypto.a -o genpass -I./include/'
 
   
  +
* download and extract [http://www.openssl.org/source/openssl-0.9.8h.tar.gz]
plz correct me if I'm wrong, as I'm no mac expert --[[User:Posixninja|posixninja]] 21:51, 6 April 2009 (UTC)
 
  +
* run './config' and then 'make' to build the lib.
  +
* copy genpass.c into the openssl directory
  +
* compile with 'gcc genpass.c libcrypto.a -o genpass -I./include/'
  +
  +
plz correct me if I'm wrong, as I'm no mac expert --[[User:Posixninja|posixninja]] 21:52, 6 April 2009 (UTC)
   
 
=== Linux compiling ===
 
=== Linux compiling ===

Revision as of 21:52, 6 April 2009

Compilation notes

Windows

If anyone is trying to compile this using MinGW on Windows, you'll run into some linking problems with libcrypto. After searching around for awhile, I found that the problem can be solved by adding -lgdi32 to your linker flags.

I just needed the -lgdi32 What crap that a crypto lib linked to a graphics library

I don't know, it's screwy. I think a lot of OpenSSL is actually hacky on Windows (after reading the posts with corrections for this problem, it seems like their talking about some kind of pre-alpha program that barely works on anything besides Linux). Also, I see that compiling works with just gdi, so I removed it from my initial suggestion. Must have had ws2_32 first or something..

Mac compiling

Must have a recent copy of openssl installed. if you don't do this.

  • download and extract [1]
  • run './config' and then 'make' to build the lib.
  • copy genpass.c into the openssl directory
  • compile with 'gcc genpass.c libcrypto.a -o genpass -I./include/'

plz correct me if I'm wrong, as I'm no mac expert --posixninja 21:52, 6 April 2009 (UTC)

Linux compiling

What do you expect? Works fine with just -lcrypto.