WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help with pyfltk  (Read 2709 times)

Offline gplombardi

  • Newbie
  • *
  • Posts: 4
Help with pyfltk
« on: January 23, 2014, 06:15:19 AM »
Hi,
I need to install pyfltk on tinycore, i try to compile pyfltk 1.1.5 (fltk installed on tiny is 1.1 version..)
Compilation success,but when i try to load module on python i get this message:
"
ImportError: /usr/local/lib/python2.7/site-packages/filtk/_fltk.so: undefined symbol: _ZTI9Fl_Widget
"
Does anyone know what it means?

Please,help.

Thanks!


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Help with pyfltk
« Reply #1 on: January 23, 2014, 06:22:13 AM »
What does:
Code: [Select]
$ ldd /usr/local/lib/python2.7/site-packages/filtk/_fltk.so..give?

Offline gplombardi

  • Newbie
  • *
  • Posts: 4
Re: Help with pyfltk
« Reply #2 on: January 23, 2014, 08:36:03 AM »
Tahanks for reply, this is output of ldd:
tc@box~$: /usr/local/lib/python2.7/site-packages/fltk $ ldd _fltk.so

   linux-gate.so.1 (0xb77a5000)
   libfltk_images.so.1.1 => /usr/local/lib/libfltk_images.so.1.1 (0xb7563000)
   libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0xb753c000)
   libz.so.1 => /usr/lib/libz.so.1 (0xb752b000)
   libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0xb74f0000)
   libfltk_forms.so.1.1 => /usr/local/lib/libfltk_forms.so.1.1 (0xb74ea000)
   libfltk.so.1.1 => /usr/local/lib/libfltk.so.1.1 (0xb7472000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xb745c000)
   libdl.so.2 => /lib/libdl.so.2 (0xb7458000)
   libXext.so.6 => /usr/local/lib/libXext.so.6 (0xb744b000)
   libX11.so.6 => /usr/local/lib/libX11.so.6 (0xb7351000)
   libpython2.7.so.1.0 => /usr/local/lib/libpython2.7.so.1.0 (0xb71b4000)
   libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb70f7000)
   libm.so.6 => /lib/libm.so.6 (0xb70c0000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb70ab000)
   libc.so.6 => /lib/libc.so.6 (0xb6f8e000)
   /lib/ld-linux.so.2 (0xb77a6000)
   libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0xb6f75000)
   libXau.so.6 => /usr/local/lib/libXau.so.6 (0xb6f72000)
   libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0xb6f6d000)
   libutil.so.1 => /lib/libutil.so.1 (0xb6f69000)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Help with pyfltk
« Reply #3 on: January 23, 2014, 10:16:25 AM »
If you run that through c++filt, it says it's "typeinfo for Fl_Widget". Typeinfo means RTTI, which is a c++ feature FLTK does not use, and so disabled in our build, as it saves some cpu and library size.

So depending on how pyfltk works, if it needs RTTI itself you need a custom FLTK build; if it does not, then you just need to add -fno-rtti to pyfltk's build flags.
The only barriers that can stop you are the ones you create yourself.

Offline gplombardi

  • Newbie
  • *
  • Posts: 4
Re: Help with pyfltk
« Reply #4 on: January 24, 2014, 07:27:40 AM »
OK,
i rebuild fltk package (with -fno-rtti flag pyftlk failed..) and after load it,i have recompiled pyfltk without gl support.
Now it tell:
"ImportError: /usr/local/lib/python2.7/site-packages/fltk/fltk.so: undefined symbol: glBegin".
Thi is ldd of fltk.so:

   linux-gate.so.1 (0xb7767000)
   libfltk_images.so.1.1 => /usr/local/lib/libfltk_images.so.1.1 (0xb750b000)
   libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0xb74d0000)
   libfltk_forms.so.1.1 => /usr/local/lib/libfltk_forms.so.1.1 (0xb74cb000)
   libfltk.so.1.1 => /usr/local/lib/libfltk.so.1.1 (0xb7450000)
   libdl.so.2 => /lib/libdl.so.2 (0xb744b000)
   libXext.so.6 => /usr/local/lib/libXext.so.6 (0xb743e000)
   libX11.so.6 => /usr/local/lib/libX11.so.6 (0xb7345000)
   libpython2.7.so.1.0 => /usr/local/lib/libpython2.7.so.1.0 (0xb71a8000)
   libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb70eb000)
   libm.so.6 => /lib/libm.so.6 (0xb70b3000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb709e000)
   libc.so.6 => /lib/libc.so.6 (0xb6f81000)
   /lib/ld-linux.so.2 (0xb7768000)
   libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0xb6f69000)
   libXau.so.6 => /usr/local/lib/libXau.so.6 (0xb6f66000)
   libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0xb6f61000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xb6f4a000)
   libutil.so.1 => /lib/libutil.so.1 (0xb6f46000)


What can i do now?
Thanks

Offline gplombardi

  • Newbie
  • *
  • Posts: 4
Re: Help with pyfltk
« Reply #5 on: January 24, 2014, 08:23:31 AM »
OK, compiling pyfltk with gl support solve problem.
Now i'll try to build and load python-mysqldb......

Regards