Error: Unable to initialize gtk, is DISPLAY set properly?

-bash-4.1$ make

find -name "*.o" -exec rm {} \;

rm -f window -R

g++ -c window.cpp `wx-config --cxxflags`

window.cpp: In member function ‘void MyFrame::OnAverageImage(wxCommandEvent&)’:

window.cpp:469: warning: name lookup of ‘r’ changed

window.cpp:438: warning: matches this ‘r’ under ISO standard rules

window.cpp:450: warning: matches this ‘r’ under old rules

g++ window.o -o window `wx-config --libs --gl-libs` `wx-config --cxxflags` -Wall -Wno-unused -Wno-reorder -O3 -fomit-frame-pointer -fforce-addr

-bash-4.1$ ./window

Error: Unable to initialize gtk, is DISPLAY set properly?

-bash-4.1$


I am trying to connect to college server bert where I am running wxWidget application related to image processing.

but when I run (./window )commands it give me error above.


I am runing OS X maverick I. I need urgent help .


Arshad

MacBook Pro, OS X Mavericks (10.9.1)

Posted on Feb 20, 2014 11:44 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error: Unable to initialize gtk, is DISPLAY set properly?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.