[ http://jira.codehaus.org/browse/MOJO-253?page=comments#action_56972 ]
Dan Tran commented on MOJO-253: ------------------------------- Brozow, I already fixed this issue right? > jni libs on MacOSX have .dylib as the extension rather than .so > ---------------------------------------------------------------- > > Key: MOJO-253 > URL: http://jira.codehaus.org/browse/MOJO-253 > Project: Mojo > Type: Bug > Components: native > Environment: MacOSX > Reporter: Matt Brozowski > Assignee: Dan Tran > > > Shared libraries for MacOSX have .dylib extension rather than .so > Here is the pom.xml for the intergration test for macosx as I've got it so > far if you want to experiment and check it in: > Notes: > - the packaging says so.. should eventually be dylib > - the javahOS says macosx but on Mac all of the heards in the toplevel include > - the include dir is in ${java.home}/include (rather the > ${java.home}/../include) as configured > <project> > <modelVersion>4.0.0</modelVersion> > <parent> > <groupId>org.codehaus.mojo.natives.it.jni</groupId> > <artifactId>native</artifactId> > <version>1.0-SNAPSHOT</version> > </parent> > <groupId>org.codehaus.mojo.natives.it.jni.linux</groupId> > <artifactId>hello</artifactId> > > <name>JNI - MacOSX </name> > > <packaging>so</packaging> > > <dependencies> > <dependency> > <groupId>org.codehaus.mojo.natives.it.jni</groupId> > <artifactId>hello</artifactId> > <version>1.0-SNAPSHOT</version> > </dependency> > > > </dependencies> > > > <build> > <finalName>lib${artifactId}</finalName> > > <testSourceDirectory>../src/test/java</testSourceDirectory> > > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>native-maven-plugin</artifactId> > <extensions>true</extensions> > <configuration> > <compilerProvider>generic</compilerProvider> > <compilerStartOptions> > <compilerStartOption>-fPIC -O</compilerStartOption> > </compilerStartOptions> > > <jdkIncludePath>${java.home}/include</jdkIncludePath> > <javahOS>macosx</javahOS> > > <sources> > <source> > <directory>../src/main/native</directory> > <fileNames> > <fileName>HelloWorld.c</fileName> > </fileNames> > </source> > </sources> > > <linkerStartOptions> > <linkerStartOption>-prebind -dynamiclib -lc > -ldl</linkerStartOption> > </linkerStartOptions> > > > </configuration> > > <executions> > <execution> > <id>javah</id> > <phase>generate-sources</phase> > <configuration> > <implementation>macos</implementation> > <classNames> > <className>HelloWorld</className> > </classNames> > </configuration> > <goals> > <goal>javah</goal> > </goals> > </execution> > > > </executions> > > </plugin> > <plugin> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <forkMode>once</forkMode> > <environments> > <LD_LIBRARY_PATH>${project.build.directory}</LD_LIBRARY_PATH> > </environments> > </configuration> > </plugin> > </plugins> > </build> > > </project> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
