salsaman / LiVES

LiVES is a feature rich application which combines elements of VJ and video editing software. The current version runs on Linux / BSD. Check_out_the_new_discussion_area https://github.com/salsaman/LiVES/discussions
http://lives-video.com
GNU General Public License v3.0
89 stars 11 forks source link

Compilation in the debug mode fails: ld: error: undefined symbol: lives_dialog_new #30

Closed yurivict closed 3 years ago

yurivict commented 3 years ago
libtool: link: cc -fcommon -fPIE -Wstrict-aliasing=0 -Wall -DHAVE_YUV4MPEG=1 -I/usr/local/include/liboil-0.3 -DENABLE_OIL=1 -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/libepoll-shim -D_THREAD_SAFE -pthread -DHAVE_WAYLAND=1 -DLIBAV_TRANSCODE=1 -DIS_FREEBSD=1 -DENABLE_OSC=1 -I/usr/local/include/libpng16 -DUSE_LIBPNG=1 -I/usr/local/include -I/usr/local/include -DUSE_SWSCALE=1 -DENABLE_JACK=1 -I/usr/local/include -DENABLE_JACK_TRANSPORT=1 -DENABLE_GIW=1 -DNEED_LOCAL_WEED=1 -DNEED_LOCAL_WEED_UTILS=1 -DNEED_LOCAL_WEED_COMPAT=1 -DLIVES_LIBDIR=\"/usr/local/lib\" -DHAVE_LADSPA=1 -DHAVE_WEBM=1 -DHAVE_LINUX_JOYSTICK_H=1 -pipe -fno-omit-frame-pointer -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -pthread -fstack-protector-strong -o .libs/lives-exe rpmalloc.o widget-helper.o alarms.o messaging.o maths.o main.o support.o effects.o lsd-tab.o plugins.o effects-weed.o effects-data.o framedraw.o interface.o paramspecial.o paramwindow.o rfx-builder.o lives-yuv4mpeg.o preferences.o rte_window.o gui.o ce_thumbs.o htmsocket.o merge.o cliphandler.o dialogs.o saveplay.o player.o audio.o events.o resample.o osc.o omc-learn.o callbacks.o colourspace.o keyboard.o utils.o multitrack.o multitrack-gui.o stream.o cvirtual.o startup.o pangotext.o memory.o threading.o machinestate.o filesystem.o lists.o weed-effects-utils.o diagnostics.o transcode.o jack.o giw/giwknob.o giw/giwvslider.o giw/giwled.o giw/giwtimeline.o -pthread  -L/usr/local/lib -lgtk-3 -latk-1.0 -lgio-2.0 -lrt -loil-0.3 -lX11 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lpthread -lgobject-2.0 -lmjpegutils ../libOSC/.libs/libOSC.a ../libOSC/client/.libs/libOSC_client.a -ljack -ljackserver -lpng16 -lz -lswscale -lavutil /usr/ports/multimedia/lives/work/LiVES-3.2.0-124-g86cae9fd/libweed/.libs/libweed_gslice.so /usr/ports/multimedia/lives/work/LiVES-3.2.0-124-g86cae9fd/libweed/.libs/libweed-utils.so -lm -ldl -lglib-2.0 -lintl -pthread -Wl,-rpath -Wl,/usr/local/lib
ld: error: undefined symbol: lives_dialog_new
>>> referenced by widget-helper.c:9961
>>>               widget-helper.o:(lives_standard_dialog_new)

ld: error: undefined symbol: lives_tool_button_get_icon_widget
>>> referenced by widget-helper.c:12502
>>>               widget-helper.o:(lives_tool_button_set_border_color)
>>> did you mean: lives_tool_button_set_icon_widget
>>> defined in: widget-helper.o

Revision: 3.2.0-124-g86cae9fd OS: FreeBSD 12.2

salsaman commented 3 years ago

I am not sure what you mean. LiVES doesn't have a debug mode.

yurivict commented 3 years ago

When externally supplied compiler options change from -O2 to -g - it fails to compile with the above error.

salsaman commented 3 years ago

-g is profiling mode is it not ?

salsaman commented 3 years ago

I got confused, I was thinking of -pg

salsaman commented 3 years ago

OK, just need to add the missing function prototypes to headers.

salsaman commented 3 years ago

https://github.com/salsaman/LiVES/commit/9f73bec6f6106dae920e7138a48ff79e413fe83d