To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 8924
8923  |  8925
Subject: 
Re: Building LDGLite for off-screen rendering only
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 18 May 2003 03:47:15 GMT
Viewed: 
1174 times
  
On Sun, May 18, 2003 at 12:10:26AM +0000, Don Heyse wrote:
You seem to be missing glut.h.  I thought I spotted it in the
Mesa-5.0.1/include/GL directory, but I may have also installed
the MesaDemos package which contains glut.

ok, cool - got that, now I get this:

  $ gmake -f makefile.osmesa
  gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8 -DNEED_MIN_MAX
  -DUSE_PNG  -DTILE_RENDER_OPTION -DOSMESA_OPTION -IMesa-5.0.1/include
  ldliteVR_main.o platform.o dirscan.o gleps.o camera.o f00QuatC.o quant.o
  stub.o lcolors.o y.tab.o lex.yy.o qbuf.o main.o ldglpr.o L3Edit.o
  L3Math.o L3Input.o L3View.o hoser.o tr.o  osmglut.o -o ldglite -lpng -lz
  -static -LMesa-5.0.1/src/.libs -LMesa-5.0.1/src-glu/.libs
  -LMesa-5.0.1/src/OSmesa/.libs -lOSMesa  -lGLU -lGL -dynamic -lpthread
  -lm
  /usr/libexec/elf/ld: cannot find -lpng

when I added a -L/usr/local/lib (since that's where libpng.a), then in
complained about pthreads.  Added _that_ directory, and then I get this:

  $ gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8
  -DNEED_MIN_MAX -DUSE_PNG  -DTILE_RENDER_OPTION -DOSMESA_OPTION
  -IMesa-5.0.1/include  ldliteVR_main.o platform.o dirscan.o gleps.o
  camera.o f00QuatC.o quant.o stub.o lcolors.o y.tab.o lex.yy.o qbuf.o
  main.o ldglpr.o L3Edit.o L3Math.o L3Input.o L3View.o hoser.o tr.o
  osmglut.o -o ldglite -lpng -lz  -static -LMesa-5.0.1/src/.libs
  -LMesa-5.0.1/src-glu/.libs -LMesa-5.0.1/src/OSmesa/.libs -lOSMesa  -lGLU
  -lGL -dynamic -lpthread -lm -L/usr/local/lib -L/usr/local/lib/pth
  lex.yy.o: In function `start_include_file':
  .../ldglite/lex.yy.c:1966: undefined reference
  to `stricmp'
  lex.yy.o: In function `cache_mpd_subfiles':
  .../ldglite/lex.yy.c(.text+0x1e8d): undefined
  reference to `stricmp'
  .../ldglite/lex.yy.c(.text+0x1ed1): undefined
  reference to `stricmp'
  main.o: In function `platform_setpath':
  .../ldglite/main.c(.text+0x1f08): undefined
  reference to `stricmp'
  main.o: In function `main':
  .../ldglite/main.c(.text+0xb826): undefined
  reference to `stricmp'
  main.o(.text+0xb841):/usr/home/peeron/tmp/ldglite/ldglite/main.c: more
  undefined references to `stricmp' follow
  L3View.o: In function `DrawPart':
  .../ldglite/L3View.cpp(.text+0x8a6): undefined
  reference to `strnicmp'
  zsh: exit 1     gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8
  -DNEED_MIN_MAX -DUSE_PN

and this I'm not sure what to do...  seems like we're missing some
standard library?

(thanks for all your help!)

Dan



Message has 1 Reply:
  Re: Building LDGLite for off-screen rendering only
 
(...) Standard? Not unless you're a Microsoft follower. However, I must admit I'm baffled by this one. The -DUNIX is supposed to tell platform.h to define some flags which cause the stricmp and strnicmp functions in platform.c to get built. You've (...) (21 years ago, 18-May-03, to lugnet.cad.dev)

Message is in Reply To:
  Re: Building LDGLite for off-screen rendering only
 
(...) You seem to be missing glut.h. I thought I spotted it in the Mesa-5.0.1/include/GL directory, but I may have also installed the MesaDemos package which contains glut. If you don't have glut.h in that directory you can either install (but not (...) (21 years ago, 18-May-03, to lugnet.cad.dev)

21 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR