autocmake icon indicating copy to clipboard operation
autocmake copied to clipboard

Autocmake python script works with error

Open TaiXeflar opened this issue 2 years ago • 3 comments

Hi, I'm transfering a automake project(vermaseren/form) to cmake project with this auto2cmake.py script. I'm put this Python File to the form project folder and run directly(no any changes in auto2cmake.py), the terminal console returns error like this:

 Traceback (most recent call last):
  File "./auto2cmake.py", line 1647, in <module>
    main(sys.argv[1:])
  File "./auto2cmake.py", line 1641, in main
    convert()
  File "./auto2cmake.py", line 1466, in convert
    process_configure_ac(configure_ac)
  File "./auto2cmake.py", line 997, in process_configure_ac
    current_line = content[i].strip()
 IndexError: list index out of range

Is this error generated by no pre-setup or anything else? I'm not very sure how to use this convert tool.

P.S. Tested on windows 11 and linux platform.

Thanks

TaiXeflar avatar Oct 25 '23 08:10 TaiXeflar

Same error~

RainyLave avatar Jul 05 '24 15:07 RainyLave

Same error~

Can you please provide the script you are trying to convert? I wrote this tool for one of my projects, worked for that and never ever have thought that anyone else would need to use it. Thanks.

fritzone avatar Jul 06 '24 05:07 fritzone

Same error~

Can you please provide the script you are trying to convert? I wrote this tool for one of my projects, worked for that and never ever have thought that anyone else would need to use it. Thanks.

https://github.com/python/cpython/blob/main/configure.ac

marin-man avatar Nov 08 '24 22:11 marin-man