Code Monkey home page Code Monkey logo

ncsa_mosaic's Introduction

NCSA_Mosaic

Modern Linux port of the original 1997 NCSA Mosaic version 2.7.5

The University of Illinois released the UNIX version of Mosaic into the public domain, so we obtained it from here

https://archives.library.illinois.edu/erec/University%20Archives/0705012/Unix/source/

Build

We used Linux Ubuntu 18.04. Mosaic was written in the C programming language and the UNIX version uses the X11 (and Motif) as the windowing system. To install these libraries on Ubuntu Linux 18.04 do

sudo apt-get install libxt-dev libmotif-dev libxmu-headers libxmu-dev libxpm-dev

The original build system included 'make' files for several UNIX systems and later GNU automake was added. We added a build based on Qt because it provides an IDE with a built in debugger. To install Qt on linux

sudo apt-get install qt5-default qtcreator

The source code assumes the existence of the file 'config.h' at root, genereated by GNU automake. This file includes several pre-processor macros but is not needed for the Qt build, and can be generated with

touch config.h

The main Qt project file Mosaic.pro is located at root and it has the following contents

TEMPLATE = subdirs
SUBDIRS = libwww2 libXmx libhtmlw libnut src

which lists 4 subdirectories with libraries and the directory 'src', where the main program is located. To build, do at a command prompt at the root directory

/usr/bin/qmake -r
make

Fixing compiling errors

libwww2

Mosaic uses 'libwww', the original World Wide Web C library written by its inventor, Tim Berners-Lee. The source included an implementation of the function 'getline'

static int getline(char *s, int n, FILE *f)

that was standardized in POSIX.1-2008, so we can just comment this definition. I also includes a declaration of

extern char *sys_errlist[];

that in recent Linux must be changed to

extern const char *const sys_errlist[];

libhtmlw

This library includes the pre-standard C header <varargs.h> and the function definition

static int PSprintf(format, va_alist)

The header must be changed to <stdarg.h> and the function to

static int PSprintf(char *format, ...)

img

ncsa_mosaic's People

Contributors

pedro-vicente avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.