Luz

Error compiling and..

Bug #1093046 reported by mr hed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Luz
Incomplete
Undecided
Unassigned

Bug Description

im having an error compiling and running luz_performer.rb on latest slackware64 manually updated to newest glibmm gtmm and such first error on compilation of the spectrum analyzer

make
for dir in input-manager spectrum-analyzer; do make -C $dir all; done
make[1]: Entering directory `/luz/input-manager'
gcc -o input-manager *.cc -lX11 -pthread -lcwiimote -lportmidi -lporttime -I/usr/include/libcwiimote `pkg-config gtkmm-2.4 unique-1.0 liblo sdl bluez --cflags --libs`
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: /tmp/ccCXjzjJ.o: undefined reference to symbol '_ZNKSs5c_strEv@@GLIBCXX_3.4'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: note: '_ZNKSs5c_strEv@@GLIBCXX_3.4' is defined in DSO /usr/lib64/libstdc++.so.6 so try adding it to the linker command line
/usr/lib64/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [input-manager] Error 1
make[1]: Leaving directory `/luz/input-manager'
make[1]: Entering directory `/luz/spectrum-analyzer'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/luz/spectrum-analyzer'

this is the error i get when starting luz_performer.rb --fullscreen or any other option for that matter

ruby luz_performer.rb --fullscreen
Using SDL version 2.1.2
Running at 1680x1050 @ 32bpp, 60fps (max)
- Inlining common methods...
/luz/utils/addons_inline.rb: In function 'scale':
/luz/utils/addons_inline.rb:24:45: error: 'struct RFloat' has no member named 'value'
/luz/utils/addons_inline.rb: In function 'clamp':
/luz/utils/addons_inline.rb:29:28: error: 'struct RFloat' has no member named 'value'
/luz/utils/addons_inline.rb: In function 'scale':
/luz/utils/addons_inline.rb:25:4: warning: control reaches end of non-void function [-Wreturn-type]
error loading ruby-inline: error executing "gcc -shared -fPIC -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC -L. -rdynamic -Wl,-export-dynamic -I /usr/include/ruby-1.9.1 -I /usr/include/ruby-1.9.1/x86_64-linux -I /usr/include -L/usr/lib64 -o \"/root/.ruby_inline/ruby-1.9.1/Inline_Float_eb55dea0336161e0e9a8f454fc49b7e4.so\" \"/root/.ruby_inline/ruby-1.9.1/Inline_Float_eb55dea0336161e0e9a8f454fc49b7e4.c\" ": pid 16528 exit 1
Renamed /root/.ruby_inline/ruby-1.9.1/Inline_Float_eb55dea0336161e0e9a8f454fc49b7e4.c to /root/.ruby_inline/ruby-1.9.1/Inline_Float_eb55dea0336161e0e9a8f454fc49b7e4.c.bad
/luz/plugins/project_effects/screen-capture.luz.rb:27: warning: already initialized constant RAW_IMAGE_ENCODER_NAME
/luz/engine/project.rb:118:in `initialize': No such file or directory - --fullscreen (Errno::ENOENT)
        from /luz/engine/project.rb:118:in `open'
        from /luz/engine/project.rb:118:in `append_from_path'
        from /luz/engine/project.rb:111:in `load_from_path'
        from /luz/engine/engine.rb:295:in `load_from_path'
        from luz_performer.rb:243:in `<main>'

im really stuck so some help would be appreciated

mr hed (mrhedx)
Changed in luz:
status: New → Incomplete
Revision history for this message
Ian McIntosh (ian-mcintosh) wrote :

Hi there,

Thanks for the bug report!

For the first problem, it seems to suggest you include libstdc++ in the compilation; have you tried that? You might be able to put it right in the pkg-config line.

The second problem is easy to avoid, as ruby-inline is completely optional. Just make it unavailable or comment out the line in Luz that 'requires' it.

Hope that helps!

Revision history for this message
mr hed (mrhedx) wrote :

actually to get to get to that point to make it past all the other compiling errors i included libstdc++ and the above is the result where im stuck

Revision history for this message
mr hed (mrhedx) wrote :

this is what the error looks like without libstdc++ in teh linker command
make
for dir in input-manager spectrum-analyzer; do make -C $dir all; done
make[1]: Entering directory `/root/luz/input-manager'
gcc -o input-manager *.cc -pthread -lcwiimote -lportmidi -lporttime -I/usr/include/libcwiimote `pkg-config gtkmm-2.4 unique-1.0 liblo sdl bluez --cflags --libs`
input-joystick.cc: In member function 'virtual void InputJoystick::sleep()':
input-joystick.cc:139:17: error: 'usleep' was not declared in this scope
make[1]: *** [input-manager] Error 1
make[1]: Leaving directory `/root/luz/input-manager'
make[1]: Entering directory `/root/luz/spectrum-analyzer'
gcc -o spectrum-analyzer *.cc -lasound -lm `pkg-config --cflags --libs fftw3 gl glu liblo gtkmm-2.4 gtkglextmm-1.2`
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: /tmp/ccODSvSz.o: undefined reference to symbol '__cxa_begin_catch@@CXXABI_1.3'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: note: '__cxa_begin_catch@@CXXABI_1.3' is defined in DSO /usr/lib64/libstdc++.so.6 so try adding it to the linker command line
/usr/lib64/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [spectrum-analyzer] Error 1
make[1]: Leaving directory `/root/luz/spectrum-analyzer'
make: *** [all] Error 2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.