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

Qt4::Core and Qt4::Gui not found on MacOSX 10.10 #59

Closed
kfieldi5 opened this issue Nov 25, 2014 · 3 comments
Closed

Qt4::Core and Qt4::Gui not found on MacOSX 10.10 #59

kfieldi5 opened this issue Nov 25, 2014 · 3 comments

Comments

@kfieldi5
Copy link

I am trying to get your vlc-qt project to work for Qt4 currently (plan to also use it in my Qt5 environment once I get 4 working).

I modified CMakeLists.txt to SET(QT_VERSION 4) if QT_VERSION is not defined. That got me to where I am now.

I installed Qt4.8.6 via homebrew so it is in /usr/local/Cellar/qt/4.8.6 ...

Any help would be appreciated, here is output:

kevinbook:build kevin$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
VLC-Qt: Build with Qt4
VLC-Qt: Build with Widgets: ON
VLC-Qt: Build statically: OFF
-- Found LibVLC include-dir path: /Applications/VLC.app/Contents/MacOS/include
-- Found LibVLC library path:/usr/local/lib/libvlc.dylib
-- Found LibVLCcore library path:/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib

VLC-Qt: You are compiling libvlc-qt 0.10.0

-- Git Version Patch: 3488d87

VLC-Qt: Build tests: OFF

-- Configuring done
CMake Error at src/core/CMakeLists.txt:124 (ADD_LIBRARY):
Target "vlc-qt" links to target "Qt4::Core" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at src/widgets/CMakeLists.txt:96 (ADD_LIBRARY):
Target "vlc-qt-widgets" links to target "Qt4::Gui" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

-- Generating done
-- Build files have been written to: /Users/kevin/vlc-qt/build
kevinbook:build kevin$

@ntadej
Copy link
Member

ntadej commented Nov 26, 2014

Qt4 on mac is actually not supported. It should compile though. Check that qmake is in your PATH.

On 25. nov. 2014, at 23.23, kfieldi5 [email protected] wrote:

I am trying to get your vlc-qt project to work for Qt4 currently (plan to also use it in my Qt5 environment once I get 4 working).

I modified CMakeLists.txt to SET(QT_VERSION 4) if QT_VERSION is not defined. That got me to where I am now.

I installed Qt4.8.6 via homebrew so it is in /usr/local/Cellar/qt/4.8.6 ...

Any help would be appreciated, here is output:

kevinbook:build kevin$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
VLC-Qt: Build with Qt4
VLC-Qt: Build with Widgets: ON
VLC-Qt: Build statically: OFF
-- Found LibVLC include-dir path: /Applications/VLC.app/Contents/MacOS/include
-- Found LibVLC library path:/usr/local/lib/libvlc.dylib
-- Found LibVLCcore library path:/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib

VLC-Qt: You are compiling libvlc-qt 0.10.0

-- Git Version Patch: 3488d87 3488d87
VLC-Qt: Build tests: OFF

-- Configuring done
CMake Error at src/core/CMakeLists.txt:124 (ADD_LIBRARY):
Target "vlc-qt" links to target "Qt4::Core" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at src/widgets/CMakeLists.txt:96 (ADD_LIBRARY):
Target "vlc-qt-widgets" links to target "Qt4::Gui" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

-- Generating done
-- Build files have been written to: /Users/kevin/vlc-qt/build
kevinbook:build kevin$


Reply to this email directly or view it on GitHub #59.

@kfieldi5 kfieldi5 closed this as completed Dec 4, 2014
@v-fox
Copy link

v-fox commented Mar 22, 2015

I don"t think that it"s a mac issue. Got the same thing on OpenBuildService of openSUSE 13.2.

@ntadej
Copy link
Member

ntadej commented Mar 22, 2015

Yes, there seems to be cmake change that breaks this. Will fix.

@ntadej ntadej reopened this Mar 22, 2015
@ntadej ntadej added the Bug label Apr 13, 2015
@ntadej ntadej added this to the 0.11.0 milestone Apr 13, 2015
@ntadej ntadej closed this as completed in 7d5b7b1 Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants