Hi Regla,

I get the following when I run make from the anuga-viewer directory

steve@bottineau:~/anuga-viewer$ make
cd swwreader; make
make[1]: Entering directory `/home/steve/anuga-viewer/swwreader'
g++ -O2 -fPIC -fno-strict-aliasing -Wall -c -I ../include -I /sw/include -I /usr/local/include `gdal-config --cflags` filechangedcheck.cpp -o filechangedcheck.o
g++ -O2 -fPIC -fno-strict-aliasing -Wall -c -I ../include -I /sw/include -I /usr/local/include `gdal-config --cflags` swwreader.cpp -o swwreader.o
g++ -O2 -shared -L/usr/lib -L/usr/X11R6/lib -L/sw/lib -L/usr/local/lib64 -L/usr/local/lib -losg -losgDB -lOpenThreads -lnetcdf -lX11 -lm -lstdc++  `gdal-config --libs` filechangedcheck.o swwreader.o -o ../bin/libswwreader.so
make[1]: Leaving directory `/home/steve/anuga-viewer/swwreader'
cd viewer; make
make[1]: Entering directory `/home/steve/anuga-viewer/viewer'
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g anugahud.cpp -o anugahud.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g hud.cpp -o hud.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g keyboardeventhandler.cpp -o keyboardeventhandler.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g watersurface.cpp -o watersurface.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g main.cpp -o main.o
echo -n 'const char* version() { const char* s = "Revision: ' > version.cpp
svnversion -n . >> version.cpp
echo '"; return s; }' >> version.cpp
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g version.cpp -o version.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g bedslope.cpp -o bedslope.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g skybox.cpp -o skybox.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g linegraph.cpp -o linegraph.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g customviewer.cpp -o customviewer.o
customviewer.cpp: In member function âvoid CustomViewer::setGrid(osg::Switch*, GridMode)â:
customviewer.cpp:45:10: warning: enumeration value âGM_NUM_OFâ not handled in switch [-Wswitch]
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g directionallight.cpp -o directionallight.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g state.cpp -o state.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g meshobject.cpp -o meshobject.o
g++ -c -I . -I ../include -I /usr/local/include -I/usr/X11R6/include -Wall -g customargumentparser.cpp -o customargumentparser.o
g++ -Wall -g -L/usr/lib -L/usr/X11R6/lib -L/sw/lib -L/usr/local/lib64 -L/usr/local/lib -L../bin anugahud.o hud.o keyboardeventhandler.o watersurface.o main.o version.o bedslope.o skybox.o linegraph.o customviewer.o directionallight.o state.o meshobject.o customargumentparser.o -losg -losgText -losgDB -losgUtil -losgGA -lOpenThreads -losgViewer -lswwreader  -lX11 -lm -lstdc++ -lnetcdf `gdal-config --libs`  -o ../bin/anuga_viewer
make[1]: Leaving directory `/home/steve/anuga-viewer/viewer'



Did you provide the full output from make?

THe error

collect2: error: ld returned 1 exit status

usually indicates some error in linking the files and in turn
some of the libraries might not be available.

Did you do all the installs?

sudo apt-get install libopenscenegraph-dev
sudo apt-get install libgdal-dev
sudo apt-get install make
sudo apt-get install subversion


In the anuga-viewer directory do

make clean

and then

make

and show us the full output from make.


Cheers
Steve

On 8/03/2014 7:10 AM, Regla wrote:
Helo dear all, 
when I try to install anuga-viewer in ubuntu I have the following error after do "make"

collect2: error: ld returned 1 exit status
make[1]: ** [../bin/anuga_viewer] Erro 1
make[1]: Saindo do diretório `/home/regla/anuga-viewer/viewer'
make: ** [all] Erro 2

so I tryed by using "sudo ./ubuntu_gui_install.sh "

and I have other error:

Adding Anuga app files to the appropriate locations...
cp: impossível obter estado de “bin/anuga_viewer”: Arquivo ou diretório não encontrado

Complete! Anuga Viewer should now appear in your Applications list.


I have already looked into the  bin/ file and  there are not "anuga_viewer" archived in there, I think this archive is missing into the repository 

Can anybody help me, please?

regards

regla



------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk


_______________________________________________
Anuga-user mailing list
Anuga-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/anuga-user


-- 
+--------------------------------------------------------------------+
| Steve Roberts                  | My Office:      (61)(2) 6125 4445 |
| Department of Mathematics      | Math Office:    (61)(2) 6125 2908 |
| Mathematical Sciences Institute| Fax:            (61)(2) 6125 4984 |
| John Dedman Building #27       | mailto:stephen.roberts@anu.edu.au |
| Australian National University | http://www.maths.anu.edu.au/~steve|
| Canberra ACT 0200  AUSTRALIA   | ANU CRICOS # 00120C               |
+--------------------------------------------------------------------+