Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build of lv2 failed - Debian Stretch #1333

Closed
tank-trax opened this issue Nov 22, 2019 · 18 comments
Closed

Build of lv2 failed - Debian Stretch #1333

tank-trax opened this issue Nov 22, 2019 · 18 comments

Comments

@tank-trax
Copy link
Collaborator

Creating target/lv2/Release/Surge.lv2
Linking surge-lv2
Running postbuild commands
python scripts/linux/generate-lv2-ttl.py target/lv2/Release/Surge.lv2/Surge.so
Traceback (most recent call last):
  File "scripts/linux/generate-lv2-ttl.py", line 18, in <module>
    dll = ctypes.cdll.LoadLibrary(dll_path)
  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
    return self._dlltype(name)
  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: target/lv2/Release/Surge.lv2/Surge.so: undefined symbol: cairo_xcb_surface_create
surge-lv2.make:203: recipe for target 'target/lv2/Release/Surge.lv2/Surge.so' failed
make[1]: *** [target/lv2/Release/Surge.lv2/Surge.so] Error 1
Makefile:55: recipe for target 'surge-lv2' failed
make: *** [surge-lv2] Error 2

** Build of lv2 failed**
SurgeError.cpp
tinyxmlerror.cpp
OSError: target/lv2/Release/Surge.lv2/Surge.so: undefined symbol: cairo_xcb_surface_create
make[1]: *** [target/lv2/Release/Surge.lv2/Surge.so] Error 1
make: *** [surge-lv2] Error 2

** Exiting failed lv2 build**
Complete information is in build_logs/build_lv2.log
@tank-trax
Copy link
Collaborator Author

just ran ....

./build-linux.sh -p lv2 build

and

Building surge-lv2 with output in build_logs/build_lv2.log
==== Building surge-lv2 (release_x64) ====
Running prebuild commands
python scripts/linux/emit-vector-piggy.py .
Build of surge-lv2 succeeded

@tank-trax
Copy link
Collaborator Author

and also...

./build-linux.sh -l install
Installing presets
Installing VST2
Installing VST3
Installing LV2
Installing Headless
rsync: change_dir "/home/studio/src/Surge-all/surge//target/headless/Release" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

@baconpaul
Copy link
Collaborator

Cool. I did adjust the windows.wt thing today

@tank-trax
Copy link
Collaborator Author

It didn't build the LV2 assets though
only the Surge.so plugin, no *.ttl files were created

@baconpaul
Copy link
Collaborator

OSError: target/lv2/Release/Surge.lv2/Surge.so: undefined symbol: cairo_xcb_surface_create

that's the problem

apt-get install cairo

maybe?

@baconpaul
Copy link
Collaborator

Or somehow get the cairo dll in your path consistently when the python runs.

@tank-trax
Copy link
Collaborator Author

I am pretty sure I have cairo installed. It never failed before.

As well it's completely freezing up Qtractor. So bad that I have to literally shut down the computer. Mind you it's a new build of Qtractor so not sure where the breakdown is. It does the same thing with Beatzille and Bazille. Have to reboot. Am commenting from another computer.

@tank-trax
Copy link
Collaborator Author

it freezes at DataPath is ~/Documents/Surge

@baconpaul
Copy link
Collaborator

Can you show me the full output? Also are you at head? I thought I commented that print out last night.

@tank-trax
Copy link
Collaborator Author

I tried a clean git clone and same issue

git log
commit 0b1caaf5efdeb32cb0489489e31806bd78f10cab

@baconpaul
Copy link
Collaborator

hmm well I was able to build it on ubuntu. Wonder what the difference is! Let me tag in @jpcima and @falkTX to see if they have an idea?

@tank-trax
Copy link
Collaborator Author

it must be some local issue. I have some weirdness happen like where I had to reinstall stuff because basic commands were not working... will check later

@tank-trax
Copy link
Collaborator Author

I just installed

libcairo-ocaml
libcairo-ocaml-dev
libenchant-dev
libglade2-dev
libgtkspell-dev
liblablgtk2-ocaml
liblablgtk2-ocaml-dev
liblablgtk2-ocaml-doc

still fails

x11platform.cpp
x11timer.cpp
x11utils.cpp
Creating target/lv2/Release/Surge.lv2
Linking surge-lv2
Running postbuild commands
python scripts/linux/generate-lv2-ttl.py target/lv2/Release/Surge.lv2/Surge.so
Traceback (most recent call last):
  File "scripts/linux/generate-lv2-ttl.py", line 18, in <module>
    dll = ctypes.cdll.LoadLibrary(dll_path)
  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
    return self._dlltype(name)
  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: target/lv2/Release/Surge.lv2/Surge.so: undefined symbol: cairo_xcb_surface_create
surge-lv2.make:203: recipe for target 'target/lv2/Release/Surge.lv2/Surge.so' failed
make[1]: *** [target/lv2/Release/Surge.lv2/Surge.so] Error 1
Makefile:55: recipe for target 'surge-lv2' failed
make: *** [surge-lv2] Error 2

** Build of lv2 failed**
SurgeError.cpp
tinyxmlerror.cpp
OSError: target/lv2/Release/Surge.lv2/Surge.so: undefined symbol: cairo_xcb_surface_create
make[1]: *** [target/lv2/Release/Surge.lv2/Surge.so] Error 1
make: *** [surge-lv2] Error 2

** Exiting failed lv2 build**
Complete information is in build_logs/build_lv2.log

@tank-trax
Copy link
Collaborator Author

how can I build previous commit?

@tank-trax
Copy link
Collaborator Author

why is it lurking in my conda folder???

  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
    return self._dlltype(name)
  File "/home/studio/miniconda2/lib/python2.7/ctypes/__init__.py", line 366, in __init__

@tank-trax
Copy link
Collaborator Author

I think I found it

@tank-trax
Copy link
Collaborator Author

tank-trax commented Nov 23, 2019

I set up my environment to use conda activate and it was set up to be enabled at log in

ran conda deactivate to exit the python shell and it built

sorry :-)

@baconpaul
Copy link
Collaborator

Oh yeah I should have thought of that! Your python environment needs to be able to find Cairo.
Glad you got it sorted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants