Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Coding Domino server tasks in C: beyond Windows (continued)

There's a useful list of functions that require special coding for non-Intel platforms in the API Toolkit, so if you want to use some of the more esoteric function calls, it's worth checking the documentation first to see if any changes are required.

Penguin time
So now we can recompile ACLHelp onto Linux. Although there are C and C++ IDEs (Integrated Drive Electronics) on Linux, such as KDevelop, I haven't gone beyond the command line programming tools yet. There's no reason why you shouldn't use KDevelop to compile and debug ACLHelp, but because we're pretty sure we have most of the bugs fixed under Windows, we'll leave KDevelop to another day.

Makefiles can be pretty intimidating, but Lotus does supply examples in the toolkit for each platform. I recommend you copy them. If you're using the R4.6x versions of the toolkit, there won't be any Linux support, as there wasn't a Domino 4.6x server for Linux. Just download the R5 API Toolkit and get a Linux makefile out of there. I usually start with a makefile from samples\server\addin, as it's the same type of program as ACLHelp. You'll need to change the name of the program to aclhelp, the source file to main.c, and the header file to aclhelp.h in the includes section, but otherwise use it as it is.

Now, I'm assuming you already have your Domino server working on Linux. If not, stop now and do that first. There were some excellent articles on setting up Domino on Linux in DominoPower in October and September 2000, so read them again. They're at http://www.dominopower.com/issues/issue200009/linux0900001.html and http://www.dominopower.com/issues/issue200010/linux1000001.html. There are also some pages at http://www.bluesky.co.uk/sites/jamespeel that should help you on your way.

I'm also assuming you have the Lotus C API Toolkit for Linux installed. Unlike Windows, it matters where in the file system the server and toolkit are installed. The Domino server program directory can be found at /opt/lotus/notes/latest/linux, and the C API Toolkit must be located at /opt/lotus/notesapi for the programs to compile. If you must put the files anywhere else, you can create UNIX symbolic links to make the system think everything is installed in these directories.

To compile under Linux, you'll need the main.c, aclhelp.h and linux.mak files. On the command line, before you start, you need to define some environment variables like this:

export LOTUS=/opt/lotus
export Notes_ExecDirectory=$LOTUS/notes/latest/linux
export PATH=$PATH:$Notes_ExecDirectory

You can see if it all worked by typing echo $PATH. The output from this command should prove the PATH variable has the Domino program directory appended to it. Now type:

make -f linux.mak

Your program should compile. You now have an aclhelp file that you must copy to the Domino program directory and make sure the ownership (using chown) is the same as other programs like replica. And voila! You've ported to Linux.


« Previous  ·  1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Lotus Technologies > Access Control (7 articles)
   Forcing immediate indexes to actually update immediately
   Enabling and disabling the single login setting in Notes 6
   Coding Domino server tasks in C: the adventure continues
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Home > Microsoft Technologies > Visual C (2 articles)
   Coding Domino server tasks in C: the adventure continues
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login