Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I ran into pretty much this same problem. I was compiling libssh2, but I was using openssl with it. To force configure to compile in 32 bit mode you will need to set the CFLAGS and CPPFLAGS. Enter these commands in the terminal before you run configure:</p> <pre><code>export CFLAGS=-m32 export CPPFLAGS=-m32 </code></pre> <p>Before running ./configure in the Terminal, you need to set the CFLAGS and CPPFLAGS.</p> <p>export CFLAGS=-m32</p> <p>export CPPFLAGS=-m32</p> <p>To build libssh2 with openssl the way I did it first download the latest <a href="http://openssl.org/source/" rel="nofollow noreferrer">openssl</a> and <a href="http://www.libssh2.org/" rel="nofollow noreferrer">libssh2</a> source files from their respective sites. Go to the directory you downloaded and unzipped openssl to. I actually did the above commands after I built the openssl binaries and it didn't seem to matter. They were required before building libssh2 though.</p> <p>./configure --prefix=/TARGET_DIRECTORY</p> <p>make</p> <p>make install</p> <p>After that switch over to the folder where you downloaded and unzipped libssh2. Configure and build it with the following commands:</p> <p>./configure --with-openssl --with-libssl-prefix=/OPENSSL_TARGET_DIRECTORY --prefix=/LIBSSH2_TARGET_DIRECTORY</p> <p>make</p> <p>make install</p> <p>You can find the *.a files to import into the Xcode project in the target directorys' "lib" folders.</p> <p>As I'm sure you already know, this is only for the iPhone simulator. You'll need to build for the arm architecture to use this library on a device.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload