Author Topic: RPI compile errors on jessie after compiling ffmpeg.  (Read 3777 times)

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
RPI compile errors on jessie after compiling ffmpeg.
« on: April 15, 2016, 03:57:09 PM »
So I think I broke jessie because ffmpeg uses a different version of libjpeg than comes with jessie.
any ideas anyone?

Thanks.

Code: [Select]
root@DietPi:~/develop/attract# make USE_GLES=1
flags: -Wl,--export-dynamic -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -I/opt/vc/include -L/opt/vc/lib -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/freetype2 -I/usr/include/AL  -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/gameswf  -DFE_RPI -DUSE_GLES -DUSE_FONTCONFIG -DUSE_SWRESAMPLE
fatal: No names found, cannot describe anything.
mkdir -p obj
Compiling obj/fe_base.o...
Compiling obj/fe_util.o...
Compiling obj/fe_util_sq.o...
Compiling obj/fe_cmdline.o...
Compiling obj/fe_info.o...
Compiling obj/fe_input.o...
Compiling obj/fe_romlist.o...
Compiling obj/fe_settings.o...
Compiling obj/scraper_xml.o...
Compiling obj/scraper_general.o...
Compiling obj/scraper_net.o...
Compiling obj/fe_config.o...
Compiling obj/fe_presentable.o...
Compiling obj/fe_present.o...
Compiling obj/sprite.o...
Compiling obj/fe_image.o...
Compiling obj/fe_sound.o...
Compiling obj/fe_shader.o...
Compiling obj/fe_overlay.o...
Compiling obj/fe_window.o...
Compiling obj/tp.o...
Compiling obj/fe_text.o...
Compiling obj/fe_listbox.o...
Compiling obj/fe_vm.o...
Compiling obj/zip.o...
Compiling obj/main.o...
Compiling obj/fe_net.o...
Compiling obj/swf.o...
In file included from /usr/include/c++/4.9/backward/hash_map:60:0,
                 from extlibs/gameswf/base/container.h:75,
                 from extlibs/gameswf/base/tu_file.h:18,
                 from src/swf.cpp:26:
/usr/include/c++/4.9/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^
Compiling obj/media.o...
mkdir -p obj/squirrel
Compiling obj/squirrel/sqapi.o...
Compiling obj/squirrel/sqbaselib.o...
Compiling obj/squirrel/sqfuncstate.o...
Compiling obj/squirrel/sqdebug.o...
Compiling obj/squirrel/sqlexer.o...
Compiling obj/squirrel/sqobject.o...
Compiling obj/squirrel/sqcompiler.o...
Compiling obj/squirrel/sqstate.o...
Compiling obj/squirrel/sqtable.o...
Compiling obj/squirrel/sqmem.o...
Compiling obj/squirrel/sqvm.o...
Compiling obj/squirrel/sqclass.o...
Archiving obj/libsquirrel.a...
mkdir -p obj/sqstdlib
Compiling obj/sqstdlib/sqstdblob.o...
Compiling obj/sqstdlib/sqstdio.o...
Compiling obj/sqstdlib/sqstdstream.o...
Compiling obj/sqstdlib/sqstdmath.o...
Compiling obj/sqstdlib/sqstdstring.o...
Compiling obj/sqstdlib/sqstdaux.o...
Compiling obj/sqstdlib/sqstdsystem.o...
Compiling obj/sqstdlib/sqstdrex.o...
Archiving obj/libsqstdlib.a...
mkdir -p obj/gsbaselib
Compiling obj/gsbaselib/configvars.o...
Compiling obj/gsbaselib/ear_clip_triangulate_float.o...
Compiling obj/gsbaselib/ear_clip_triangulate_sint16.o...
Compiling obj/gsbaselib/container.o...
Compiling obj/gsbaselib/file_util.o...
Compiling obj/gsbaselib/image.o...
Compiling obj/gsbaselib/image_filters.o...
Compiling obj/gsbaselib/jpeg.o...
Compiling obj/gsbaselib/logger.o...
Compiling obj/gsbaselib/membuf.o...
Compiling obj/gsbaselib/postscript.o...
Compiling obj/gsbaselib/triangulate_float.o...
Compiling obj/gsbaselib/triangulate_sint32.o...
Compiling obj/gsbaselib/tu_file.o...
Compiling obj/gsbaselib/tu_gc_singlethreaded_marksweep.o...
Compiling obj/gsbaselib/tu_loadlib.o...
Compiling obj/gsbaselib/tu_random.o...
Compiling obj/gsbaselib/tu_timer.o...
Compiling obj/gsbaselib/tu_types.o...
Compiling obj/gsbaselib/utf8.o...
Compiling obj/gsbaselib/utility.o...
Compiling obj/gsbaselib/zlib_adapter.o...
mkdir -p obj/gameswflib
mkdir -p obj/gameswflib/gameswf_as_classes
Compiling obj/gameswflib/gameswf_as_classes/as_array.o...
Compiling obj/gameswflib/gameswf_as_classes/as_boolean.o...
Compiling obj/gameswflib/gameswf_as_classes/as_broadcaster.o...
Compiling obj/gameswflib/gameswf_as_classes/as_class.o...
Compiling obj/gameswflib/gameswf_as_classes/as_color.o...
Compiling obj/gameswflib/gameswf_as_classes/as_color_transform.o...
Compiling obj/gameswflib/gameswf_as_classes/as_date.o...
Compiling obj/gameswflib/gameswf_as_classes/as_event.o...
Compiling obj/gameswflib/gameswf_as_classes/as_flash.o...
Compiling obj/gameswflib/gameswf_as_classes/as_geom.o...
Compiling obj/gameswflib/gameswf_as_classes/as_global.o...
Compiling obj/gameswflib/gameswf_as_classes/as_key.o...
Compiling obj/gameswflib/gameswf_as_classes/as_loadvars.o...
Compiling obj/gameswflib/gameswf_as_classes/as_math.o...
Compiling obj/gameswflib/gameswf_as_classes/as_matrix.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mcloader.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mouse.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mouse_event.o...
Compiling obj/gameswflib/gameswf_as_classes/as_netconnection.o...
Compiling obj/gameswflib/gameswf_as_classes/as_netstream.o...
Compiling obj/gameswflib/gameswf_as_classes/as_number.o...
Compiling obj/gameswflib/gameswf_as_classes/as_point.o...
Compiling obj/gameswflib/gameswf_as_classes/as_selection.o...
Compiling obj/gameswflib/gameswf_as_classes/as_sharedobject.o...
Compiling obj/gameswflib/gameswf_as_classes/as_sound.o...
Compiling obj/gameswflib/gameswf_as_classes/as_string.o...
Compiling obj/gameswflib/gameswf_as_classes/as_textformat.o...
Compiling obj/gameswflib/gameswf_as_classes/as_transform.o...
Compiling obj/gameswflib/gameswf_as_classes/as_xml.o...
Compiling obj/gameswflib/gameswf_as_classes/as_xmlsocket.o...
Compiling obj/gameswflib/gameswf_abc.o...
Compiling obj/gameswflib/gameswf_action.o...
Compiling obj/gameswflib/gameswf_avm2.o...
Compiling obj/gameswflib/gameswf_as_sprite.o...
Compiling obj/gameswflib/gameswf_button.o...
Compiling obj/gameswflib/gameswf_canvas.o...
Compiling obj/gameswflib/gameswf_character.o...
Compiling obj/gameswflib/gameswf_disasm.o...
Compiling obj/gameswflib/gameswf_dlist.o...
Compiling obj/gameswflib/gameswf_environment.o...
Compiling obj/gameswflib/gameswf_filters.o...
Compiling obj/gameswflib/gameswf_font.o...
Compiling obj/gameswflib/gameswf_function.o...
Compiling obj/gameswflib/gameswf_impl.o...
Compiling obj/gameswflib/gameswf_listener.o...
Compiling obj/gameswflib/gameswf_log.o...
Compiling obj/gameswflib/gameswf_morph2.o...
Compiling obj/gameswflib/gameswf_movie_def.o...
Compiling obj/gameswflib/gameswf_object.o...
Compiling obj/gameswflib/gameswf_player.o...
Compiling obj/gameswflib/gameswf_render.o...
Compiling obj/gameswflib/gameswf_root.o...
Compiling obj/gameswflib/gameswf_shape.o...
Compiling obj/gameswflib/gameswf_sound.o...
Compiling obj/gameswflib/gameswf_sprite.o...
Compiling obj/gameswflib/gameswf_sprite_def.o...
Compiling obj/gameswflib/gameswf_stream.o...
Compiling obj/gameswflib/gameswf_styles.o...
Compiling obj/gameswflib/gameswf_tesselate.o...
Compiling obj/gameswflib/gameswf_text.o...
Compiling obj/gameswflib/gameswf_tools.o...
Compiling obj/gameswflib/gameswf_types.o...
Compiling obj/gameswflib/gameswf_value.o...
Compiling obj/gameswflib/gameswf_video_impl.o...
Compiling obj/gameswflib/gameswf_mutex.o...
Compiling obj/gameswflib/gameswf_sound_handler_openal.o...
Compiling obj/gameswflib/gameswf_freetype.o...
Compiling obj/gameswflib/gameswf_render_handler_ogles.o...
Archiving obj/libgameswf.a...
mkdir -p obj/audiolib
Compiling obj/audiolib/ALCheck.o...
Compiling obj/audiolib/AudioDevice.o...
Compiling obj/audiolib/Listener.o...
Compiling obj/audiolib/SoundSource.o...
Compiling obj/audiolib/SoundStream.o...
Archiving obj/libaudio.a...
Creating executable: attract
/usr/bin/ld: warning: libjpeg.so.8, needed by /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libsfml-graphics.so, may conflict with libjpeg.so.62
obj/fe_image.o: In function `FeTextureContainer::fix_masked_image()':
fe_image.cpp:(.text+0x10b4): undefined reference to `sf::Image::~Image()'
fe_image.cpp:(.text+0x1120): undefined reference to `sf::Image::~Image()'
obj/fe_window.o: In function `FeWindow::initial_create()':
fe_window.cpp:(.text+0x1e4): undefined reference to `sf::Window::setSize(sf::Vector2<unsigned int> const&)'
obj/main.o: In function `main':
main.cpp:(.text.startup+0xc94): undefined reference to `sf::Image::~Image()'
main.cpp:(.text.startup+0x197c): undefined reference to `sf::Image::~Image()'
collect2: error: ld returned 1 exit status
Makefile:420: recipe for target 'attract' failed
make: *** [attract] Error 1

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #1 on: April 15, 2016, 10:59:22 PM »
I think like 2 people on the internet have successfully compiled ffmpeg with HWaccel enabled.

h0tw1r3

  • Full Member
  • ***
  • Posts: 31
  • Hackety hack
    • View Profile
    • Latest Builds
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #2 on: April 16, 2016, 07:56:04 PM »
The only (perhaps obvious) question would be, what package on the system is requiring libjpeg.so.62, and can it be compiled against libjpeg.so.8?

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #3 on: April 16, 2016, 09:14:22 PM »
The only (perhaps obvious) question would be, what package on the system is requiring libjpeg.so.62, and can it be compiled against libjpeg.so.8?

Ffmpeg i believe.
However attractmode for Jessie was reformulated to use jpegturbo so that's the issue.
But since I've now determined ffmpeg with Hardware acceleration is not going to happen I think I can just mark this as solved and build my RPI image without it.

vthyng

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #4 on: August 15, 2016, 10:21:52 PM »
Could you clarify what you did to resolve the linking error?  apt-get purge ffmpeg? 

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #5 on: August 16, 2016, 06:46:05 AM »
Could you clarify what you did to resolve the linking error?  apt-get purge ffmpeg?

I honestly can't remember.
I figured out in April that it wasn't going to do what I wanted so just went with distro default ffpmeg.

vthyng

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: RPI compile errors on jessie after compiling ffmpeg.
« Reply #6 on: August 18, 2016, 08:02:48 PM »
ok, for posterity, I had the problem when I followed the non X windows jessie pi compile instructions here
https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29
But had done:
apt-get update
apt-get upgrade

I re did the instructions only doing:
apt-get update

update is required because versions of packages have changed since the package indexes were loaded in the jessie pi image, however it looks to me like a package that gets upgraded introduces a library problem.

Vince