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

Unable to compile on Xcode 4.6.3 #17

Closed
frantic0 opened this issue Nov 18, 2013 · 6 comments
Closed

Unable to compile on Xcode 4.6.3 #17

frantic0 opened this issue Nov 18, 2013 · 6 comments

Comments

@frantic0
Copy link

Hello,

I'm trying to compile Marsyas for Xcode and demo applications and I am finding errors in different situations. If I compile manually everything is fine, so I expect that there is something wrong with the configuration.

If I configure cmake with Marsyas_Static flag DISABLED, I get linker mach-o (ld) errors, and libtool finds problems with some of the flags (-dynamic, -Wl,-headerpad_max_install_names), and Marsyas lib is only compiled by removing those flags

If I configure cmake with Marsyas_Static flag ENABLED, I compile without errors.

However, none of the examples gets compiled for any of both configurations. Has someone identified this problem yet?

Thank you,
FB

@jleben
Copy link
Contributor

jleben commented Nov 26, 2013

Hi, can you please try to compile the latest code in the git repository?
You can find detailed instructions here:
http://marsyas.info/assets/docs/manual/marsyas-user/Building-latest-Marsyas-on-Mac-OS-X.html#Building-latest-Marsyas-on-Mac-OS-X

@frantic0
Copy link
Author

frantic0 commented Dec 5, 2013

Hello,

yes, thank you. Again, I managed to compile successfully using make. However, got error on the configuration through CMake with XCode generator. This was my choice for configuration

@ Use default native compilers
Specify native compilers
Specify toolchain file for cross-compiling
Specify options for cross-compiling

The output of cmake with errors follows.

The C compiler identification is Clang 4.2.0
The CXX compiler identification is Clang 4.2.0
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check if the system is big endian
Searching 16 bit integer
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of unsigned short
Check size of unsigned short - done
Using unsigned short
Check if the system is big endian - little endian
CMake Error at CMakeLists.txt:47 (include):
include could not find load file:

marsyas-options

'Realtime' features and dependent apps disabled, because WITH_CPP11 is disabled
CMake Error at CMakeLists.txt:65 (include):
include could not find load file:

marsyas-detect

CMake Error at CMakeLists.txt:90 (include):
include could not find load file:

marsyas-includes

CMake Error at CMakeLists.txt:93 (include):
include could not find load file:

marsyas-oslibs

CMake Error at CMakeLists.txt:139 (include):
include could not find load file:

marsyas-package

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!

@jleben
Copy link
Contributor

jleben commented Dec 5, 2013

It seems you initialized CMake by pointing it at the "src" subdirectory instead of the top-level Marsyas directory. That used to be the correct thing to do before, but not anymore.

You should initialize the build directory by pointing CMake to the top-level Marsyas dir, as described in the (recently updated) user manual online:
http://marsyas.info/assets/docs/manual/marsyas-user/Building-latest-Marsyas-on-Mac-OS-X.html#Building-latest-Marsyas-on-Mac-OS-X

@jleben
Copy link
Contributor

jleben commented Dec 5, 2013

Note that if you want to correct this, just re-running CMake is not enough. You need to delete the build directory (or all of the cmake-generated files), and then re-initialize cmake.

@jleben
Copy link
Contributor

jleben commented Feb 18, 2014

This doesn't seem to be a real issue, so I'm closing it. Anyone is welcome to reopen if they think otherwise.

@jleben jleben closed this as completed Feb 18, 2014
@vedant738
Copy link

hiiiiiiiiiiiii i am working with cmake and while cconfiguring it is giving error :projects files may be invalid .
please tell me solution for this problem asap.

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

3 participants