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 5.6.0 fails on Linux #535

Open
Taikakim opened this issue Jan 24, 2023 · 0 comments
Open

Build of 5.6.0 fails on Linux #535

Taikakim opened this issue Jan 24, 2023 · 0 comments

Comments

@Taikakim
Copy link

I tried to compile this, but first thing was that the references to the VST3 version were causing the make to fail.
I did git clone, and then ran the post-commit script. Everything seemed to compile fine after commenting out lines
336 and 351-361 from the makefile, except until the very end.

The self-extractible script was created, but in the directory it creates only the "Panels" and "Doc" directories exist.

Linking Ctrlr - Shared Code
Linking Ctrlr - VST
Linking Ctrlr - Standalone Plugin
/usr/bin/ld: build/Ctrlr.a(lua_260ca39c.o): in function `os_tmpname':
lua.c:(.text+0x1d075): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: build/Ctrlr.a(lua_260ca39c.o): in function `os_tmpname':
lua.c:(.text+0x1d075): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `createKeyEvent(_XDisplay*, unsigned long&, unsigned long&, bool, int, int)':
keys.cpp:(.text+0x4e): undefined reference to `XKeysymToKeycode'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `ctrlr_sendKeyPressEvent(juce::KeyPress const&)':
keys.cpp:(.text+0xb9): undefined reference to `XOpenDisplay'
/usr/bin/ld: keys.cpp:(.text+0xd5): undefined reference to `XDefaultRootWindow'
/usr/bin/ld: keys.cpp:(.text+0xea): undefined reference to `XGetInputFocus'
/usr/bin/ld: keys.cpp:(.text+0x19f): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x23b): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x247): undefined reference to `XCloseDisplay'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `createKeyEvent(_XDisplay*, unsigned long&, unsigned long&, bool, int, int)':
keys.cpp:(.text+0x4e): undefined reference to `XKeysymToKeycode'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `ctrlr_sendKeyPressEvent(juce::KeyPress const&)':
keys.cpp:(.text+0xb9): undefined reference to `XOpenDisplay'
/usr/bin/ld: keys.cpp:(.text+0xd5): undefined reference to `XDefaultRootWindow'
/usr/bin/ld: keys.cpp:(.text+0xea): undefined reference to `XGetInputFocus'
/usr/bin/ld: keys.cpp:(.text+0x19f): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x23b): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x247): undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
make: *** [Makefile:370: build/Ctrlr] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make: *** [Makefile:347: build/Ctrlr.so] Error 1
CTRLR[linux]: build failed

CTRLR[linux]: Building for x86_64, JOBS 4
CTRLR[linux]: Compile PCH
stadfx.h
stdafx_luabind.h
In file included from /usr/include/boost/bind.hpp:30,
                 from ../../Source/Misc/luabind/luabind/class.hpp:94,
                 from ../../Source/Core/stdafx_luabind.h:20:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
CTRLR[linux]: Build now

Linking Ctrlr - VST
Linking Ctrlr - Standalone Plugin
/usr/bin/ld: build/Ctrlr.a(lua_260ca39c.o): in function `os_tmpname':
lua.c:(.text+0x1d075): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: build/Ctrlr.a(lua_260ca39c.o): in function `os_tmpname':
lua.c:(.text+0x1d075): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `createKeyEvent(_XDisplay*, unsigned long&, unsigned long&, bool, int, int)':
keys.cpp:(.text+0x4e): undefined reference to `XKeysymToKeycode'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `ctrlr_sendKeyPressEvent(juce::KeyPress const&)':
keys.cpp:(.text+0xb9): undefined reference to `XOpenDisplay'
/usr/bin/ld: keys.cpp:(.text+0xd5): undefined reference to `XDefaultRootWindow'
/usr/bin/ld: keys.cpp:(.text+0xea): undefined reference to `XGetInputFocus'
/usr/bin/ld: keys.cpp:(.text+0x19f): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x23b): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x247): undefined reference to `XCloseDisplay'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `createKeyEvent(_XDisplay*, unsigned long&, unsigned long&, bool, int, int)':
keys.cpp:(.text+0x4e): undefined reference to `XKeysymToKeycode'
/usr/bin/ld: build/Ctrlr.a(keys_f237af18.o): in function `ctrlr_sendKeyPressEvent(juce::KeyPress const&)':
keys.cpp:(.text+0xb9): undefined reference to `XOpenDisplay'
/usr/bin/ld: keys.cpp:(.text+0xd5): undefined reference to `XDefaultRootWindow'
/usr/bin/ld: keys.cpp:(.text+0xea): undefined reference to `XGetInputFocus'
/usr/bin/ld: keys.cpp:(.text+0x19f): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x23b): undefined reference to `XSendEvent'
/usr/bin/ld: keys.cpp:(.text+0x247): undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
make: *** [Makefile:347: build/Ctrlr.so] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make: *** [Makefile:370: build/Ctrlr] Error 1
CTRLR[linux]: build failed

CTRLR: Clean old package files
CTRLR: copy files for package
cp: cannot stat '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Builds/LinuxMakefile/build/Ctrlr': No such file or directory
cp: cannot stat '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Builds/LinuxMakefile/build/Ctrlr.so': No such file or directory
cp: cannot stat '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Builds/LinuxMakefile/build/Ctrlr.vst3': No such file or directory
CTRLR: strip binaries
strip: '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr/Ctrlr': No such file
strip: '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr/Ctrlr.so': No such file
strip: '/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr/Ctrlr.vst3/Contents/x86_64-linux/Ctrlr.so': No such file
CTRLR: create self extracting package
Header is 402 lines long

WARNING: Overwriting existing file: /home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr-x86_64-.0.sh
About to compress 672 KB of data...
Adding files to archive named "/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr-x86_64-.0.sh"...
./
./Panels/
./Doc/
./Doc/Ctrlr.overrides
./Doc/Licenses/
./Doc/Licenses/Digital-7/
./Doc/Licenses/Digital-7/README.TXT
./Doc/Licenses/69sekuntia/
./Doc/Licenses/69sekuntia/readme.txt
./Doc/Licenses/LCDWinTT/
./Doc/Licenses/LCDWinTT/README.TXT
./Doc/Licenses/LCDWinTT/LICENSE.TXT
./Doc/Licenses/LCDMonoWinTT/
./Doc/Licenses/LCDMonoWinTT/README.TXT
./Doc/Licenses/LCDMonoWinTT/LICENSE.TXT
./Doc/ctrlr_black.xcf
./Doc/lua.txt
./Doc/ctrlr.doxygen
./Doc/gpl.txt
./Doc/ctrlr_red.ico
CRC: 967010337
MD5: 59d60f1e71e640a4c991f2016f22b581

Self-extractible archive "/home/kim/Downloads/ctrlr-5.6.0/Scripts/..//Packaging/Linux/Ctrlr-x86_64-.0.sh" successfully created.
@Taikakim Taikakim changed the title Build fails on Linux Build of 5.6.0 fails on Linux Jan 24, 2023
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

1 participant