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

SC_QT=OFF build flag still needs QT on OSX #959

Closed
lloeki opened this issue Sep 21, 2013 · 5 comments
Closed

SC_QT=OFF build flag still needs QT on OSX #959

lloeki opened this issue Sep 21, 2013 · 5 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: build CMake build system

Comments

@lloeki
Copy link

lloeki commented Sep 21, 2013

Building with -DSC_QT=0, -DSC_QT=OFF or -DSC_QT=FALSE results in the following, failing cmake output:

-- SuperCollider Version: 3.6.5
-- Using HID Utilities from folder 'HID_Utilities'
-- building boost libraries manually
-- Could NOT find YAMLCPP (missing:  YAMLCPP_INCLUDE_DIR YAMLCPP_LIBRARY)
-- using bundled libyaml-cpp
-- Audio API: coreaudio
-- Found version (unknown) of GNU Readline at /usr/lib/libreadline.dylib, but version 5.0 required
CMake Error at /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindQt4.cmake:1382 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  lang/CMakeLists.txt:288 (find_package)
@lloeki
Copy link
Author

lloeki commented Sep 21, 2013

Just noticed SC_IDE, but even setting both to zero still wants QT and builds the IDE.

@danstowell
Copy link
Member

Thanks. There's an ambiguity here, which is that I think the flag SC_QT was intended not to turn off Qt entirely, but to enable/disable the "QtGUI" stuff which is specifically for letting users create Qt GUIs from code. However, no-one's going to want to disable it unless they really want to disable all the Qt features - which means disabling SC_IDE and possibly some other stuff now. And it's a much more natural interpretation of SC_QT to be able to build without Qt.

On my ubuntu system, if I uninstall qt, then I can successfully build iff I turn off both SC_QT and SC_IDE.
So @lloeki I get a different result from you (poss cos of different OS). Please can you post the error shown when you set both flags to off but it still wants qt?

Jakob, others - what do you think? I've proposed a commit on the mailing list which automatically turns off SC_IDE if !SC_QT.
http://permalink.gmane.org/gmane.comp.audio.supercollider.devel/60057

@danstowell
Copy link
Member

By the way @lloeki - strongly recommend building with Qt, since the old mac-native IDE is completely gone now from the development version of SC, and the Qt IDE is now the only straightforward way to work with SC code on mac.

(There are some alternatives - there's an emacs plugin, a vim plugin, and a readline repl [for the latter you need proper gnu readline, not the default one bundled in apple]. None are particularly convenient on mac.)

@lloeki
Copy link
Author

lloeki commented Sep 21, 2013

FYI, I'm building a homebrew formula for SuperCollider (for the curious, has to be installed with --env=std because of the sdk sysroot requirement). The goal is to provide people wanting to use e.g overtone — typically along with emacs — with a barebones CLI SuperCollider, with the option to build the IDE only if needed.

So, to sum up, I actually want no IDE, so I really care less about the old IDE ;-)

As for the readline requirement for the REPL, I made it a dependency of the formula, which then builds against homebrew's proper readline.

I get a different result from you (poss cos of different OS)

Quite possible, since it ends up building a SuperCollider.app bundle. I suppose that's because the project's build system is set up this way (from Xcode?) so it's been designed from the start to build a GUI app on OSX. I updated the issue title to reflect that the flags work on Linux.

Also, in my case, building as an app bundle is actually not desirable at all. I'd rather have the files end up like on Linux (bin/, share/ and whatnot). I suppose this would require a much more extensive modification of the current build system though, and probably warrants its own issue. For now I merely symlink scsynth and sclang from Contents/Resources into bin.

@gusano
Copy link
Member

gusano commented Sep 21, 2013

Jakob, others - what do you think? I've proposed a commit on the mailing list which automatically turns off SC_IDE if !SC_QT.

👍
(check your indentation settings =)

danstowell added a commit that referenced this issue Nov 10, 2013
(cherry picked from commit 8af877a)

Signed-off-by: Dan Stowell <danstowell@users.sourceforge.net>

Conflicts:
	CMakeLists.txt
sofakid pushed a commit to sofakid/supercollider that referenced this issue Apr 6, 2015
(cherry picked from commit 336633f)

Signed-off-by: Dan Stowell <danstowell@users.sourceforge.net>

Conflicts:
	CMakeLists.txt
@crucialfelix crucialfelix added bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: build CMake build system labels Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: build CMake build system
Projects
None yet
Development

No branches or pull requests

4 participants