running one of example cases (isotropic)

398 views
Skip to first unread message

Babak Kashir Taloori

unread,
May 4, 2021, 4:58:20 PM5/4/21
to basilisk-fr
Dear All,

 I am kinda new to basilisk code. I am able to run the sample bump.c code in tutorial section both in serial and parallel. However, when I try examples such as isotropic.c with similar commands I receive errors.
For instance:
"qcc  -O2 -Wall isotropic.c -o isotropic -lm "

gives me this error:

/tmp/ccKboJsK.o: In function `vertex_buffer_glVertex2d':
isotropic.c:(.text+0x11034): undefined reference to `glVertex3d'
isotropic.c:(.text+0x1108d): undefined reference to `vector_multiply'
/tmp/ccKboJsK.o: In function `vertex_buffer_glEnd':
isotropic.c:(.text+0x110f9): undefined reference to `glEnd'
/tmp/ccKboJsK.o: In function `vertex_buffer_glColor3f':
isotropic.c:(.text+0x11577): undefined reference to `glColor3f'
/tmp/ccKboJsK.o: In function `begin_draw_lines':
isotropic.c:(.text+0x115f8): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x115fd): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x1161b): undefined reference to `glTranslatef'
isotropic.c:(.text+0x1165f): undefined reference to `glLineWidth'
/tmp/ccKboJsK.o: In function `begin_colorized':
isotropic.c:(.text+0x117ea): undefined reference to `glTexImage1D'
isotropic.c:(.text+0x117fe): undefined reference to `glTexParameteri'
isotropic.c:(.text+0x11812): undefined reference to `glTexParameteri'
isotropic.c:(.text+0x11826): undefined reference to `glTexParameteri'
isotropic.c:(.text+0x1183a): undefined reference to `glTexParameteri'
isotropic.c:(.text+0x11844): undefined reference to `glEnable'
/tmp/ccKboJsK.o: In function `vertex_buffer_glNormal3d':
isotropic.c:(.text+0x118b7): undefined reference to `glNormal3d'
/tmp/ccKboJsK.o: In function `vertex_buffer_glVertex3d':
isotropic.c:(.text+0x11987): undefined reference to `glVertex3d'
isotropic.c:(.text+0x119ed): undefined reference to `vector_multiply'
/tmp/ccKboJsK.o: In function `assemble_node':
isotropic.c:(.text+0x1dbe7): undefined reference to `reset_node_type'
isotropic.c:(.text+0x1dc08): undefined reference to `reset_node_type'
isotropic.c:(.text+0x1dc1a): undefined reference to `reset_node_type'
isotropic.c:(.text+0x1dc62): undefined reference to `reset_node_type'
isotropic.c:(.text+0x1dcb6): undefined reference to `reset_node_type'
/tmp/ccKboJsK.o: In function `bview_new':
isotropic.c:(.text+0x2e2da): undefined reference to `gl_trackball'
isotropic.c:(.text+0x2e32b): undefined reference to `framebuffer_new'
isotropic.c:(.text+0x2e336): undefined reference to `init_gl'
/tmp/ccKboJsK.o: In function `bview_destroy':
isotropic.c:(.text+0x2e369): undefined reference to `framebuffer_destroy'
/tmp/ccKboJsK.o: In function `vertex_buffer_glBegin':
isotropic.c:(.text+0x2e431): undefined reference to `glGetFloatv'
isotropic.c:(.text+0x2e4da): undefined reference to `matrix_multiply'
isotropic.c:(.text+0x2e4ff): undefined reference to `gl_build_rotmatrix'
isotropic.c:(.text+0x2e554): undefined reference to `matrix_multiply'
isotropic.c:(.text+0x2e5ab): undefined reference to `glBegin'
/tmp/ccKboJsK.o: In function `compile_expression':
isotropic.c:(.text+0x2e70e): undefined reference to `parse_node'
isotropic.c:(.text+0x2e953): undefined reference to `free_node'
isotropic.c:(.text+0x2ea4f): undefined reference to `free_node'
isotropic.c:(.text+0x2ea92): undefined reference to `free_node'
/tmp/ccKboJsK.o: In function `draw':
isotropic.c:(.text+0x2eb1a): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x2eb1f): undefined reference to `glLoadIdentity'
isotropic.c:(.text+0x2eb68): undefined reference to `gluPerspective'
isotropic.c:(.text+0x2eb72): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x2eb77): undefined reference to `glLoadIdentity'
isotropic.c:(.text+0x2eb8a): undefined reference to `glTranslatef'
isotropic.c:(.text+0x2eb96): undefined reference to `gl_build_rotmatrix'
isotropic.c:(.text+0x2eb9e): undefined reference to `glMultMatrixf'
isotropic.c:(.text+0x2ebf3): undefined reference to `glMultMatrixf'
isotropic.c:(.text+0x2ec33): undefined reference to `glScalef'
isotropic.c:(.text+0x2ec4b): undefined reference to `glClearColor'
isotropic.c:(.text+0x2ec55): undefined reference to `glClear'
isotropic.c:(.text+0x2ec5e): undefined reference to `gl_get_frustum'
isotropic.c:(.text+0x2ec95): undefined reference to `gluPerspective'
isotropic.c:(.text+0x2ec9f): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x2eca4): undefined reference to `glLoadIdentity'
isotropic.c:(.text+0x2ecba): undefined reference to `glTranslatef'
/tmp/ccKboJsK.o: In function `end_draw_lines':
isotropic.c:(.text+0x2ecda): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x2ecdf): undefined reference to `glPopMatrix'
/tmp/ccKboJsK.o: In function `gl_StrokeCharacter':
isotropic.c:(.text+0x343fa): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x34407): undefined reference to `ogStrokeMonoRoman'
/tmp/ccKboJsK.o: In function `gl_StrokeString':
isotropic.c:(.text+0x344fe): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x3450f): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x345b1): undefined reference to `glTranslatef'
isotropic.c:(.text+0x345d6): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x345f3): undefined reference to `glTranslatef'
/tmp/ccKboJsK.o: In function `gl_StrokeWidth':
isotropic.c:(.text+0x3461a): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x34623): undefined reference to `ogStrokeMonoRoman'
/tmp/ccKboJsK.o: In function `gl_StrokeLength':
isotropic.c:(.text+0x3465b): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x34662): undefined reference to `ogStrokeMonoRoman'
/tmp/ccKboJsK.o: In function `gl_StrokeHeight':
isotropic.c:(.text+0x346e4): undefined reference to `ogStrokeMonoRoman'
/tmp/ccKboJsK.o: In function `view':
isotropic.c:(.text+0x349bb): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x34a84): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x34ae1): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x34af9): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x34b3a): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x34b52): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x34b66): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x34e88): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x34f69): undefined reference to `framebuffer_destroy'
isotropic.c:(.text+0x34f76): undefined reference to `framebuffer_new'
isotropic.c:(.text+0x34f81): undefined reference to `init_gl'
isotropic.c:(.text+0x35007): undefined reference to `gl_trackball'
isotropic.c:(.text+0x3501b): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x350fc): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x3514c): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x3533c): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x3534f): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x35390): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x353a3): undefined reference to `gl_add_quats'
isotropic.c:(.text+0x353ef): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x35436): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x35492): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x354d0): undefined reference to `gl_axis_to_quat'
isotropic.c:(.text+0x354e3): undefined reference to `gl_add_quats'
/tmp/ccKboJsK.o: In function `begin_translate':
isotropic.c:(.text+0x35540): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x35545): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3555b): undefined reference to `glTranslatef'
/tmp/ccKboJsK.o: In function `end_translate':
isotropic.c:(.text+0x35581): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x35586): undefined reference to `glPopMatrix'
/tmp/ccKboJsK.o: In function `begin_mirror':
isotropic.c:(.text+0x355c9): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x355ce): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3579b): undefined reference to `matrix_multiply'
isotropic.c:(.text+0x357a3): undefined reference to `glMultMatrixf'
isotropic.c:(.text+0x357ac): undefined reference to `gl_get_frustum'
/tmp/ccKboJsK.o: In function `draw_vof':
isotropic.c:(.text+0x35d26): undefined reference to `glDisable'
isotropic.c:(.text+0x36cf0): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x36d7b): undefined reference to `sphere_diameter'
isotropic.c:(.text+0x36dfb): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x36e7a): undefined reference to `sphere_diameter'
isotropic.c:(.text+0x36f80): undefined reference to `glTexCoord1d'
/tmp/ccKboJsK.o: In function `cells':
isotropic.c:(.text+0x37857): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x3792b): undefined reference to `sphere_diameter'
/tmp/ccKboJsK.o: In function `squares':
isotropic.c:(.text+0x37a82): undefined reference to `glShadeModel'
isotropic.c:(.text+0x37e96): undefined reference to `glDisable'
isotropic.c:(.text+0x3923e): undefined reference to `glTexCoord1d'
isotropic.c:(.text+0x392c1): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x39387): undefined reference to `sphere_diameter'
isotropic.c:(.text+0x396fb): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x397b3): undefined reference to `sphere_diameter'
isotropic.c:(.text+0x39a82): undefined reference to `glTexCoord1d'
isotropic.c:(.text+0x39cac): undefined reference to `glTexCoord1d'
/tmp/ccKboJsK.o: In function `box':
isotropic.c:(.text+0x39d6f): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x39d78): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x39d87): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x39df2): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x39e61): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x39eeb): undefined reference to `glTranslatef'
isotropic.c:(.text+0x39f07): undefined reference to `glRotatef'
isotropic.c:(.text+0x39f20): undefined reference to `glScalef'
isotropic.c:(.text+0x39f6b): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x39f70): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3a00d): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3a026): undefined reference to `glScalef'
isotropic.c:(.text+0x3a035): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3a03a): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3a0dd): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3a0f9): undefined reference to `glRotatef'
isotropic.c:(.text+0x3a10f): undefined reference to `glScalef'
isotropic.c:(.text+0x3a11e): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3a12c): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3a1e3): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3a209): undefined reference to `glScalef'
isotropic.c:(.text+0x3a218): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3a21d): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3a2ae): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3a2c7): undefined reference to `glScalef'
isotropic.c:(.text+0x3a2d6): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3a2db): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3a372): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3a38e): undefined reference to `glRotatef'
isotropic.c:(.text+0x3a3a7): undefined reference to `glScalef'
isotropic.c:(.text+0x3a3b6): undefined reference to `glPopMatrix'
/tmp/ccKboJsK.o: In function `isosurface':
isotropic.c:(.text+0x3ac57): undefined reference to `glShadeModel'
isotropic.c:(.text+0x3aeba): undefined reference to `polygonize'
isotropic.c:(.text+0x3b216): undefined reference to `glDisable'
isotropic.c:(.text+0x3b8b4): undefined reference to `sphere_diameter'
isotropic.c:(.text+0x3baeb): undefined reference to `sphere_in_frustum'
isotropic.c:(.text+0x3bbc6): undefined reference to `glTexCoord1d'
/tmp/ccKboJsK.o: In function `draw_string':
isotropic.c:(.text+0x3c159): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x3c15e): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3c163): undefined reference to `glLoadIdentity'
isotropic.c:(.text+0x3c16d): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x3c172): undefined reference to `glPushMatrix'
isotropic.c:(.text+0x3c177): undefined reference to `glLoadIdentity'
isotropic.c:(.text+0x3c1c6): undefined reference to `glLineWidth'
isotropic.c:(.text+0x3c1cc): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x3c1d6): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x3c27b): undefined reference to `ogStrokeMonoRoman'
isotropic.c:(.text+0x3c2f0): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3c30b): undefined reference to `glScalef'
isotropic.c:(.text+0x3c31d): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x3c322): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3c32c): undefined reference to `glMatrixMode'
isotropic.c:(.text+0x3c331): undefined reference to `glPopMatrix'
isotropic.c:(.text+0x3c363): undefined reference to `glTranslatef'
isotropic.c:(.text+0x3c404): undefined reference to `glTranslatef'
/tmp/ccKboJsK.o: In function `save':
isotropic.c:(.text+0x3d45e): undefined reference to `framebuffer_image'
isotropic.c:(.text+0x3d48f): undefined reference to `gl_write_image'
isotropic.c:(.text+0x3d4fb): undefined reference to `glFinish'
isotropic.c:(.text+0x3d5b9): undefined reference to `framebuffer_image'
isotropic.c:(.text+0x3d5ce): undefined reference to `gl_write_image'
isotropic.c:(.text+0x3d6df): undefined reference to `glFinish'
/tmp/ccKboJsK.o: In function `gl_StrokeCharacter':
isotropic.c:(.text+0x344a5): undefined reference to `glTranslatef'
/tmp/ccKboJsK.o: In function `begin_translate':
isotropic.c:(.text+0x35569): undefined reference to `gl_get_frustum'
/tmp/ccKboJsK.o: In function `end_translate':
isotropic.c:(.text+0x35590): undefined reference to `gl_get_frustum'
 would sb in the community hint me how I can run this "isotropic" case in parallel and where was my mistake?


Regards


Babak Kashir Taloori

unread,
May 4, 2021, 9:04:12 PM5/4/21
to basilisk-fr
Also using command "make isotropic.tst" yields this error to me:

" make isotropic.tst"
qcc -autolink -O2 -fopenmp -g -Wall -pipe -D_FORTIFY_SOURCE=2 -DDUMBGL -o isotropic/isotropic isotropic.c -lm
qcc -autolink -O2 -fopenmp -g -Wall -pipe -D_FORTIFY_SOURCE=2 -DDUMBGL -o isotropic/isotropic isotropic.c  -lm
In file included from /usr/include/stdint.h:25:0,
                 from /opt/rit/spack-app/linux-rhel7-x86_64/gcc-4.8.5/gcc-7.3.0-xegsmw4io2dcncdni4rqhfmhuzljcg3l/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/stdint.h:9,
                 from isotropic-cpp.c:6:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
/usr/bin/ld: cannot find -lfb_dumb
collect2: error: ld returned 1 exit status
make: *** [isotropic.s] Error 1
make: *** [isotropic.s] Error 1

Would you please guide me? What should I do? 

Stephane Popinet

unread,
May 6, 2021, 9:03:07 AM5/6/21
to basil...@googlegroups.com
That is because this example uses online visualisation, see:

http://basilisk.fr/src/gl/INSTALL

For testing, you could just remove the visualisation altogether,
otherwise you need to link with the visualisation libraries (see details
above).

cheers,

Stephane
> --
> You received this message because you are subscribed to the Google
> Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to basilisk-fr...@googlegroups.com
> <mailto:basilisk-fr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/basilisk-fr/6500ef37-1b54-46cc-a046-bbdaa1a517f0n%40googlegroups.com
> <https://groups.google.com/d/msgid/basilisk-fr/6500ef37-1b54-46cc-a046-bbdaa1a517f0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages