From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 09:17:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3E3437B401 for ; Wed, 18 Jun 2003 09:17:40 -0700 (PDT) Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mx1.FreeBSD.org (Postfix) with SMTP id B2DD043F75 for ; Wed, 18 Jun 2003 09:17:39 -0700 (PDT) (envelope-from rohitvis@rogers.com) Received: from cpe0002a5b30bb5-cm0000396edc60.cpe.net.cable.rogers.com (HELO raptor) (rohitvis@63.138.113.68 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 18 Jun 2003 16:17:39 -0000 From: Rohit To: freebsd-questions@FreeBSD.ORG Date: Wed, 18 Jun 2003 09:17:28 +0000 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306180917.28978.rohitvis@rogers.com> Subject: OpenGL Hello World Example X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 16:17:41 -0000 Hi, This is something that has troubled me quite a bit. I followed the hello world tutorial for opengl found here. http://www.eecs.tulane.edu/www/Terry/OpenGL/Simple_Example.html#A%20Simple%20Example This is the command I'm using to compile it (as suggested at the website) gcc -o Hello_World Hello_World.c -lX11 -lMesaGL -lMesaGLU -lMesatk -lm However it says gltk.h not found when I have gltk.h in /usr/X11R6/include/GL/gltk.h This is the same type of scenario I ran into when I tried compiling qt examples. I have tried appending I/usr/X11R6/include/GL/gltk.h to the above gcc command. Any advice will be greatly appreciated. Thanks Rohit