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.
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.
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).
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.
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.
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.
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 (?)
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.