Changeset 484a390


Ignore:
Timestamp:
Oct 28, 2016 5:10:22 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6ff9483
Parents:
916fc96
Message:

Build: Fix typo in jcpuid build.sh for Mac (ticket #1865)
Doc updates for Mac copied from that ticket

Location:
core/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/c/README

    r916fc96 r484a390  
    108108---------------
    109109No working cross-compilation setup has been found. The gmp6 binaries were produced on an OSX host.
     110For more information on OSX compilation, see http://trac.i2p2.i2p/ticket/1865 or
     111https://trac.i2p2.de/ticket/1865
     112
     113There is no /usr/local/lib/libgmp.so dynamic library for macOS.
     114The easiest way to get this is with Macports.
     115These commands download, compile, and set Macports gcc as the default compiler
     116if you put /opt/local/bin first in the PATH environment variable.
     117
     118        sudo port install gmp
     119        sudo port select --list gcc
     120        sudo port select --set gcc mp-gcc6
     121        export PATH=/opt/local/bin:$PATH
     122        gcc --version
     123
     124Now replace /usr/local/lib with /opt/local/lib in the file core/c/jbigi/build_jbigi.sh.
     125
     126        $ diff build_jbigi.sh build_jbigi.sh.orig
     127        81c81
     128        <         LIBPATH="-L.libs -L/opt/local/lib"
     129        ---
     130        >         LIBPATH="-L.libs -L/usr/local/lib"
     131
    110132
    111133
     
    113135========================
    114136
    115 To test, copy jbigi/lib/libjbigi.so
    116 and jcpuid/lib/freenet/support/CPUInformation/libjcpuid-*.so
    117 to your i2p installation directory ($I2P). You may also copy jbigi.jar to the $I2P/lib/ directory;
     137To test, copy jbigi/lib/libjbigi.so (Windows: jbigi.dll; Mac: libjbigi.jnilib)
     138to your i2p installation directory ($I2P).
     139Copy jcpuid/lib/freenet/support/CPUInformation/libjcpuid-*.so (Windows: jcpuid-*.dll; Mac: libjcpuid-*.jnilib)
     140to your i2p installation directory ($I2P) as libjcpuid.so (Windows: jcpuid.dll; Mac: libjcpuid.jnilib)
     141You may also copy jbigi.jar to the $I2P/lib/ directory;
    118142it will be used only if the router fails to load the native library
    119143from the I2P installation directory.
  • core/c/jcpuid/build.sh

    r916fc96 r484a390  
    105105        JAVA_HOME=$(/usr/libexec/java_home)
    106106        CFLAGS="${CFLAGS} -fPIC -Wall -arch x86_64 -arch i386"
    107         INCLUDES="-I. -Iinclude -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/dawrin/"
     107        INCLUDES="-I. -Iinclude -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/darwin/"
    108108        LDFLAGS="${LDFLAGS} -dynamiclib -framework JavaVM"
    109         LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-darwin.jnilib";;
     109        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86_64-osx.jnilib";;
    110110    Linux*|OpenBSD*|NetBSD*|*FreeBSD*|SunOS*)
    111111        KFREEBSD=0
Note: See TracChangeset for help on using the changeset viewer.