Home_intro

intro story DELWAQ

DELWAQ

DELWAQ is the engine of the D-Water Quality and D-Ecology programmes of the Delft3D suite. It is based on a rich library from which relevant substances and processes can be selected to quickly put water and sediment quality models together.

The processes library covers many aspects of water quality and ecology, from basic tracers, dissolved oxygen, nutrients, organic matter, inorganic suspended matter, heavy metals, bacteria and organic micro-pollutants, to complex algae and macrophyte dynamics. High performance solvers enable the simulation of long periods, often required to capture the full cycles of the processes being modelled.

The finite volume approach underlying DELWAQ allows it to be coupled to both the structured grid hydrodynamics of the current Delft3D-FLOW engine and the upcoming D-Flow Flexible Mesh engine (1D-2D-3D) of the Delft3D Flexible Mesh Suite (or even other models such as TELEMAC).

'DELWAQ in open source' is our invitation to all leading experts to collaborate in further development and research in the field of water quality, ecology and morphology using Delft3D. Feel free to post your DELWAQ related questions or comments in this dedicated forum space. If you are new to DELWAQ, the tutorial (in the user manual) is a good place to start. A list of DELWAQ related publications is available here.

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ

Cohesive sediments & muddy systems

 


Message Boards

Error running make on ubuntu 16.04 uuid_generate

JS
Jean-Luc Shaw, modified 4 Years ago.

Error running make on ubuntu 16.04 uuid_generate

Youngling Posts: 1 Join Date: 6/23/16 Recent Posts
Hi!

I am trying to compile Delft3D on my Ubuntu 16.04 64 bit machine. The instructions I am following are from webinar 3 :

http://content.oss.deltares.nl/delft3d/Webinar/Baart_LinuxCodeCompiling/WebinarBaart_11012012_v3.html

Autogen and configure run smoothly. The error occurs during the make part of the installation. Here is the printout just before the error:


./utils_lgpl/delftio/packages/delftio/src/diof90/.libs/libDIOF90.a ../../../../../utils_lgpl/delftio/packages/delftio_shm/src/diof90/.libs/libDelftIOSHM.a ../../../../../engines_gpl/waq/packages/waq_io/src/ods/.libs/libods.a ../../../../../utils_lgpl/esmfsm/packages/esmfsm/src/fsm/.libs/libESMFSM.a ../../../../../utils_lgpl/nefis/packages/nefis/src/.libs/libNefis.a ../../../../../engines_gpl/waq/packages/waq_utils_f/src/interact/.libs/libinteract.a ../../../../../engines_gpl/waq/packages/waq_utils_c/src/.libs/libwaq_utils_c.a ../../../../../engines_gpl/waq/packages/delwaq2_version_number/src/.libs/libdelwaq2_version_number.a -lpthread -ldl -lrt /usr/lib/x86_64-linux-gnu/libexpat.so -lstdc++ -pthread -fopenmp
../../../../../engines_gpl/waq/packages/delwaq2_lib/src/.libs/libDelwaq2.a(getuuid.o): In function `getuuid':
/home/Work/Desktop/Delft3D/trunk/src/engines_gpl/waq/packages/waq_utils_c/src/getuuid.c:27: undefined reference to `uuid_generate'
collect2: error: ld returned 1 exit status
Makefile:593: recipe for target 'delwaq2' failed
make[6]: *** [delwaq2] Error 1
make[6]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src/engines_gpl/waq/packages/delwaq2/src'
Makefile:488: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src/engines_gpl/waq/packages/delwaq2'
Makefile:499: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src/engines_gpl/waq/packages'
Makefile:488: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src/engines_gpl/waq'
Makefile:492: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src/engines_gpl'
Makefile:548: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/Work/Desktop/Delft3D/trunk/src'
Makefile:479: recipe for target 'all' failed
make: *** [all] Error 2

I suspect that I need to add the proper path to the uuid related libraries in makefile but I am not quite sure what I would then need to write or where to write it.

All help greatly appreciated!


Jean-Luc
MG
martin gerbec, modified 4 Years ago.

RE: Error running make on ubuntu 16.04 uuid_generate

Youngling Posts: 2 Join Date: 5/17/16 Recent Posts
Hi,

I have the same error trying to compile the latest version (trunk) in Linux Mint 17.2 (Ubuntu based). I also try in Linux Mint Debian Edition, but it was the same.
What it works successfully is compiling the version 6118 (this version doesn't include the variable UUIDLIBS_ADDITIONAL in the build.sh file). But at the moment of running show the error mentioned in the following link (that seems fixed in newer versions):

http://oss.deltares.nl/web/delft3d/general/-/message_boards/view_message/753225;jsessionid=40C1B725F69BB4816D4095A93A85CC3A.v-oss002.dlt.proteon.nl#_19_message_919774

Any idea? Thanks!!

Martin
MG
martin gerbec, modified 4 Years ago.

RE: Error running make on ubuntu 16.04 uuid_generate

Youngling Posts: 2 Join Date: 5/17/16 Recent Posts
Hi

it seems that in order to compile a code that includes uuid function, you need to add the following argument: -luuid (see).
So, modifying the file: trunk/src/nano engines_gpl/waq/packages/delwaq2/Makefile.am it's possible to compile the latest versions successfully. Just add -luuid \ around line 62, before

-lpthread \
-ldl

Hope it helps!

Martin
MJ
Michel Jeuken, modified 4 Years ago.

RE: Error running make on ubuntu 16.04 uuid_generate (Answer)

Jedi Knight Posts: 154 Join Date: 1/21/13 Recent Posts
Thanks for your suggestion!

There was a difference between the build and build_h5 script (UUIDLIBS_ADDITIONAL vs UUIDLIBS), so the (fixed) reference to the uuid lib (/lib64/libuuid.so.1) was not picked up properly in engines_gpl/waq/packages/delwaq2/Makefile.am where it was added by using $(UUIDLIBS).

Your solution of using -luuid is much more generic, so I changed it to that (and removed UUIDLIBS_ADDITIONAL/UUIDLIBS from the build script).