add new dylib on jnext for mac

5 views
Skip to first unread message

abidi...@gmail.com

unread,
Oct 5, 2008, 6:39:51 PM10/5/08
to jNext discussion group
hi everybody ,
excuse my poor english :)
first of all i want to thank for your amazing JNEXT,
i work on creating new dylib library on mac os
creating and compiling lib works fine. i drag it into jnext xcode
project then i build .
when i deploy and test, safari tells me that he can't load the
plugin.
any idea ?
best regards

Amnon David

unread,
Oct 6, 2008, 3:20:52 PM10/6/08
to jn...@googlegroups.com
Hi,

Have you successfully compiled and tested the existing JNEXT extension samples (for example the filereader extension) ?

I don't remember if it appears in the documentation but after compiling the JNEXT plugin it should be placed in the browser plugins directory and the extensions dylibs should be placed in a jnext directory within that directory.

I'll look up the specifics and post them tomorrow.

-Amnon

abidi zied

unread,
Oct 6, 2008, 8:29:09 PM10/6/08
to jn...@googlegroups.com

hi amnon,
thank you for you replay.
i have successfully compiled jnext extension (netbeans filereader project) thant produce a .dylib, 
but i can't bundle it with jnext mac-npapi prject .
the xcode mac-npapi project refer to an inexisting "plugins.xcodeproj" witch responsible of creating dylibs i guess.
--
best regards

Amnon David

unread,
Oct 7, 2008, 6:19:47 PM10/7/08
to jn...@googlegroups.com
Ok, this is what needs to be done:

1. Apparently there was a small problem in the contents of the jnext-core/Mac-npapi/ XCode project (jNext.xcodeproj). I've fixed it, verified that it compiles and checked it into the bzr repository. You can get the updated sources (revision 25) using bzr from the command line, e.g

bzr branch http:/jnext.org/core jncore

Of course you'll have to install bzr on your system if you don't have it

2. Building the above project creates a directory named jnext-core/build/Release/jNext.plugin. Copy the entire jNext.plugin directory to your system's browser plugins directory (should be at /Library/Internet Plug-Ins/) so that this directory will also have in it a directory named jNext.plugin. On my system this was:

sudo cp -r /Users/amnon/dev/jncore/jnext-core/build/Release/jNext.plugin /Library/Internet\ Plug-Ins/

3. Create a directory named:
/Library/Internet Plug-Ins/jNext.plugin/Contents/Plugins/jnext/

Copy the JNEXT extensions (.dylib files you compiled using the NetBeans makefiles) to the above folder. Below is a transcript of what I did on my system:

sudo cp /Users/amnon/dev/jncore/jnext-extensions/sqlite3/dist/Debug_OSX/GNU-MacOSX/sqlite3.dylib /Library/Internet\ Plug-Ins/jNext.plugin/Contents/Plugins/jnext/

sudo cp /Users/amnon/dev/jncore/jnext-extensions/sockets/dist/Debug_OSX/GNU-MacOSX/sockets.dylib /Library/Internet Plug-Ins/jNext.plugin/Contents/Plugins/jnext/

sudo cp /Users/amnon/dev/jncore/jnext-extensions/sockets/dist/Debug_OSX/GNU-MacOSX/sockets.dylib /Library/Internet\ Plug-Ins/jNext.plugin/Contents/Plugins/jnext

sudo cp /Users/amnon/dev/jncore/jnext-extensions/inifile/dist/Debug_OSX/GNU-MacOSX/inifile.dylib  /Library/Internet\ Plug-Ins/jNext.plugin/Contents/Plugins/jnext/

sudo cp /Users/amnon/dev/jncore/jnext-extensions/filereader/dist/Debug_OSX/GNU-MacOSX/filereader.dylib /Library/Internet\ Plug-Ins/jNext.plugin/Contents/Plugins/jnext/

sudo cp /Users/amnon/dev/jncore/jnext-extensions/directory/dist/Debug_OSX/GNU-MacOSX/directory.dylib /Library/Internet\ Plug-Ins/jNext.plugin/Contents/Plugins/jnext/


Also copy a file named auth.txt into this folder. The contents of this file can be "file:// *" (without the quotations) if you trust local html files to run JNEXT extensions.

4. At this point you should be able to test the existing JNEXT extensions by opening the sample html files in the javascript/samples/ directory

Please let me know if this worked.

-Amnon
Reply all
Reply to author
Forward
0 new messages