Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
100 user(s) are online (59 user(s) are browsing Forums)

Members: 0
Guests: 100

more...

Headlines

 
  Register To Post  

(1) 2 »
CMake can't find itself
Amigans Defender
Amigans Defender


See User information
It looks like when CMake runs it cannot find any commands in the search path. I think it is spawning gmake which calls everything through sh, so how do I add search paths for sh? Shouldn't it inherit the AmigaOS search paths? Note I also have to add full paths for gcc etc otherwise I get more errors! (-DCMAKE_COMMAND was me clutching at straws)

Quote:

8.Files:Projects/juffed-0.8.1/build> cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_MAKE_PROGRAM=/SDK/C/gmake -DCMAKE_C_COMPILER=/SDK/gcc/bin/gcc -DCMAKE_CXX_COMPILER=/SDK/gcc/bin/g++ -DCMAKE_COMMAND=/cmake/bin/cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /SDK/gcc/bin/gcc
-- Check for working C compiler: /SDK/gcc/bin/gcc -- broken
CMake Error at /Apps/Development/CMake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/SDK/gcc/bin/gcc" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: /Files/Projects/juffed-0.8.1/build/CMakeFiles/CMakeTmp



Run Build Command:/SDK/C/gmake "cmTryCompileExec/fast"

cmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

T:gmake.sh.2493.XLVGBZ[1]: cmake: not found

cmake: *** [cmTryCompileExec/fast] Error 127





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (PROJECT)


-- Configuring incomplete, errors occurred!


Go to top
Re: CMake can't find itself
Home away from home
Home away from home


See User information
You need the PATH var in ENVARC

Quote:
setenv SAVE PATH "/gcc/bin:/SDK/C:/SDK/Local/C:/SDK/Local/newlib/bin:/SDK/Local/clib2/bin:/C:"


Thats what i have here at least

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: CMake can't find itself
Quite a regular
Quite a regular


See User information
Do tell if it goes alright with the PATH var, I've had no such luck (yes that's just an expression).

Go to top
Re: CMake can't find itself
Home away from home
Home away from home


See User information
Try running it from sh.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: CMake can't find itself
Amigans Defender
Amigans Defender


See User information
@Raziel

Thanks, that works... sort of. I still have to specify the full path for gmake but everything else is quite happy.

CMake has more problems though:

Quote:

7.Files:Projects/juffed-0.8.1/build> cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_MAKE_PROGRAM=/SDK/C/gmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /gcc/bin/gcc
-- Check for working C compiler: /gcc/bin/gcc -- broken
CMake Error at /Apps/Development/CMake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/gcc/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Files/Projects/juffed-0.8.1/build/CMakeFiles/CMakeTmp



Run Build Command:/SDK/C/gmake "cmTryCompileExec/fast"

cmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

CMake Error: The source directory
"/Files/Projects/juffed-0.8.1/build/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/build"
does not exist.


Specify --help for usage, or press the help button on the CMake GUI.

cmake: *** [cmTryCompileExec/fast] Error 1





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (PROJECT)


-- Configuring incomplete, errors occurred!



If I create the missing dir it complains that the files it expects aren't there.

I think this error is an Alfkil CMake bug report

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
Looks like a path problem /files/ probably gets translated inro files: and thus amigaos thinks it's a volume.

Go to top
Re: CMake can't find itself
Amigans Defender
Amigans Defender


See User information
@SpotUP

It is a volume

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
@chris

I'm out of town at the moment, playing a concert tomorrow. I will check it out when I get back on monday. My suspicion is, that I might have included the wrong version of CMake in the archive, since it should work (works here anyways).

Go to top
Re: CMake can't find itself
Quite a regular
Quite a regular


See User information
The binaries in bin/ are dated for October 31st, if that helps.

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
@chris

Just a thought: Have you tried building just in the same directory? Eg smth like

> CMake ""

I have only checked with this form of make. Of course "cmake .." from "build" should work, but you probably can't depend on that with the current version.

Let me know how it goes .

EDIT: Just another thought: Have you tried building QSimpleSheet with CMake? That is my testcase here, and it works really well.


Edited by alfkil on 2011/11/20 20:11:47
Go to top
Re: CMake can't find itself
Amigans Defender
Amigans Defender


See User information
@alfkil

I'll give that a try!

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
@chris

I have just tested CMake here, and I found out, that I had forgotten to update CTest and CPack executables. It shouldn't make any difference however, and just to try I tested with the old executables (from the release), and it still worked perfectly here. Also I tried making QSimpleSheet with "CMake ..", and it works perfectly.

I also don't have to set any env variables differently (like PATH). So the problems you are experiencing is a very big mystery to me...

EDIT: Just for the hell of it, could you try and create a path like mine, eg.:

work:code/medium/cmake-2.8.5/bin/CMake

... and see if it accepts this?? Just create the drawers somewhere and assign work: to the base directory.

Go to top
Re: CMake can't find itself
Amigans Defender
Amigans Defender


See User information
No luck on any of those counts, error is always the same, eg:

Quote:
7.RAM Disk:qsimplesheet-0.3.9/build> work:code/medium/cmake-2.8.5/bin/cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /gcc/bin/gcc
-- Check for working C compiler: /gcc/bin/gcc -- broken
CMake Error at /RAM Disk/code/medium/cmake-2.8.5/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/gcc/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /RAM Disk/qsimplesheet-0.3.9/build/CMakeFiles/CMakeTmp



Run Build Command:/SDK/C/gmake "cmTryCompileExec/fast"

/work/code/medium/cmake-2.8.5/bin/cmake -f
CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

CMake Error: The source directory "/RAM
Disk/qsimplesheet-0.3.9/build/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/build"
does not exist.

Specify --help for usage, or press the help button on the CMake GUI.

cmake: *** [cmTryCompileExec/fast] Error 1





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:5 (PROJECT)


-- Configuring incomplete, errors occurred!


Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
@chris

Hmmm... Give me a minute, and I'll stuff some debug output in there.

Anyone else having the same problems??

Go to top
Re: CMake can't find itself
Quite a regular
Quite a regular


See User information
^ Yes, every time, as above, about "build/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/build".

Go to top
Re: CMake can't find itself
Home away from home
Home away from home


See User information
I have a similar problem (probably)

I get
Quote:
Run Build Command:/SDK/C/gmake "cmTryCompileExec/fast"

cmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

T:gmake.sh.2807.VVECIR[1]: cmake: cannot execute - Is a directory

cmake: *** [cmTryCompileExec/fast] Error 126





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:13 (PROJECT)


-- Configuring incomplete, errors occurred!


The problem is that i cannot run cmake while in bash.
Whenever i try to run it while in "sh" i get
sh: cmake: cannot execute - Is a directory
which is the exact same error message i get while cmake is trying to run and seems to be the reason it's not working here (?)

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: CMake can't find itself
Quite a regular
Quite a regular


See User information
I tried another cmake script and it works better, but it can't find any of the dependencies on its own, I have to inject them - zlib among others - into CMakeCache.txt one by one.

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
Have you set the cmake: assign to point to the cmake directory??

I cannot reproduce any of these problems here, so I cannot fix it...

EDIT: I have just tried downloading and installing my own archive from os4depot, and everything still works fine here. Mysterious...


Edited by alfkil on 2011/11/29 15:51:17
Go to top
Re: CMake can't find itself
Quite a regular
Quite a regular


See User information
Yes, I have the assign.

Go to top
Re: CMake can't find itself
Just can't stay away
Just can't stay away


See User information
????

Go to top

  Register To Post
(1) 2 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project