Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
34 user(s) are online (25 user(s) are browsing Forums)

Members: 2
Guests: 32

Mr_byte, trixie, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 (4) 5 6 »
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@MartinW

Nice

That's enough for me for now. Hope you enjoyed the testing, and thanks for putting work into it!


Edited by elfpipe on 2024/9/16 17:58:51
Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
Don't be thanking me - you're the one that put in the work to get cmake updated!!

I will rename my directories back to mixed case just to make sure that doesn't cause any issues, if I don't say anything then assume it works fine.


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe

Hi, using alpha3, just some questions:
-Does it need to be run under SH or does work with "native" amiga Shell/CLI?
-Doing "cmake -B build/" after a seconds it asks for USR: assign ¿:-/

What I get (using SH as shell):
/Devel/SDK/ejemplos/SDL2/gamecmake -B build/
-- 
CMAKE_HOST_SYSTEM_VERSION 53.18
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_6bca9/fast
-- Detecting C compiler ABI info failed
-- Check for working C compiler: /SDK/gcc/bin/gcc
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_6b172/fast
-- Check for working C compiler: /SDK/gcc/bin/gcc broken
CMake Error at 
/Devel/cmake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (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'/Devel/SDK/ejemplos/SDL2/game/build/CMakeFiles/CMakeScratch/TryCompile-SARSJJ'
    
    
Run Build Command(s): /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_6b172/fast
    SIGHUP
    Generator
execution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_6b172/fast
    

  

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


-- 
Configuring incompleteerrors occurred!
/
Devel/SDK/ejemplos/SDL2/game>

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@jabirulo

I have not tested cmake with bash (abc-shell I assume?). I have my doubts, that it is going to work. Have you tried just from a normal shell?

By the way, I am actually rather sad, that the "cmake -B build" syntax is starting to replace the old form. So much nostalgia in the little details on the command line! 😅


Edited by elfpipe on 2024/9/24 21:46:37
Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe


I tested "cmake .." (from inside build drawer) and works ok. I just tried before and maybe made some typos that made cmake not to work

now works "cmake /" but still get same error.
#cd build
#l
CMakeFiles                                 Dir ----rwed Hoy 23:06:07
#delete #? all
CMakeFiles/pkgRedirects..borrado.
CMakeFiles..borrado.
#cmake /
CMake Warning:
  
Ignoring extra path from command line:

   
"/"


CMake ErrorThe source directory "/" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
#cmake ..
-- CMAKE_HOST_SYSTEM_VERSION 
-- 
The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_2c06b/fast
-- Detecting C compiler ABI info failed
-- Check for working C compiler: /SDK/gcc/bin/gcc
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_067eb/fast
-- Check for working C compiler: /SDK/gcc/bin/gcc broken
CMake Error at 
/Devel/cmake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (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'/Devel/SDK/ejemplos/SDL2/game/build/CMakeFiles/CMakeScratch/TryCompile-QSLCWS'
    
    
Run Build Command(s): /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_067eb/fast
    SIGHUP
    Generator
execution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_067eb/fast
    

  

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


-- 
Configuring incompleteerrors occurred!
#

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
Although it works from inside an Amiga shell, it's a posix(?) program, so "/" is the root of your drive ".." is up one directory and so on. Does that then make things work for you?


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@MartinW

Tried 1st "cmake /" and got error, then tried "cmake .." and started to work. I get a requester for USR: assign, thta don't know where to set it, so maybe there comes the error/fail I get.

Will try it with a ver simply cmakelists.txt and see what happens.

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@jabirulo

Did you complete these steps?

AmigaOS readme on github.com

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe

think yes, I have /use a script "cmake_init":

#type Devel:cmake/cmake_init 
Assign cmake-amigaDevel:cmake
SetEnv PATH 
/SDK/gcc/bin:/SDK/C:/SDK/local/C:/cmake-amiga/bin
Path cmake
-amiga:bin ADD
Stack 1000000
#

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
I have a simple program:

;/*
ppc-amigaos-gcc bitmasking.c -o bitmasking -Wall -gstabs -lauto
quit
*/

#include <proto/dos.h>

enum // entity status flags
 
E_DEAD  1,
 
E_ALIVE 2,
 
E_SOLID 4,
 
E_HIT   8,
 
E_MOVED 16
};

int main(void)
{
    
uint32 status;

    
status E_ALIVE;
    
IDOS->Printf("status = 0x%08lx\n",status);
    
status |= E_HIT;
    
IDOS->Printf("status = 0x%08lx\n",status);
    
status |= E_MOVED;
    
IDOS->Printf("status = 0x%08lx\n",status);
    
status &= ~E_HIT;
    
IDOS->Printf("status = 0x%08lx\n",status);
    
status &= ~E_MOVED;
    
IDOS->Printf("status = 0x%08lx\n",status);

    return 
0;
}


and the CMakeLists.txt:
cmake_minimum_required(VERSION 3.24)

project(bitmasking)

set(SOURCE_FILES bitmasking.c)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})


And "cmake .." (from build drawer):
# list /build/
Directory "/build/" is empty.
#cmake ..
-- CMAKE_HOST_SYSTEM_VERSION 53.18
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_e0630/fast
-- Detecting C compiler ABI info failed
-- Check for working C compiler: /SDK/gcc/bin/gcc
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_ac067/fast
-- Check for working C compiler: /SDK/gcc/bin/gcc broken
CMake Error at 
/Devel/cmake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (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'/Devel/SDK/ejemplos/SDL2/game/build/CMakeFiles/CMakeScratch/TryCompile-QXJMKS'
    
    
Run Build Command(s): /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_ac067/fast
    
/SDK/C/gmake  -f CMakeFiles/cmTC_14726.dir/build.make CMakeFiles/cmTC_14726.dir/build
    gmake
: *** [cmTC_14726/fastError 10
    User interrupt
    SIGHUP
    Generator
execution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_ac067/fast
    

  

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


-- 
Configuring incompleteerrors occurred!
#


BTW why cmake is asking for an USR: assign?

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@jabirulo

Ok. So it is actually calling the compiler. The problem must be make/gmake. Are you by any chance using a non-standard SDK?

EDIT : Did it work for you before v0.0.3a? What if you add a "LANGUAGE c" clause to the project() definition?


Edited by elfpipe on 2024/9/25 15:21:27
Edited by elfpipe on 2024/9/25 15:22:42
Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe

adding LANAGE C shows same error.

AFAIK I use latest SDK (just some beta includes, but nothing else)

#version SDK:C/make file full
make 53.1 (22-01-2009)

#version SDK:C/gmake file full
gmake 53.1 (22-01-2009)

#cmake ..
-- CMAKE_HOST_SYSTEM_VERSION 53.18
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
CMake Error
Generatorexecution of make failedMake command was: /Devel/cmake/bin/cmake -E env VERBOSE=/SDK/C/gmake -f Makefile cmTC_6c844/fast
-- Detecting C compiler ABI info failed
...


BTW is cmake drawer the SHARE drawer mandatory? I have it, but juts for courosity.

Will try to install lastest SDK again and see what happens.

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@jabirulo

Are you sure, you are using the right version of clib4.library?

EDIT : If you do "version clib4.library full", what does it show?

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe

#version clib4.library full
clib4.library 1.0 (14-09-2024)

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@all

Anyone having any ideas?

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
Only that it looks like the exact same error I had when my path to gmake was wrong and it couldn’t find it. I haven’t had a chance to check this latest alpha yet. I might tonight.


Edited by MartinW on 2024/9/28 16:20:39

Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top
Re: CMake 3.29 Native (OS4)
Amigans Defender
Amigans Defender


See User information
@Jabirulo

Which filesystem are you using?

i'm really tired...
Go to top
Re: CMake 3.29 Native (OS4)
Just popping in
Just popping in


See User information
Quote:
Anyone having any ideas?

Maybe use Snoopy to see what files are actually being accessed? If there's a path problem of some sort, that might provide some clues.

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@afxgroup

KDH9: 4.687M 3.463M 1.223M 74% -1 Lect./Escr. Devel SFS\02

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@jabirulo

What happens if you rename your cmake folder "cmake-amiga"?

Go to top

  Register To Post
« 1 2 3 (4) 5 6 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project