Page 1 of 1

make file error

Posted: Thu Feb 16, 2017 11:31 pm
by jayarayee
mac version: macOS Sierra version 10.12.3
codelite version 10.0.0
c++ comelier xCode (clang-800.0.42.1)

Code: Select all

[#include <iostream>

int main()
{
   cout << "Hello World" << endl;
    return 0;
}]


when ever i build it cannot build it just shows me this: 

/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
----------Building project:[ bag - Debug ]----------
/usr/lib/libcmph.dylib: /usr/lib/libcmph.dylib: cannot execute binary file
make[1]: *** [Debug/main.cpp.o.d] Error 126
make: *** [All] Error 2
====1 errors, 0 warnings====

Re: make file error

Posted: Fri Feb 17, 2017 12:28 am
by eranif
what happens when you run this from the command line?

Code: Select all

/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
What happens when you run:

Code: Select all

file /usr/bin/make 
Eran

Re: make file error

Posted: Fri Feb 17, 2017 12:37 am
by jayarayee
when i run through the commend line i got this massage on command line:

make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.

when i run this "file/usr/bin/make"
i got the massage in my terminal:
-bash: file/usr/bin/make: No such file or directory

Re: make file error

Posted: Fri Feb 17, 2017 11:18 pm
by eranif
jayarayee wrote:when i run this "file/usr/bin/make"
i got the massage in my terminal:
-bash: file/usr/bin/make: No such file or directory
There is a space between "file" and "/usr/bin/make"
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
You should be in the workspace directory before you run this

Re: make file error

Posted: Sat Feb 18, 2017 3:08 am
by jayarayee
when i run this on console:
<file /usr/bin/make>
i got this:
</usr/bin/make: Mach-O 64-bit executable x86_64>

Re: make file error

Posted: Sun Feb 19, 2017 3:17 am
by eranif
and what happens when you run the makefile?
Can you post the makefile in the forum?