[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FW: Problem compiling Opengl example with CYGWIN / OpenGL with EG CS



> Thanks Mahnu pour ta piste!
> 
> I after reading Mahnu answer's and hacking around finding only new error
> messages,
> I finally managed to compile the bounce example of the OpenGl suite.
> 
> To correct the problem I have recompiled the V LIB using the corrected
> Config.mk
> that you will find at the end of this messages. The linking swithc
> -D_WIN32 was 
> changed to -DWIN32.  You will also find the makefile for the bounce
> example.
> Similar changes should be made to the other examples. The following
> swithes
> 
> -mno-cygwin -DWIN32
> 
> have been added to the link flags.  
> 
> Thank You Mr Wampler for excellent software.
> 
> Gilles B.)
> 
> 
> *******CONFIG.MK******************************************************
> # V Make Configuration file - Version 1.22 - 2/28/99
> #
> # For Cygwin32 on Windows95/NT - Native Windows GUI version
> #
> # Copyright (C) 1995,1996,1997,1998  Bruce E. Wampler
> #
> # This file is part of the V C++ GUI Framework, and is covered
> # under the terms of the GNU Library General Public License,
> # Version 2. This library has NO WARRANTY. See the source file
> # vapp.cxx for more complete information about license terms.
> #===============================================================
> 
> 
> #---------------------------------------------------------------------
> # Version info
> #---------------------------------------------------------------------
> VV  =   1.22
> VVW =   122
> 
> 
> #---------------------------------------------------------------------
> # HOMEV info
> # change this to the directory you've installed V to
> #---------------------------------------------------------------------
> HOMEV   =  /cygnus/v
> HOMEGNU =   /cygnus
> 
> 
> #---------------------------------------------------------------------
> # Tools used in the makefile execution
> #---------------------------------------------------------------------
> CC  =   gcc
> CXX =   g++
> GMAKE   =   make
> AR  =   ar
> RANLIB  =   ranlib
> RES =   windres
> 
> #---------------------------------------------------------------------
> # VPATH for dependencies on header files
> #---------------------------------------------------------------------
> VPATH=$(HOMEV)/includew/v
> 
> 
> #---------------------------------------------------------------------
> # Select the architecture of your system.
> #---------------------------------------------------------------------
> 
> ARCH = gnuwin32
> 
> Arch = $(ARCH)
> 
> USE_3D = yes
> 
> #---------------------------------------------------------------------
> # Select Debug or no Debug
> #---------------------------------------------------------------------
> #DEBUG  =   yes
> DEBUG   = no
> 
> #---------------------------------------------------------------------
> # Select Develop or not - used for original development
> #---------------------------------------------------------------------
> #DEVEL  =   yes
> DEVEL   = no
> 
> #---------------------------------------------------------------------
> # Define filename extensions that are targeted by cleanup's
> #---------------------------------------------------------------------
> CLEANEXTS= *.bak *.tmp
> 
> 
> #---------------------------------------------------------------------
> # Architecture dependent directory locations
> #---------------------------------------------------------------------
> VLibDir =   $(HOMEV)/lib/$(Arch)
> oDir    =   $(HOMEV)/obj/$(Arch)
> LibDir  =   $(HOMEV)/lib/$(Arch)
> Bin =   $(HOMEV)/bin/$(Arch)
> 
> #---------------------------------------------------------------------
> # Architecture independent
> #---------------------------------------------------------------------
> INCDIR  =       -I$(HOMEV)/includew -I$(HOMEV)/gnuwin32/include
> #INCDIR  =       -I$(HOMEV)/includew
> LIBDIR  =   -L$(LibDir)
> LIBNAME =   libV
> V1NAME  =   v1
> LIBS    =   -lV -lcomctl32 -mwindows -DWIN32 -mno-cygwin
> #
> # This is an alternative specification that will cause a DOS
> # window to come up
> #
> #LIBS   =   -lV -lcomdlg32 -luser32 -lgdi32 -lcomctl32
> 
> 
> 
> #---------------------------------------------------------------------
> # C/C++ compile options
> #---------------------------------------------------------------------
> CFLAGS  += $(INCDIR)
> ifeq ($(DEBUG),no)
> CFLAGS  +=  -O2 -DWIN32 -mno-cygwin
> endif
> ifeq ($(DEBUG),yes)
> CFLAGS  +=  -g -DWIN32 -mno-cygwin
> endif
> ifeq ($(DEVEL),yes)
> CFLAGS  +=  -DDEVEL -mno-cygwin
> endif
> 
> #---------------------------------------------------------------------
> # LINK/LOAD options
> #---------------------------------------------------------------------
> LDFLAGS =   $(LIBDIR) $(LIBS)
> 
> 
> *************MAKEFILE for Bounce example of the OpenGl
> Suite**********************
> #=======================================================================
> #@V@:Note: This file generated by vgen V1.04 (10:59:00 22 Jun 1998).
> #=======================================================================
> 
> CC  =   g++
> 
> HOMEV   =   /cygnus/v
> LIBS    =   -lV -lVgl -lglu32 -lopengl32 -lcomctl32 -mwindows
> VLibDir =   $(HOMEV)/lib/gnuwin32
> oDir    =   /cygnus/v/obj/gnuwin32
> Bin     =   /cygnus/v/bin/gnuwin32
> 
> VPATH   =   $(HOMEV)/includew/v
> 
> #--------------------------------------------------------------
> # Architecture dependent
> 
> # Flags for includes and libraries
> 
> CFLAGS  =	-O -I$(HOMEV)/includew -mno-cygwin -DWIN32
> 
> LFLAGS  =   -O -L$(VLibDir)
> 
> EXOBJS  =   $(oDir)/bncapp.o \
>         $(oDir)/bnccnv.o \
>         $(oDir)/bnccmdw.o
> 
> all:    $(Bin)/bnc.exe
> 
> objs:   $(EXOBJS)
> 
> clean:
> 	rm $(EXOBJS)
> 	rm $(Bin)/bnc.exe
> 
> $(Bin)/bnc.exe: $(EXOBJS)
> 	$(CC) -o $@ $(LFLAGS) $(EXOBJS) $(LIBS)
> 
> $(oDir)/bnccnv.o:   bnccnv.cpp  bnccnv.h
> 	$(CC) -c $(CFLAGS) -o $@ $<
> 
> $(oDir)/bnccmdw.o:  bnccmdw.cpp bnccmdw.h
> 	$(CC) -c $(CFLAGS) -o $@ $<
> 
> $(oDir)/bncapp.o:   bncapp.cpp \
> 	bncapp.h bnccmdw.h
> 	$(CC) -c $(CFLAGS) -o $@ $<


Reply to: