#qtlookat #Copyright (C) 1999 by Kenneth Bentley #This software may be distributed under the terms of the Q #Public License, version 1.0 or later. Please see the file LICENSE.txt for #terms. This directory is provided for those who prefer Troll's tmake style of building over autoconf. To build qtlookat from here, you need to have tmake installed. You can get tmake from Troll Tech at . tmake requires Perl version 5 or greater, except for the Win32 version. (but windows users should read the bottom of this file now). for the standalone version: tmake qtlookat.pro -o Makefile make for the standalone version for win32 (Visual C++) tmake qtlookat.pro -t vcapp -o ..\MicrosoftVisualCPlusPlus\qtlookat.dsp (you can also run makeMicrosoftVisualCPlusPlusProject.bat in the root directory.) open MicrosoftVisualCPlusPlus\qtlookat.dsp in Visual C++ and build. (it is a VC++5.0 project.VC++ 6.0 automatically converts the project to VC++ 6.0 project) for the plugin: tmake qtlookatPI.pro -o make.plugin make -f make.plugin cp qtlookat.so $MOZILLA_HOME/plugins (on my system, it's "cp qtlookat.so /usr/local/netscape/plugins") then run netscape. You may need to modify the tmake input to fit your system. See < qtlookat.pro Modifications > below for details. After that, just type 'make' and hopefully you're done. < qtlookat.pro Modifications > The file qtlookat.pro is provided here for tmake, as well as a Makefile. You will need to modify qtlookat.pro to reflect your OpenVrml and OpenVrml-gl installations. In particular, you should modify the following lines: DEFINES = Qt2x ^ delete or comment out this line if you're still using Qt 1.x. qtlookat has been ported to both Qt 1.x and Qt 2.x; which code compiles depends upon the presence or absence of the -DQt2x flag at compile time. (Is there some clever tmake trick to automate this ? ) Actually, Qt defines QT_VERSION, but haven't gotten that to work yet. unix:LIBS = -lvrml97 -lvrml97gl -lvrml97js\ -ljpeg -lpng -lz \ -L/usr/X11R6/lib -lXmu -lXi -lX11 -lSM -lglut These libs reflect my particular libvrml97(gl) installation. You may need to change them to reflect yours. The first line links libvrml97 and libvrml97gl. Both are necessary and you should not need to change this line. The second line is for jpeg and png support, and the third is for glut libraries. If these differ from your libvrml97gl installation, you should change them accordingly. You do not need to add -lGL -lGLU or -lMesaGL -lMesaGLU, as tmake takes care of that based on 'opengl' being present in the CONFIG line of qtlookat.pro. Windows developers: Besides qtlookat there is also a native win32 port of lookat and a win32 glut port of lookat. The advantage of having this qt port for both win32 and unix is single point of maintenance and the ease of adding features using qt. To build you need Microsoft Visual C++ 5.0 or 6.0. You also need the qt library for win32. The non-commercial version is free to download at www.trolltech.org Qt includes tmake which you need for building. You also need to have %QTDIR%\bin in your path to run tmake. you also need Openvrml.lib, js32.lib and their include files. you can get openvrml.lib from http://openvrml.org/ js32 is the spidermonkey implementation of javascript from mozilla. You can find the source of js32 at ftp://ftp.mozilla.org/pub/js/ get the latest js-....tar.gz not the rhino.....tar.gz (for example js-1.5-rc4.tar.gz) You can build js32 by opening js.mak in Visual C++ Further you should add the paths to OpenVrml,OpenVrml-gl and js32 to your include dirs (Tools\Options\directories) and the paths to openvrml.lib,js32.lib to your library dirs. Also included is a rough qtlookatPI.pro for the plugin. I don't expect the qt plugin will work from version 0.9.0 of the OpenVrml library without some major changes. Particularly, it depended on VrmlScene::loadFromFunction(...) which went away with the new parser. To keep from overwriting the Makefile for qtlookat, you can do this: tmake qtlookatPI.pro -o make.plugin make -f make.plugin