Dear Developers,
I am trying to build MEDM on our Epics (base-3.15.5) and areaDetector
(specifically ADEiger) installations on an Ubuntu 16.04 machine. I
followed the instructions on "https://epics.anl.gov/extensions/medm/"
webpage however one of the packages needed for MEDM, i.e. libxp-dev (and
also libxp), is not available for this version of Ubuntu.
I can find the library deb file (libxp-dev_1.0.2-1ubuntu1_amd64.deb) for
Ubuntu 14.04 however I am not sure if this package will work with our
operating system.
If I comment out the line "USR_LIBS_Linux = Xm Xt Xp Xmu X11 Xext" and
uncomment "USR_LIBS_Linux = Xm Xt Xmu X11 Xext" to remove libXp linkage
in medm Makefile, the compilation still fails due to some undefined
references to functions. That reminds me the errors I receive when some
header files are missing. I included the error lines in my compilation
at the end.
I will appreciate any guidance or hint on this issue. Thank you for your
consideration.
Best regards,
Alper
*Alper Kinaci, PhD*
Sr Computational Specialist
Research Computing Services
Information Technology
Northwestern University
[email protected]
847.467.7615
####
/usr/bin/g++ -o medm -Wl,-Bstatic
-L/home/epics-admin/Documents/areaDetector/lib/linux-x86_64
-L/home/epics-admin/Documents/base-3.15.5/lib/linux-x86_64
-L/usr/lib/x86_64-linux-gnu
-Wl,-rpath,/home/epics-admin/Documents/areaDetector/lib/linux-x86_64
-Wl,-rpath,/home/epics-admin/Documents/base-3.15.5/lib/linux-x86_64
-Wl,-rpath,/usr/lib/x86_64-linux-gnu -rdynamic -m64
medmCA.o actions.o bubbleHelp.o callbacks.o browserHelp.o
channelPalette.o colorPalette.o dialogs.o display.o eventHandlers.o
help.o medm.o medmArc.o medmBar.o medmByte.o medmChoiceButtons.o
medmCommon.o medmComposite.o medmControl.o medmDisplay.o medmImage.o
medmIndicator.o medmMenu.o medmMessageButton.o medmMeter.o medmMonitor.o
medmOval.o medmPixmap.o medmPolygon.o medmPolyline.o medmRectangle.o
medmRelatedDisplay.o medmShellCommand.o medmStripChart.o medmText.o
medmTextEntry.o medmTextUpdate.o medmValuator.o medmWheelSwitch.o
medmWidget.o objectPalette.o productDescriptionShell.o resourcePalette.o
updateMonitors.o updateTask.o utils.o xgif.o -lANLwidgets -lPrintUtils
-lca -lCom -lXm -lXt -lXmu -lX11 -lXext -Wl,-Bdynamic -lpthread
-lreadline -lm -lrt -ldl -lgcc
/usr/lib/x86_64-linux-gnu/libXm.a(Label.o): In function `Redisplay':
(.text+0xef8): undefined reference to `XftDrawSetClip'
/usr/lib/x86_64-linux-gnu/libXm.a(LabelG.o): In function `_XmRedisplayLabG':
(.text+0x3543): undefined reference to `XftDrawSetClip'
/usr/lib/x86_64-linux-gnu/libXm.a(TextIn.o): In function `SelfInsert':
(.text+0x6cf3): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextOut.o): In function `FindWidth':
(.text+0x190e): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextOut.o): In function `FindWidth':
(.text+0x19d3): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextOut.o): In function `FindHeight':
(.text+0x221c): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextOut.o): In function `FindHeight':
(.text+0x22f5): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmString.o):(.text+0x6d1): more
undefined references to `XftTextExtentsUtf8' follow
/usr/lib/x86_64-linux-gnu/libXm.a(XmString.o): In function
`SubStringPosition':
(.text+0xc1af): undefined reference to `XftTextExtents16'
/usr/lib/x86_64-linux-gnu/libXm.a(XmString.o): In function
`SubStringPosition':
(.text+0xc243): undefined reference to `XftTextExtents16'
/usr/lib/x86_64-linux-gnu/libXm.a(XmString.o): In function `_render':
(.text+0xe2c5): undefined reference to `XftDrawSetClip'
/usr/lib/x86_64-linux-gnu/libXm.a(TextF.o): In function
`FindPixelLength.part.6':
(.text+0x1dbe): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextF.o): In function
`FindPixelLength.part.6':
(.text+0x1f15): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextF.o): In function
`FindPixelLength.part.6':
(.text+0x1fa5): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextF.o): In function `PrintableString':
(.text+0x27ae): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(TextF.o): In function `TextFieldResetIC':
(.text+0x8522): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function `FreeRendition':
(.text+0x10aa): undefined reference to `XftFontClose'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function `FreeRendition':
(.text+0x10cc): undefined reference to `FcPatternDestroy'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1d1f): undefined reference to `FcPatternCreate'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1d45): undefined reference to `FcPatternAddString'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1d63): undefined reference to `FcPatternAddString'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1d81): undefined reference to `FcPatternAddString'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1d9f): undefined reference to `FcPatternAddString'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1e01): undefined reference to `XftFontMatch'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x1e12): undefined reference to `XftFontOpenPattern'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x20c5): undefined reference to `FcPatternAddInteger'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x20df): undefined reference to `FcPatternAddInteger'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x20f9): undefined reference to `FcPatternAddInteger'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x2113): undefined reference to `FcPatternAddInteger'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`ValidateAndLoadFont':
(.text+0x212d): undefined reference to `FcPatternAddInteger'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawCreate':
(.text+0x4b69): undefined reference to `XftDrawCreate'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawCreate':
(.text+0x4c42): undefined reference to `XftDrawCreateBitmap'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString2':
(.text+0x4df7): undefined reference to `XftDrawStringUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString2':
(.text+0x4e1f): undefined reference to `XftDrawString32'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString2':
(.text+0x4e4f): undefined reference to `XftDrawString16'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x4f44): undefined reference to `XftDrawRect'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x4fd6): undefined reference to `XftDrawStringUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x500e): undefined reference to `XftDrawString32'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x504e): undefined reference to `XftDrawString16'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x507c): undefined reference to `XftTextExtents16'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x50ac): undefined reference to `XftTextExtentsUtf8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawString':
(.text+0x515c): undefined reference to `XftTextExtents32'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftFontAverageWidth':
(.text+0x5285): undefined reference to `XftTextExtents8'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftDrawDestroy':
(.text+0x4c9f): undefined reference to `XftDrawDestroy'
/usr/lib/x86_64-linux-gnu/libXm.a(XmRenderT.o): In function
`_XmXftSetClipRectangles':
(.text+0x5233): undefined reference to `XftDrawSetClipRectangles'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x6c): undefined reference to `jpeg_std_error'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x9d): undefined reference to `jpeg_destroy_decompress'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0xdb): undefined reference to `jpeg_CreateDecompress'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0xed): undefined reference to `jpeg_stdio_src'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0xff): undefined reference to `jpeg_read_header'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x10c): undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x119): undefined reference to `jpeg_start_decompress'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x17e): undefined reference to `jpeg_read_scanlines'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x1b5): undefined reference to `jpeg_finish_decompress'
/usr/lib/x86_64-linux-gnu/libXm.a(Jpeg.o): In function `load_jpeg':
(.text+0x1c2): undefined reference to `jpeg_destroy_decompress'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x7a): undefined reference to `png_sig_cmp'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0xbc): undefined reference to `png_create_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0xce): undefined reference to `png_create_info_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x102): undefined reference to `png_destroy_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x118): undefined reference to `png_destroy_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x14b): undefined reference to `png_init_io'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x15a): undefined reference to `png_set_sig_bytes'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x169): undefined reference to `png_read_info'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x199): undefined reference to `png_get_IHDR'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x1f1): undefined reference to `png_get_valid'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x219): undefined reference to `png_set_gray_to_rgb'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x22d): undefined reference to `png_get_gAMA'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x245): undefined reference to `png_read_update_info'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x254): undefined reference to `png_get_rowbytes'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x26e): undefined reference to `png_get_channels'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x2e8): undefined reference to `png_read_image'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x2fc): undefined reference to `png_read_end'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x325): undefined reference to `png_destroy_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x369): undefined reference to `png_set_gamma'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x37e): undefined reference to `png_set_expand'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x39a): undefined reference to `png_destroy_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x3ae): undefined reference to `png_set_expand'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x3cd): undefined reference to `png_destroy_read_struct'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x3e6): undefined reference to `png_set_strip_16'
/usr/lib/x86_64-linux-gnu/libXm.a(Png.o): In function
`png_load_file.constprop.0':
(.text+0x3f6): undefined reference to `png_set_expand'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`SetSessionProperties':
(.text+0x2158): undefined reference to `SmcSetProperties'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`SetSessionProperties':
(.text+0x221d): undefined reference to `SmcSetProperties'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`SetSessionProperties':
(.text+0x22ab): undefined reference to `SmcDeleteProperties'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtInteractPermission':
(.text+0x346b): undefined reference to `SmcInteractDone'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`StopManagingSession.isra.10':
(.text+0x3499): undefined reference to `SmcCloseConnection'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `GetIceEvent':
(.text+0x35ac): undefined reference to `SmcGetIceConnection'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `GetIceEvent':
(.text+0x35b8): undefined reference to `IceProcessMessages'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `JoinSession':
(.text+0x3864): undefined reference to `SmcModifyCallbacks'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `JoinSession':
(.text+0x3870): undefined reference to `SmcClientID'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `JoinSession':
(.text+0x38c1): undefined reference to `SmcGetIceConnection'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `JoinSession':
(.text+0x38c9): undefined reference to `IceConnectionNumber'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `JoinSession':
(.text+0x3a29): undefined reference to `SmcOpenConnection'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtSessionReturnToken':
(.text+0x4792): undefined reference to `SmcInteractDone'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtSessionReturnToken':
(.text+0x47ce): undefined reference to `SmcInteractRequest'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtSessionReturnToken':
(.text+0x4847): undefined reference to `SmcSaveYourselfDone'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtSessionReturnToken':
(.text+0x4880): undefined reference to `SmcRequestSaveYourselfPhase2'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function `CallSaveCallbacks':
(.text+0x48b2): undefined reference to `SmcSaveYourselfDone'
/usr/lib/x86_64-linux-gnu/libXt.a(Shell.o): In function
`XtCallCancelCallbacks':
(.text+0x49fb): undefined reference to `SmcSaveYourselfDone'
/usr/lib/x86_64-linux-gnu/libX11.a(ClDisplay.o): In function
`XCloseDisplay':
(.text+0xd3): undefined reference to `xcb_disconnect'
/usr/lib/x86_64-linux-gnu/libX11.a(OpenDis.o): In function `OutOfMemory':
(.text+0x444): undefined reference to `xcb_disconnect'
/usr/lib/x86_64-linux-gnu/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0x87c): undefined reference to `xcb_get_setup'
/usr/lib/x86_64-linux-gnu/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0xe36): undefined reference to `xcb_get_maximum_request_length'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x14c): undefined reference to `xcb_parse_display'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1be): undefined reference to
`xcb_connect_to_display_with_auth_info'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1de): undefined reference to `xcb_get_file_descriptor'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1fb): undefined reference to `xcb_generate_id'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x26e): undefined reference to `xcb_connection_has_error'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x286): undefined reference to `xcb_connect'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `require_socket':
(.text+0x6a3): undefined reference to `xcb_take_socket'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `poll_for_event':
(.text+0x824): undefined reference to `xcb_poll_for_event'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function
`poll_for_response':
(.text+0x920): undefined reference to `xcb_poll_for_reply'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XSend':
(.text+0xbb2): undefined reference to `xcb_writev'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XEventsQueued':
(.text+0xc7d): undefined reference to `xcb_connection_has_error'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XReadEvents':
(.text+0xd9a): undefined reference to `xcb_connection_has_error'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XReadEvents':
(.text+0xe34): undefined reference to `xcb_wait_for_event'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XAllocIDs':
(.text+0xfaf): undefined reference to `xcb_generate_id'
/usr/lib/x86_64-linux-gnu/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x113d): undefined reference to `xcb_wait_for_reply'
collect2: error: ld returned 1 exit status
/home/epics-admin/Documents/base-3.15.5/configure/RULES_BUILD:201:
recipe for target 'medm' failed
make[2]: *** [medm] Error 1
make[2]: Leaving directory
'/home/epics-admin/Documents/areaDetector/epics-extensions/medm/medm/O.linux-x86_64'
/home/epics-admin/Documents/base-3.15.5/configure/RULES_ARCHS:58: recipe
for target 'install.linux-x86_64' failed
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory
'/home/epics-admin/Documents/areaDetector/epics-extensions/medm/medm'
/home/epics-admin/Documents/base-3.15.5/configure/RULES_DIRS:84: recipe
for target 'medm.install' failed
make: *** [medm.install] Error 2
###