Following some hello world with qt and cmake, this is my fold structure:
CMakeLists.txt
main.cpp
ui/mainwindow.ui
src/mainwindow.cpp
include/mainwindow.h
and this is CMakeList.txt:
cmake_minimum_required (VERSION 2.8)
# Project
set(PROJECTNAME "Hello")
project(${PROJECTNAME} C CXX)
set(${PROJECTNAME}_MAJOR_VERSION 0)
set(${PROJECTNAME}_MINOR_VERSION 1)
# qt
find_package(Qt4 REQUIRED)
set (QT_USE_QTMAIN TRUE)
include (${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
# compilers
#set(CMAKE_CXX_FLAGS "-Wall -std=gnu++0x")
# files
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(src)
include_directories(include)
set(${PROJECTNAME}_SOURCES
main.cpp
src/mainwindow.cpp
)
set(${PROJECTNAME}_HEADERS
include/mainwindow.h
)
set(${PROJECTNAME}_HEADERS_MOC
include/mainwindow.h
)
set(${PROJECTNAME}_FORMS
ui/mainwindow.ui
)
QT4_WRAP_CPP(${PROJECTNAME}_HEADERS_MOC ${${PROJECTNAME}_HEADERS_MOC})
QT4_WRAP_UI(${PROJECTNAME}_FORMS_HEADERS ${${PROJECTNAME}_FORMS})
QT4_ADD_RESOURCES(${PROJECTNAME}_RESOURCES_RCC ${${PROJECTNAME}_RESOURCES})
# executables and installation
add_executable (
${${PROJECTNAME}_HEADERS}
${${PROJECTNAME}_SOURCES}
${${PROJECTNAME}_HEADERS_MOC}
${${PROJECTNAME}_FORMS_HEADERS}
)
target_link_libraries(${PROJECTNAME} ${QT_LIBRARIES})
tried different ways of add target_link_libraries but still get:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.1")
CMake Error at CMakeLists.txt:61 (target_link_libraries):
Cannot specify link libraries for target "Hello" which is not built by
this project.
-- Configuring incomplete, errors occurred!
You are missing the target name as the first parameter to add_executable.
add_executable(
${PROJECTNAME}
${${PROJECTNAME}_HEADERS}
${${PROJECTNAME}_SOURCES}
${${PROJECTNAME}_HEADERS_MOC}
${${PROJECTNAME}_FORMS_HEADERS}
)
Related
I'm kinda new to the world of Intel's HPC toolchain and I'm facing some troubles making even simple DPC++ application to work when gtest is used as a testing framework
This is the CMakeLists "structure" I'm following
cmake_minimum_required(VERSION 3.14)
project(foo)
set(CMAKE_CXX_COMPILER "dpcpp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3 -fsycl")
# add executables
# target linked libraries
# ...
option(ENABLE_TESTS ON)
if(ENABLE_TESTS)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_subdirectory(tests)
endif()
If I remove the last block, it compiles and runs as expected, otherwise I get the following error:
CMake Error at build/_deps/googletest-src/CMakeLists.txt:10 (project):
The CMAKE_CXX_COMPILER:
dpcpp
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/u141905/foo/build/CMakeFiles/CMakeOutput.log".
See also "/home/u141905/foo/build/CMakeFiles/CMakeError.log".
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= /usr/bin/c++
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
make: *** [Makefile:2: all] Error 1
Please notice that dpcpp is correctly set, in fact I'm using Intel's devcloud platform.
Setting CXXto the output of whereis dpcpp produces the same error.
The only "workaround" (I doubt it is one though) I found is using clang++ instead (the version from Intel's llvm). Any help or suggestion is much appreciated, thanks in advance!
EDIT: after some more attempts, I noticed that if I set CMAKE_CXX_COMPILER just after fetching gtest, everything works fine. Anyway I don't understand why this happens and how can be properly fixed.
Use the path for dpcpp binary for setting the CMAKE_CXX_COMPILER instead of using"set(CMAKE_CXX_COMPILER "dpcpp")". After adding the path("/opt/intel/oneapi/compiler/2022.0.1/linux/bin/dpcpp") to the CMAKE_CXX_COMPILER, you can run the program successfully.
Please find the below CMakeLists.txt for setting the CMAKE_CXX_COMPILER:
project(foo)
set(CMAKE_CXX_COMPILER "/opt/intel/oneapi/compiler/2022.0.1/linux/bin/dpcpp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3 -fsycl")
# add executables
# target linked libraries
# ...
set(ENABLE_TESTS ON)
include(FetchContent)
if(ENABLE_TESTS)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_subdirectory(tests)
endif()
Thanks & Regards,
Hemanth
Did you run the source /opt/intel/oneapi/setvars.sh intel64 script? I.e. is dpcpp on your path before running cmake?
I'm trying to configure and build LMMS from sources following the guide:
https://github.com/LMMS/lmms/wiki/dependencies-windows#windows-msvc
I have
Windows 7 x64
msvc 2019
Qt 5.15.1 both x32 and x64 with Qt Creator 4.13.2
CMake 3.16.1
First, at the end of (I use --triplet x64-windows option)
.\vcpkg install fftw3 libsamplerate libsndfile sdl2 --triplet x64-windows
I get
...
The package fftw3:x64-windows provides CMake targets:
find_package(FFTW3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE FFTW3::fftw3)
find_package(FFTW3f CONFIG REQUIRED)
target_link_libraries(main PRIVATE FFTW3::fftw3f)
find_package(FFTW3l CONFIG REQUIRED)
target_link_libraries(main PRIVATE FFTW3::fftw3l)
The package libsndfile:x64-windows provides CMake targets:
find_package(SndFile CONFIG REQUIRED)
target_link_libraries(main PRIVATE SndFile::sndfile)
The package sdl2:x64-windows provides CMake targets:
find_package(SDL2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE SDL2::SDL2 SDL2::SDL2main)
Do the captions "CONFIG REQUIRED" require some actions from me before the next steps?
As the instruction wrote, I add vcpkg path to the CMAKE_PREFIX_PATH:STRING:
CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX};g:\audio_sources\lmms\vcpkg\installed\x64-windows
Then in Qt Creator when opening CMakeLists.txt I get:
Running C:\Program Files\CMake\bin\cmake.exe -S G:/audio_sources/lmms -B C:/Users/Ber/AppData/Local/Temp/QtCreator-IYdlTJ/qtc-cmake-UUUBKujd -GNinja "-DCMAKE_BUILD_TYPE:String=Debug" "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe" "-DCMAKE_C_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe" "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/5.15.1/msvc2019_64;g:\audio_sources\lmms\vcpkg\installed\x64-windows" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/5.15.1/msvc2019_64/bin/qmake.exe" in C:\Users\Ber\AppData\Local\Temp\QtCreator-IYdlTJ\qtc-cmake-UUUBKujd.
-- The C compiler identification is MSVC 19.27.29110.0
-- The CXX compiler identification is MSVC 19.27.29110.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/HostX64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:15 (CMAKE_POLICY):
The OLD behavior for policy CMP0050 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Warning at cmake/modules/PluginList.cmake:104 (message):
Compiling with MSVC. The following plugins are not available:
LadspaEffect;zynaddsubfx
Call Stack (most recent call first):
CMakeLists.txt:21 (INCLUDE)
Checking submodules...
-- Skipping plugins/zynaddsubfx/zynaddsubfx matches "plugins/zynaddsubfx/zynaddsubfx" (absent in PLUGIN_LIST)
-- Skipping plugins/LadspaEffect/calf/veal matches "plugins/LadspaEffect/calf/veal" (absent in PLUGIN_LIST)
-- Skipping plugins/LadspaEffect/swh/ladspa matches "plugins/LadspaEffect/swh/ladspa" (absent in PLUGIN_LIST)
-- Skipping plugins/LadspaEffect/tap/tap-plugins matches "plugins/LadspaEffect/tap/tap-plugins" (absent in PLUGIN_LIST)
-- Checking qt5-x11embed...
-- Found src/3rdparty/qt5-x11embed/CMakeLists.txt
-- Checking rpmalloc...
-- Found src/3rdparty/rpmalloc/rpmalloc/configure.py
-- Checking game-music-emu...
-- Found plugins/FreeBoy/game-music-emu/CMakeLists.txt
-- Checking adplug...
-- Found plugins/OpulenZ/adplug/Makefile.am
-- Checking exprtk...
-- Found plugins/Xpressive/exprtk/Makefile
-- Checking weakjack...
-- Found src/3rdparty/weakjack/weakjack/.gitignore
-- Checking mingw-std-threads...
-- Found src/3rdparty/mingw-std-threads/LICENSE
-- Checking wiki...
-- Found doc/wiki/Home.md
-- Checking ringbuffer...
-- Found src/3rdparty/ringbuffer/CMakeLists.txt
-- Checking carla...
-- Found plugins/carlabase/carla/Makefile
-- Done validating submodules.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.24.0.windows.2")
Configuring LMMS
--------------------------
* Project version : 1.2.3-735+gf5d0524b1
* Major version : 1
* Minor version : 2
* Release version : 3
* Stage version : 735+gf5d0524b1
* Build version : 0
*
Optional Version Usage:
--------------------------
* Override version: -DFORCE_VERSION=x.x.x-x
* Ignore Git information: -DFORCE_VERSION=internal
PROCESSOR: AMD64
-- Target host is 64 bit
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Looking for include file semaphore.h
-- Looking for include file semaphore.h - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/ipc.h
-- Looking for include file sys/ipc.h - not found
-- Looking for include file sys/shm.h
-- Looking for include file sys/shm.h - not found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - not found
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - not found
-- Looking for include file sched.h
-- Looking for include file sched.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - not found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - not found
-- Looking for include file ctype.h
-- Looking for include file ctype.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file process.h
-- Looking for include file process.h - found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Found Qt translations in C:/Qt/5.15.1/msvc2019_64/translations
-- Found SndFile: G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/sndfile.lib
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found SDL2: G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/SDL2.lib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find Lame (missing: LAME_INCLUDE_DIRS LAME_LIBRARIES)
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - not found
-- Found OggVorbis: G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/ogg.lib;G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/vorbis.lib;G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/vorbisfile.lib;G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/vorbisenc.lib
-- Found FFTW: G:/audio_sources/lmms/vcpkg/installed/x64-windows/include
-- Found OpenGL: opengl32
-- Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_INCLUDE_DIR FLTK_FLUID_EXECUTABLE)
-- Could NOT find Wine (missing: WINE_CXX WINE_LIBRARIES WINE_INCLUDE_DIRS)
-- Found SAMPLERATE: G:/audio_sources/lmms/vcpkg/installed/x64-windows/lib/libsamplerate-0.lib
-- Looking for include file sys/mman.h
-- Looking for include file sys/mman.h - not found
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Bash competion is not supported on this platform.
-- Could NOT find UnixCommands (missing: BASH CP GZIP MV RM TAR)
Installation Summary
--------------------
* Install Directory : C:/Program Files (x86)/lmms
Supported audio interfaces
--------------------------
* ALSA : <not supported on this platform>
* JACK : <not supported on this platform>
* OSS : <not found or not supported on this platform>
* Sndio :
* PortAudio : not found, please install portaudio19-dev (or similar, version >= 1.9) ;if you require PortAudio support
* libsoundio : <disabled in this release>
* PulseAudio : <not supported on this platform>
* SDL : OK, using SDL2
Supported MIDI interfaces
-------------------------
* ALSA : <not supported on this platform>
* OSS : <not found or not supported on this platform>
* Sndio :
* JACK : <not supported on this platform>
* WinMM : OK
* AppleMidi : <not supported on this platform>
Supported file formats for project export
-----------------------------------------
* WAVE : OK
* FLAC : OK
* OGG/VORBIS : OK
* MP3/Lame : not found, please install libmp3lame-dev (or similar)
Optional plugins
----------------
* Lv2 plugins : not found, requires pkg-config
* SUIL for plugin UIs : not found, requires pkg-config
* ZynAddSubFX instrument : not found, please install fltk
* Carla Patchbay & Rack : OK (weak linking enabled)
* SoundFont2 player : not found, libfluidsynth-dev (or similar);is highly recommended
* Stk Mallets : not found, please install libstk0-dev (or similar) ;if you require the Mallets instrument
* VST-instrument hoster : OK
* VST-effect hoster : OK
* CALF LADSPA plugins : OK
* CAPS LADSPA plugins : OK
* CMT LADSPA plugins : OK
* TAP LADSPA plugins : OK
* SWH LADSPA plugins : OK
* GIG player : not found, libgig needed for decoding .gig files
Developer options
-----------------------------------------
* Debug FP exceptions : Disabled
-----------------------------------------------------------------
IMPORTANT:
after installing missing packages, remove CMakeCache.txt before
running cmake again!
-----------------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Ber/AppData/Local/Temp/QtCreator-IYdlTJ/qtc-cmake-UUUBKujd
Elapsed time: 00:35.
Among other things, among the messages I see the lines
The following plugins are not available:
LadspaEffect;zynaddsubfx
While there are both LadspaEffect and zynaddsubfx source folders in the plugins dir.
What I am doing wrong?
Whether I really need to install pkg-config in addition to vcpkg ? Can I use pkg-config-lite-0.28-1 ?
I must preface this saying I have very little knowledge of Yocto/Bitbake, make, cmake, autoconf, etc.
I have an application, written in C++, that I have been unable to get built. The issue I am having is that I have been unable to get some dependencies built in Yocto/Bitbake. The application has dependencies on the following libraries:
Paho-MQTT (https://github.com/eclipse/paho.mqtt.c.git)
Jansson JSON parser (http://www.digip.org/jansson/releases/jansson-2.10.tar.gz)
Apache QPID C++ (https://www-us.apache.org/dist/qpid/cpp/1.39.0/qpid-cpp-1.39.0.tar.gz)
When running the bitbake recipe for apache qpid, I am receiving the following error:
CMake Error at src/CMakeLists.txt:84 (message):
| Can't find amqp 0-10 spec for framing code generation
I do not have any ideas how to get past this error.
I am running Docker/Yocto on a Macbook and have followed the instructions to get everything installed and running. The application (and dependent libraries) are being compiled for a Multitech Conduit gateway running mLinux version 4.1.6. I followed the instructions at http://www.multitech.net/developer/software/mlinux/mlinux-building-images/building-a-custom-linux-image/ to download and build the default images for mLinux 4.0 and higher.
I could not find an existing recipe for building qpid-cpp-1.39.0. I was able to find a recipe for qpid_0.20 (http://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-extended/qpid/qpid_0.20.bb?h=master) that I attempted to modify to support qpid-cpp-1.39.0. When running bitbake against the recipe, I receive the following output:
pokyuser#8c538668c625:/workdir/mlinux-4.x/build$ bitbake qpid-cpp
NOTE: Started PRServer with DBfile: /workdir/mlinux-4.x/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 41127, PID: 10213
Loading cache: 100% |#############################################################################################################################################| Time: 0:00:01
Loaded 2996 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:01
Parsing of 2213 .bb files complete (2207 cached, 6 parsed). 3001 targets, 177 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_user '^/workdir/mlinux-4.x/layers/user-layer/'
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-mlinux-linux-gnueabi"
MACHINE = "mtcdt"
DISTRO = "mlinux"
DISTRO_VERSION = "4.1.7"
TUNE_FEATURES = "arm armv5 thumb dsp arm926ejs"
TARGET_FPU = "soft"
user-layer = "master:c9360c9479287f3ba229c9a37142baa5a22cce67"
meta-mlinux = "HEAD:4a060176a58345749e5907084cf1647f8b8cae23"
meta-multitech = "HEAD:55db4fd0bb04ccaedb10de0b249151a663b0d916"
meta-mono = "HEAD:b8e5da7138c61fb9ade87712a2fc28dc6283ab25"
meta-nodejs = "HEAD:78018dc7dc02b5039a165801d09c00564687a1b6"
meta-java = "HEAD:a265b31ec7d022be254abdf959360a7624208585"
meta-oe
meta-ruby
meta-perl
meta-python
meta-networking
meta-webserver
meta-multimedia
meta-filesystems = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"
meta-jansson
meta-paho-mqtt
meta-clearblade-sdk
meta-qpid-cpp = "master:c9360c9479287f3ba229c9a37142baa5a22cce67"
Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: qpid-cpp-1.39.0-r0 do_configure: Function failed: do_configure (log file is located at /workdir/mlinux-4.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/qpid-cpp/1.39.0-r0/temp/log.do_configure.10486)
ERROR: Logfile of failure stored in: /workdir/mlinux-4.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/qpid-cpp/1.39.0-r0/temp/log.do_configure.10486
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| -- The C compiler identification is GNU 6.2.0
| -- The CXX compiler identification is GNU 6.2.0
| -- Check for working C compiler: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/arm-mlinux-linux-gnueabi/arm-mlinux-linux-gnueabi-gcc
| -- Check for working C compiler: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/arm-mlinux-linux-gnueabi/arm-mlinux-linux-gnueabi-gcc -- works
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Check for working CXX compiler: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/arm-mlinux-linux-gnueabi/arm-mlinux-linux-gnueabi-g++
| -- Check for working CXX compiler: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/arm-mlinux-linux-gnueabi/arm-mlinux-linux-gnueabi-g++ -- works
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- Build type is "RelWithDebInfo" (has debug symbols)
| -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
| -- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.12")
| -- Found PkgConfig: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config (found version "0.29.1")
| -- Found Ruby: /workdir/mlinux-4.x/build/tmp/sysroots/x86_64-linux/usr/bin/ruby (found version "2.2.0")
| -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
| -- Could NOT find VALGRIND (missing: VALGRIND_EXECUTABLE)
| -- Found CyrusSASL: /workdir/mlinux-4.x/build/tmp/sysroots/mtcdt/usr/lib/libsasl2.so
| CMake Error at src/CMakeLists.txt:84 (message):
| Can't find amqp 0-10 spec for framing code generation
|
|
| -- Configuring incomplete, errors occurred!
| See also "/workdir/mlinux-4.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/qpid-cpp/1.39.0-r0/build/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /workdir/mlinux-4.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/qpid-cpp/1.39.0-r0/temp/log.do_configure.10486)
ERROR: Task (/workdir/mlinux-4.x/layers/meta-qpid-cpp/recipes-qpid-cpp/qpid-cpp/qpid-cpp_1.39.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1273 tasks of which 1267 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/workdir/mlinux-4.x/layers/meta-qpid-cpp/recipes-qpid-cpp/qpid-cpp/qpid-cpp_1.39.0.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
The recipe I used is as follows:
DESCRIPTION = "AMQP message brokers"
HOMEPAGE = "http://qpid.apache.org/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b1e01b26bacfc2232046c90a330332b3"
SECTION = "mq"
DEPENDS = "boost perl-native python util-linux cyrus-sasl"
RDEPENDS_${PN} = "cyrus-sasl-bin"
SRC_URI = "git://github.com/apache/qpid-cpp;protocol=https"
SRCREV = "0f5d21861f6935ed2e4eb6e21f1d3cef19e22aa5"
S = "${WORKDIR}/git"
#S = "${WORKDIR}/${PN}-${PV}"
inherit cmake python-dir perlnative cpan-base update-rc.d pkgconfig ruby
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
# Env var which tells perl if it should use host (no) or target (yes) settings
export PERLCONFIGTARGET = "${#is_target(d)}"
export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${#get_perl_version(d)}/CORE"
export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${#get_perl_version(d)}"
export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${#get_perl_version(d)}"
export PERL="${STAGING_BINDIR}/perl"
EXTRA_OECONF += " --without-help2man SASL_PASSWD=/usr/sbin/saslpasswd2"
EXTRA_OEMAKE += " CPPFLAGS=-Wno-unused-function \
pyexecdir=${PYTHON_SITEPACKAGES_DIR} \
pythondir=${PYTHON_SITEPACKAGES_DIR} \
"
INITSCRIPT_NAME = "qpidd"
INITSCRIPT_PARAMS = "defaults"
Knowing that I have just started learning Yocto/Bitbake just three days ago, I'm hoping that someone out there can help me determine what the problem is so that I can compile the apache qpid-cpp-1.39.0 library for mLinux.
According to find_file documentation:
The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more
directories to be prepended to all other search directories. This
effectively “re-roots” the entire search under given locations. Paths
which are descendants of the CMAKE_STAGING_PREFIX are excluded from
this re-rooting, because that variable is always a path on the host
system. By default the CMAKE_FIND_ROOT_PATH is empty.
And since cmake called from bitbake environment is effectively a cross-compilation, then this variable should be also ignored. I added a patch files/0001-Qpid-cross-compile.patch, which worked for me:
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 82141efdb..3ba403a32 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
## -78,7 +78,7 ## endif (NOT CMAKE_SYSTEM_NAME STREQUAL Windows AND BUILD_TESTING)
# rubygen subdir is excluded from stable distributions
# If the main AMQP spec is present, then check if ruby and python are
# present, and if any sources have changed, forcing a re-gen of source code.
-find_file(QPID_AMQP_SPEC NAMES amqp.0-10-qpid-errata.stripped.xml PATHS ${qpid-cpp_SOURCE_DIR}/specs ${qpid-cpp_SOURCE_DIR}/../specs NO_DEFAULT_PATH)
+find_file(QPID_AMQP_SPEC NAMES amqp.0-10-qpid-errata.stripped.xml PATHS ${qpid-cpp_SOURCE_DIR}/specs ${qpid-cpp_SOURCE_DIR}/../specs NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
mark_as_advanced(QPID_AMQP_SPEC)
if (NOT QPID_AMQP_SPEC)
message(FATAL_ERROR "Can't find amqp 0-10 spec for framing code generation")
## -106,7 +106,7 ## else (regen_amqp)
message(STATUS "No need to generate AMQP protocol sources")
endif (regen_amqp)
-find_file(QPID_BROKER_MANAGEMENT_SPEC NAMES management-schema.xml PATHS ${CMAKE_CURRENT_SOURCE_DIR}/qpid/broker ${qpid-cpp_SOURCE_DIR}/../specs NO_DEFAULT_PATH)
+find_file(QPID_BROKER_MANAGEMENT_SPEC NAMES management-schema.xml PATHS ${CMAKE_CURRENT_SOURCE_DIR}/qpid/broker ${qpid-cpp_SOURCE_DIR}/../specs NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
mark_as_advanced(QPID_BROKER_MANAGEMENT_SPEC)
if (NOT QPID_BROKER_MANAGEMENT_SPEC)
message(FATAL_ERROR "Can't find broker management spec for code generation")
When trying to install RStudio on Ubuntu 10.04 from source R needs to be pre-installed, having gone through a bunch of steps to install the latest version of R (i.e. version 2.14.1), when trying to use the cmake function to install RStudio it still throws up an error saying that my version is too old and i need at least R version 2.11.
From the error message I have looked at the CMakeLists.txt, but am not really too sure what to do in order to make it point to the correct newer version of R.
Below is an illustration of the issue it was created on an EC2 instance.
Any help would be appreciated...
hideyoshi#ip-10-77-70-100:~$ R
R version 2.14.1 (2011-12-22)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> q()
Save workspace image? [y/n/c]: n
hideyoshi#ip-10-77-70-100:~$ cd rstudio
hideyoshi#ip-10-77-70-100:~/rstudio$ cmake -DRSTUDIO_TARGET=Desktop - DCMAKE_BUILD_TYPE=Release ..
-- Found R: /usr/lib64/R
CMake Error at src/cpp/CMakeLists.txt:178 (message):
Minimum R version (2.11.1) not found.
-- Configuring incomplete, errors occurred!
and here is the CMakeLists.txt file
hideyoshi#ip-10-77-70-100:~/rstudio/src/cpp$ cat CMakeLists.txt
#
# CMakeLists.txt
#
# Copyright (C) 2009-11 by RStudio, Inc.
#
# This program is licensed to you under the terms of version 3 of the
# GNU Affero General Public License. This program is distributed WITHOUT
# ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
# AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
#
#
cmake_minimum_required(VERSION 2.6)
project (RSTUDIO_CPP)
# include globals (normally these are included at the root but we also
# include them here to support cpp only configurations for development)
include("${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeGlobals.txt")
# global directives
add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
# UNIX specific global directivies
if(UNIX)
# cmake modules
include(CheckFunctionExists REQUIRED)
include(CheckSymbolExists REQUIRED)
# need pkgconfig for pango cairo on linux
if(NOT APPLE)
find_package(PkgConfig REQUIRED)
endif()
# compiler flags
add_definitions(-Wall -pthread)
# workaround boost bug (https://svn.boost.org/trac/boost/ticket/4568)
# by disabling kqueue support. note that this bug was fixed in boost 1.45
add_definitions(-DBOOST_ASIO_DISABLE_KQUEUE)
# if present, set osx deployment target variables from environment vars
if(APPLE)
if(NOT $ENV{CMAKE_OSX_SYSROOT} STREQUAL "")
set(CMAKE_OSX_SYSROOT $ENV{CMAKE_OSX_SYSROOT})
message(STATUS "Set CMAKE_OSX_SYSROOT to ${CMAKE_OSX_SYSROOT}")
endif()
if(NOT $ENV{CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "")
set(CMAKE_OSX_DEPLOYMENT_TARGET $ENV{CMAKE_OSX_DEPLOYMENT_TARGET})
message(STATUS "Set CMAKE_OSX_DEPLOYMENT_TARGET to ${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
endif()
# gcc hardending options (see: http://wiki.debian.org/Hardening)
if(NOT APPLE)
add_definitions(-Wformat -Wformat-security)
add_definitions(-D_FORTIFY_SOURCE=2)
add_definitions(-fstack-protector --param ssp-buffer-size=4)
add_definitions(-pie -fPIE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,-z,now")
endif()
# Win32 specific global directives
else()
add_definitions(-DWINVER=0x501)
if(RSTUDIO_SESSION_WIN64)
# increase stack size to 10MB, avoid mingw auto-importing warning,
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack=0x00a00000,--enable-auto-import")
add_definitions(-D_WIN64
-D_WIN64_WINNT=0x0501
-D_WIN64_IE=0x600
-DWIN64_LEAN_AND_MEAN
-DBOOST_USE_WINDOWS_H)
else()
# increase stack size to 10MB, avoid mingw auto-importing warning,
# and ensure that we are large address aware
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack=0x00a00000,--enable-auto-import,--large-address-aware")
add_definitions(-D_WIN32_WINNT=0x0501
-D_WIN32_IE=0x600
-DWIN32_LEAN_AND_MEAN)
endif()
endif()
# determine whether we should statically link boost. we always do this
# unless we are building a non-packaged build on linux (in which case
# boost dynamic libraries are presumed to be installed on the system ldpath)
if(APPLE OR WIN32 OR RSTUDIO_PACKAGE_BUILD)
set(Boost_USE_STATIC_LIBS ON)
endif()
if(APPLE OR WIN32)
# Require Boost 1.44 on Windows and Mac to avoid bugs in Boost Filesystem v2
# that cause the process to abort instead of returning errors
set(BOOST_VERSION 1.44.0)
else()
set(BOOST_VERSION 1.42.0)
endif()
list(APPEND BOOST_LIBS
date_time
filesystem
iostreams
program_options
regex
signals
system
thread
)
# UNIX BOOST
if(UNIX)
# prefer static link to /usr/local/include/boost (our custom built version)
if(EXISTS /usr/local/include/boost AND
EXISTS /usr/local/lib/libboost_system.a)
# find headers
set(Boost_USE_STATIC_LIBS ON)
set(BOOST_INCLUDEDIR /usr/local/include)
find_package(Boost ${BOOST_VERSION} REQUIRED)
# define library list manually (find_package doesn't always pick them up)
set(BOOST_LIB_DIR /usr/local/lib)
foreach(BOOST_LIB ${BOOST_LIBS})
list(APPEND Boost_LIBRARIES ${BOOST_LIB_DIR}/libboost_${BOOST_LIB}.a)
endforeach()
else()
find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS ${BOOST_LIBS})
endif()
# WIN32 BOOST
else()
# hard-code to our own prebuilt boost libs
if(RSTUDIO_SESSION_WIN64)
set(BOOST_ROOT "${RSTUDIO_WINDOWS_DEPENDENCIES_DIR}/boost-win/boost64")
else()
set(BOOST_ROOT "${RSTUDIO_WINDOWS_DEPENDENCIES_DIR}/boost-win/boost32")
endif()
set(BOOST_INCLUDEDIR "${BOOST_ROOT}/include/boost-1_44")
find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS ${BOOST_LIBS})
endif()
# core library
add_subdirectory(core)
# are we in CORE_DEV mode? if so then just add the core/dev project
# otherwise, add the rest of our projects
if(RSTUDIO_CONFIG_CORE_DEV)
add_subdirectory(core/dev)
else()
# find LibR
if(RSTUDIO_SESSION_WIN64)
set(LIBR_FIND_WINDOWS_64BIT TRUE)
endif()
find_package(LibR REQUIRED)
# verify we got the required R version
if(LIBR_FOUND AND RSTUDIO_VERIFY_R_VERSION)
include(CheckCSourceRuns)
set(CMAKE_REQUIRED_INCLUDES ${LIBR_INCLUDE_DIRS})
check_c_source_runs("
#include <Rversion.h>
int main()
{
int meetsRequirement = R_VERSION >= R_Version(${RSTUDIO_R_MAJOR_VERSION_REQUIRED},${RSTUDIO_R_MINOR_VERSION_REQUIRED},${RSTUDIO_R_PATCH_VERSION_REQUIRED});
return !meetsRequirement;
}"
LIBR_MINIMUM_VERSION)
if(NOT LIBR_MINIMUM_VERSION)
message(FATAL_ERROR "Minimum R version (${RSTUDIO_R_MAJOR_VERSION_REQUIRED}.${RSTUDIO_R_MINOR_VERSION_REQUIRED}.${RSTUDIO_R_PATCH_VERSION_REQUIRED}) not found.")
endif()
endif()
# r library
add_subdirectory(r)
# initialize subdirectories
file(MAKE_DIRECTORY conf)
# add desktop subprojects if we aren't building in server only mode
if(RSTUDIO_DESKTOP)
add_subdirectory(desktop)
configure_file(rdesktop-dev.in ${CMAKE_CURRENT_BINARY_DIR}/rdesktop-dev)
configure_file(conf/rdesktop-dev.conf ${CMAKE_CURRENT_BINARY_DIR}/conf/rdesktop-dev.conf)
endif()
# add this after desktop so it is not included in fixup_bundle
# processing which we do in desktop
add_subdirectory(session)
# add server subprojects if we aren't building in desktop only mode
if(RSTUDIO_SERVER)
add_subdirectory(server)
configure_file(rserver-dev ${CMAKE_CURRENT_BINARY_DIR}/rserver-dev)
configure_file(conf/rserver-dev.conf ${CMAKE_CURRENT_BINARY_DIR}/conf/rserver-dev.conf)
configure_file(conf/rsession-dev.conf ${CMAKE_CURRENT_BINARY_DIR}/conf/rsession-dev.conf)
endif()
endif()
This problem can be solved by installing latest version of R from cran. For Ubuntu 10.04 you can do that by adding deb http://mirrors.softliste.de/cran/bin/linux/ubuntu lucid/ to /etc/apt/sources.list and then performing an upgrade.
Once it's done, you can install the latest version of R by apt-get install r-base.
When that's complete you may rebuild after removing and recreating your build directory.
I suppose, it's LibR library that you wish to be newer.
Try to set CMAKE_PREFIX_PATH variable to the prefix where you have newer version installed and rerun configuration process.
If it doesn't work, add NO_DEFAULT_PATH clause into this line:
find_package(LibR REQUIRED NO_DEFAULT_PATH)
I'm trying to build a cmake project from QtCreator. When I open the project I need to give an argument to cmake otherwise Qt is not detected:
-DQT_QMAKE_EXECUTABLE=D:/Qt/4.6.2/bin/qmake.exe
The build step halts with this error:
Running build steps for project CollidingMice...
Starting: D:/Qt/2010.02/bin/jom.exe
"C:\Programmi\CMake 2.8\bin\cmake.exe" -HC:\devel\SRC\collidingmice_cmake -BC:\devel\SRC\collidingmice_cmake\qtcreator-build --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Programmi\CMake 2.8\bin\cmake.exe" -E cmake_progress_start C:\devel\SRC\collidingmice_cmake\qtcreator-build\CMakeFiles C:\devel\SRC\collidingmice_cmake\qtcreator-build\CMakeFiles\progress.marks
D:\Qt\2010.02\bin\jom.exe -f CMakeFiles\Makefile2 /nologo - all
D:\Qt\2010.02\bin\jom.exe -f CMakeFiles\collidingmice.dir\build.make /nologo -L CMakeFiles\collidingmice.dir\depend
"C:\Programmi\CMake 2.8\bin\cmake.exe" -E cmake_progress_report C:\devel\SRC\collidingmice_cmake\qtcreator-build\CMakeFiles 4
[ 25] Generating qrc_mice.cxx
d:\Qt\4.6.2\bin\rcc.exe -name mice -o C:/devel/SRC/collidingmice_cmake/qtcreator-build/qrc_mice.cxx C:/devel/SRC/collidingmice_cmake/mice.qrc
"C:\Programmi\CMake 2.8\bin\cmake.exe" -E cmake_depends "NMake Makefiles" C:\devel\SRC\collidingmice_cmake C:\devel\SRC\collidingmice_cmake C:\devel\SRC\collidingmice_cmake\qtcreator-build C:\devel\SRC\collidingmice_cmake\qtcreator-build C:\devel\SRC\collidingmice_cmake\qtcreator-build\CMakeFiles\collidingmice.dir\DependInfo.cmake --color=
Scanning dependencies of target collidingmice
D:\Qt\2010.02\bin\jom.exe -f CMakeFiles\collidingmice.dir\build.make /nologo -L CMakeFiles\collidingmice.dir\build
"C:\Programmi\CMake 2.8\bin\cmake.exe" -E cmake_progress_report C:\devel\SRC\collidingmice_cmake\qtcreator-build\CMakeFiles 1
[ 50] Building CXX object CMakeFiles/collidingmice.dir/main.cpp.obj
C:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe #C:\DOCUME~1\NICOLA~1\IMPOST~1\Temp\main.cpp.obj.461273.jom
jom 0.8.3 - empower your cores
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
Exited with code 2.
Error while building project CollidingMice
When executing build step 'Make'
The project I'm tring to build is the collingmice qt example and it builds from qt prompt. Here there is the CMakeLists:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(CollidingMice)
################################################# QT4 Handling
FIND_PACKAGE(Qt4 REQUIRED)
#this include set all the qt variable need to compile qt
INCLUDE(${QT_USE_FILE})
#Put here all headers files that need moc
SET( Qt4_SRC
)
#Put here .ui form files
SET( Qt4_UI
)
#Put here .qrc resource files
SET( Qt4_RES mice.qrc
)
#Cmake macro
QT4_WRAP_CPP(MOC_CPP ${Qt4_SRC})
QT4_WRAP_UI(UI_CPP ${Qt4_UI})
QT4_ADD_RESOURCES(RES_H ${Qt4_RES})
################################################# CPack
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "My funky project")
SET(CPACK_PACKAGE_VENDOR "Me, myself, and I")
#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt")
#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "3")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
IF(WIN32 AND NOT UNIX)
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
SET(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe")
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} My Famous Project")
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.my-project-home-page.org")
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.my-personal-home-page.com")
SET(CPACK_NSIS_CONTACT "me#my-personal-home-page.com")
SET(CPACK_NSIS_MODIFY_PATH ON)
ELSE(WIN32 AND NOT UNIX)
SET(CPACK_STRIP_FILES "bin/MyExecutable")
SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)
SET(CPACK_PACKAGE_EXECUTABLES "MyExecutable" "My Executable")
INCLUDE(CPack)
################################################# General
SET(CMAKE_BUILD_TYPE Release)
SET(CMAKE_CXX_FLAGS "-Wall")
INCLUDE_DIRECTORIES( . )
SET( SRC
main.cpp
mouse.cpp
${MOC_CPP}
${UI_CPP}
${RES_H}
)
SET( LIB
${QT_LIBRARIES}
)
ADD_EXECUTABLE(collidingmice ${SRC})
TARGET_LINK_LIBRARIES( collidingmice ${LIB} )
It's not clear from the Jom output what the error is.
Try running the latest version of Qt Creator (2.0) and also adding the Qt bin/ directory into your PATH.