LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2005, 05:25 AM   #1
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
Gdk-CRITICAL


For those who're new to my 3rd year project question just read the first post of this
Older Post. Its not long and I'm tyred of explaining the whole situation over and over again.

Anyway, I finally got it to compile and run in Linux by creating my own Makefile and to leave KDevelop. Then my app started to run in Linux with GNOME interface (I assume GTK is a GNOME thing). But no 3d was rendered and the console window from which I was running it said :
Code:
Gdk-CRITICAL **: file gdkdraw.c: line 169 (gdk_drawable_get_size):
Strangely I managed to still run the app but the OpenGL panel was just black.

Anyone have ideas? I hope its not a memory thing again!

Thanks

O and this is how my Makefile looks like because it managed to elminate the Segmentation fault error after the gdk error than when I compiled it from KDev:

Code:
# Project: SimuDet
# Makefile created by Dandre van Vuuren
# (with the help of the Window's wx-DevCpp 4.9.9.2-wx-beta-6.7)

LIBS_ALL =`wx-config --libs --cxxflags --gl-libs`

APPNAME	=simudet
APPEXT	=
CXX	=g++

WORKDIR	=./output
BIN	=$(APPNAME)$(APPEXT)

OBJ	=output/GlcTerrain.o output/CNewDlg.o output/FrmMain.o output/Main.o output/tga.o output/image.o output/CVector.o output/log.o output/CGrid.o output/3DLandscape.o output/3DWave.o output/CHole.o output/DlgOptions.o output/UserConfig.o

LINKOBJ	=output/GlcTerrain.o output/CNewDlg.o output/FrmMain.o output/Main.o output/tga.o output/image.o output/CVector.o output/log.o output/CGrid.o output/3DLandscape.o output/3DWave.o output/CHole.o output/DlgOptions.o output/UserConfig.o

.PHONY: all all-before all-after clean clean-custom

all: $(BIN)

install: all

uninstall: 

install-strip: install

#Delete the WORKDIR and then the Binary file
clean:
	rm -f -d -r $(WORKDIR) ./$(BIN)

$(BIN): $(OBJ)
	$(CXX) $(LINKOBJ) -o $(BIN) $(LIBS_ALL)

#Since this file is executed first, we need to create the WORKDIR
#first, otherwise it'll give a compile error. If the directory
#allready exists, then nothing will happen.
$(WORKDIR)/GlcTerrain.o: GlcTerrain.cpp
	mkdir -p output
	$(CXX) -c GlcTerrain.cpp -o $(WORKDIR)/GlcTerrain.o $(LIBS_ALL)

$(WORKDIR)/CNewDlg.o: CNewDlg.cpp
	$(CXX) -c CNewDlg.cpp -o $(WORKDIR)/CNewDlg.o $(LIBS_ALL)

$(WORKDIR)/FrmMain.o: FrmMain.cpp
	$(CXX) -c FrmMain.cpp -o $(WORKDIR)/FrmMain.o $(LIBS_ALL)

$(WORKDIR)/Main.o: Main.cpp
	$(CXX) -c Main.cpp -o $(WORKDIR)/Main.o $(LIBS_ALL)

$(WORKDIR)/tga.o: libs/images/tga.cpp
	$(CXX) -c libs/images/tga.cpp -o $(WORKDIR)/tga.o

$(WORKDIR)/image.o: libs/images/image.cpp
	$(CXX) -c libs/images/image.cpp -o $(WORKDIR)/image.o

$(WORKDIR)/CVector.o: libs/math/CVector.cpp
	$(CXX) -c libs/math/CVector.cpp -o $(WORKDIR)/CVector.o

$(WORKDIR)/log.o: libs/log.cpp
	$(CXX) -c libs/log.cpp -o $(WORKDIR)/log.o

$(WORKDIR)/CGrid.o: CGrid.cpp
	$(CXX) -c CGrid.cpp -o $(WORKDIR)/CGrid.o

$(WORKDIR)/3DLandscape.o: 3DLandscape.cpp
	$(CXX) -c 3DLandscape.cpp -o $(WORKDIR)/3DLandscape.o

$(WORKDIR)/3DWave.o: 3DWave.cpp
	$(CXX) -c 3DWave.cpp -o $(WORKDIR)/3DWave.o

$(WORKDIR)/CHole.o: CHole.cpp
	$(CXX) -c CHole.cpp -o $(WORKDIR)/CHole.o

$(WORKDIR)/DlgOptions.o: DlgOptions.cpp
	$(CXX) -c DlgOptions.cpp -o $(WORKDIR)/DlgOptions.o $(LIBS_ALL)

$(WORKDIR)/UserConfig.o: UserConfig.cpp
	$(CXX) -c UserConfig.cpp -o $(WORKDIR)/UserConfig.o $(LIBS_ALL)

Last edited by Last Attacker; 07-16-2005 at 06:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GDK-Error mfmangano Debian 0 01-16-2005 07:05 PM
gdesklets and gdk-2.0 pc macubo Linux - Software 2 07-12-2004 12:30 PM
gtk , gdk ????? varunk123456 Linux - Software 7 04-03-2004 01:22 PM
Gdk-CRITICAL **Error - Linux Gurus ????? shon Linux - Software 3 02-01-2003 05:30 PM
Gdk warning acentomo Linux - Software 0 12-18-2002 02:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration