On 13/12/10 05:12, s wrote:
> I have a whack-a-mole type game using FLTK and I have compiled/run
> the game on a linux server. I need to compile/run it on a sun machine
> (putty) and cannot figure out how to do so. I use the following on
> linux:

Is fltk installed on the Sun box? If so, how was it installed, did you 
install it? Did that work OK?
If someone else installed it, ask them if it works OK. Indeed, if you 
know where the installation is, you can maybe try some of the examples 
from the fltk test folder and verify that it is all working OK for yourself.


> Compiling the Code:
> ==================
> g++ -c Graph.cpp `fltk-config --cflags --ldflags`
> g++ -c GUI.cpp `fltk-config --cflags --ldflags`
> g++ -c Window.cpp `fltk-config --cflags --ldflags`
> g++ -c Simple_window.cpp `fltk-config --cflags --ldflags`
> g++ -c Scoreboard.cpp `fltk-config --cflags --ldflags`
> g++ -c Main_window.cpp `fltk-config --cflags --ldflags`
> g++ -c moles.cpp `fltk-config --cflags --ldflags`
> g++ game.cpp -o game GUI.o Graph.o moles.o Window.o Main_window.o 
> Simple_window.o Scoreboard.o `fltk-config --cflags --ldflags` -lfltk_images
>
> Running the Code:
> ================
> ./game
>
> This works on linux. Please help.

The process on any *nix box, including Sun boxes, ought to be broadly 
the same, though I note the following:

- No Makefile? If you are building a project that has more than one 
source file you really ought to get a Makefile going. It will save you 
so much time in the long run...

- Are you sure the compiler on the Sun box is g++ ? Although many Sun 
boxes do have gcc compilers installed, it is not universally the case, 
and many Sun machines have other compiler tools instead (or as well...) 
so it may simply be the case that you are calling the wrong compiler.

What goes "fltk-config -cxx" return? If fltk is installed, that should 
return a string telling what compiler was actually used to build fltk on 
that machine.

- It might help if you told us what Sun variant you were on, what 
version of fltk you were targeting and what the resulting error messages 
were.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to