WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Building ZynAddSubFx: packages ntk / ntk_images not found  (Read 3533 times)

Offline roMancer

  • Newbie
  • *
  • Posts: 3
Building ZynAddSubFx: packages ntk / ntk_images not found
« on: November 22, 2014, 06:56:37 AM »
hi all :) (my first post here)

i'm trying to build zynaddsubfx from scratch. (zynaddsubfx 2.4.4 with mxml 2.5 - all other components from tc 5.x repo)
i got pretty far,  pretty much all dependencies met, and it kinda builds (cmake, make).
but what still seems to be missing is a GUI.

i have installed fltk, fltk-dev, and fluid
now when building zynaddsubfx with default config, it says (among other things):
-- Found FLTK: /usr/local/lib/libfltk_images.so;/usr/local/lib/libfltk_forms.so;/usr/local/lib/libfltk.so
-- -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lfltk_images -lpng -lz -ljpeg -lfltk -lpthread -ldl -lm -lXext -lX11
-- Will build FLTK gui
-- using link directories: /usr/local/lib  /usr/local/lib /usr/local/lib
-- Link libraries: /usr/lib/libz.so  mxml /usr/local/lib/libasound.so;jack         <- fltk missing here?
...but compilations shows some errors, and linking fails with errors like this:
UI/libzynaddsubfx_gui.a(NioUI.cpp.o):(.data.rel.ro._ZTI5NioUI[_ZTI5NioUI]+0x8): undefined reference to `typeinfo for Fl_Window'

this, to me, looks like some lib or linker option is missing.
can someone point me to what I have to edit or add or change?


i also have installed ntk and ntk-dev (for alternative GUI)
but these are - weirdly - not found by zynaddsubfx.
all other packages I installed are found (jack, mxml, fftw3, ...)
at /usr/local/lib/pkgconfig (I assume) and there's also ntk.pc, ntk_gl.pc, ntk_images.pc there
but still zynaddsubfx complains
-- checking for module 'ntk'
--   package 'ntk' not found
-- checking for module 'ntk_images'
--   package 'ntk_images' not found
what really seems weird to me is that in zynaddsubfx/src/CMakeLists.txt I can see that checking for jack, mxml, ... is exactly the same function "pkg_check_modules" as checking for ntk and ntk_images:
   #Dependency check
   pkg_check_modules(MXML REQUIRED mxml)    <-  found
   pkg_check_modules(JACK jack)                       <- found
   pkg_check_modules(NTK ntk)                            <- not found
   pkg_check_modules(NTK_IMAGES ntk_images)         <- not found

any ideas why ntk and ntk_images cannot  be found?


thanks, regards,
Ro
« Last Edit: November 22, 2014, 07:19:16 AM by roMancer »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Building ZynAddSubFx: packages ntk / ntk_images not found
« Reply #1 on: November 22, 2014, 09:49:11 AM »
You need to have -fno-rtti -fno-exceptions in your CXXFLAGS.
The only barriers that can stop you are the ones you create yourself.

Offline roMancer

  • Newbie
  • *
  • Posts: 3
Re: Building ZynAddSubFx: packages ntk / ntk_images not found
« Reply #2 on: November 22, 2014, 01:27:49 PM »
hi,
could you please explain a little more?
what's happening with -fno-rtti -fno-exceptions in CXXFLAGS

when I build zynaddsubfx it says 'CXX... not found', but no error message.

do I have to install some other package/.tcz?

thanks, regards, Ro

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Building ZynAddSubFx: packages ntk / ntk_images not found
« Reply #3 on: November 22, 2014, 03:03:28 PM »
FLTK is built with those options, and usually they're copied from fltk-config, but your package seems not to be well behaved. Add those to your CXXFLAGS before configuring the package.
The only barriers that can stop you are the ones you create yourself.

Offline roMancer

  • Newbie
  • *
  • Posts: 3
Re: Building ZynAddSubFx: packages ntk / ntk_images not found
« Reply #4 on: November 23, 2014, 04:12:16 AM »
hm, i fear this  wasn't it.

i set the options  in 'ccmake .' -> '[t] toggle advanced mode' -> 'CMAKE_CXX_FLAGS' -> '-fno-rtti -fno-exceptions '
=> compiler error:
/home/tc/zynaddsubfx-2.4.4/src/Nio/OutMgr.cpp: In member function 'AudioOut* OutMgr::getOut(std::string)':
/home/tc/zynaddsubfx-2.4.4/src/Nio/OutMgr.cpp:80:74: error: 'dynamic_cast' not permitted with -fno-rtti
/home/tc/zynaddsubfx-2.4.4/src/Nio/OutMgr.cpp:81:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [src/Nio/CMakeFiles/zynaddsubfx_nio.dir/OutMgr.cpp.o] Error 1
make[1]: *** [src/Nio/CMakeFiles/zynaddsubfx_nio.dir/all] Error 2
make: *** [all] Error 2

tried without -fno-rtti: 'ccmake .' -> '[t] toggle advanced mode' -> 'CMAKE_CXX_FLAGS' -> '-fno-exceptions '
=> same errors as mentioned in my initial post

and ntk and ntk_images still not found.