30 Replies - 1405 Views - Last Post: 12 November 2012 - 09:38 AM
#1
Cmake path too long
Posted 23 September 2012 - 07:19 PM
http://www.allegro.c...s/thread/606041
And I ran into a bump because when I tell cmake that I want it to add the path it tells me
"Warning! PATH too long installer unable to modify PATH!"
Any help? Tried googling it but no solid information was found
Thanks for reading
Replies To: Cmake path too long
#2
Re: Cmake path too long
Posted 23 September 2012 - 07:25 PM
are you over that limit ?
#3
Re: Cmake path too long
Posted 23 September 2012 - 09:51 PM
EDIT--
Just a little more information,
I'm on step 12, and when I cmake .. -G "MinGW Makefiles I get
'cmake' is not recognized as an internal or external command,
operable program or batch file.
I think its because of the messed up path but I might be wrong
This post has been edited by Ticon: 23 September 2012 - 09:53 PM
#4
Re: Cmake path too long
Posted 23 September 2012 - 10:21 PM
you can step through the directories with
cd \
cd codeblocks
cd mingw
etc.
#5
Re: Cmake path too long
Posted 23 September 2012 - 10:26 PM
Ticon, on 23 September 2012 - 09:51 PM, said:
'cmake' is not recognized as an internal or external command,
operable program or batch file.
I think its because of the messed up path but I might be wrong
Did you follow step 10?
Quote
This post has been edited by Skydiver: 23 September 2012 - 10:26 PM
#6
Re: Cmake path too long
Posted 23 September 2012 - 10:31 PM
Ticon, on 23 September 2012 - 07:19 PM, said:
http://www.allegro.c...s/thread/606041
And I ran into a bump because when I tell cmake that I want it to add the path it tells me
"Warning! PATH too long installer unable to modify PATH!"
Any help? Tried googling it but no solid information was found
Thanks for reading
So to help you, can you type and run [il]set PATH[/p] in CMD window and paste in the value? I wonder if it is truly so long that it is reading the Windows limit, or if it simply a bug in the installer.
If it is a bug in the installer, you may have to simply hand edit your PATH environment variable.
#7
Re: Cmake path too long
Posted 23 September 2012 - 10:41 PM
C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\build>set path ;C:\codeblocks\mi ngw\bin; Path=C:\Windows\System32 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
#8
Re: Cmake path too long
Posted 23 September 2012 - 10:56 PM
In particular, line 3, containing only "Path=C:\Windows\System32" does not looks a little terse.
On the other hand, that also goes to show that the PATH is not even coming close to the Windows limit, so the Cmake installer should have succeeded.
#9
Re: Cmake path too long
Posted 23 September 2012 - 11:19 PM
#10
Re: Cmake path too long
Posted 24 September 2012 - 12:07 AM
#11
Re: Cmake path too long
Posted 24 September 2012 - 04:16 PM
However I'm still unsure how to do that
#12
Re: Cmake path too long
Posted 24 September 2012 - 04:35 PM
Click on Start Button.
Right Click on "Computer".
On the left panel, click on "Advanced Computer Settings"
Click on "Environment Variable" button.
From there you can edit your PATH environment variable either just for you as the user, or for the entire system.
A minor tip on editing the path. Windows has not changed the UI since Window 3 and so it has the small textbox that used to be limited to 255 characters. Although the limit has gone up as the Windows versions have progressed, the window size has not. So the trick is to copy the entire contents of the path, and then paste it into notepad. Do all your editting in notepad. And then put the reassembled string back into the tiny textbox.
I have no idea on how to go about the same operations on Win8.
An alternate solution is to change the path using PowerShell.
Any which way, most PATH changes don't take effect immediately. A reboot is required if you want all your running programs to pick up the change. If all you need is for a new CMD window to pick up the change, just open a new CMD window.
#13
Re: Cmake path too long
Posted 24 September 2012 - 05:04 PM
C:\CMake 2.8\bin\cmake.exe
Which is where cmake is, when I try to bring up cmake in cmd however It still gives the not recognized message again
#14
Re: Cmake path too long
Posted 24 September 2012 - 05:09 PM
Open your CMD window, and type in 'set PATH'. What does it now say?
This post has been edited by Skydiver: 24 September 2012 - 05:10 PM
#15
Re: Cmake path too long
Posted 24 September 2012 - 05:14 PM
C:\Users\Ticon>set path Path=C:\CMake 2.8\bin\cmake.exe PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
I will change it to the bin folder and retry it while I wait
--Edit--
cmake works now, thanks alot!
Now I have another problem however, I run the command it tells in step 12
cmake .. -G "MinGW MakefilesAnd I get a heaping load of fun errors
C:\CodeBlocks\MinGW\allegro\build>cmake .. -G "MinGW Makefiles CMake Error: CMake was unable to find a build program corresponding to "MinGW Ma kefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a differe nt build tool. CMake Error: CMake was unable to find a build program corresponding to "MinGW Ma kefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a differe nt build tool. CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file:C:/CodeBlocks/MinGW/allegro/build/ CMakeFiles/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file:C:/CodeBlocks/MinGW/allegro/build/ CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!
-sigh- Why can't things just go smoothly, and help is appreciated
This post has been edited by Ticon: 24 September 2012 - 06:34 PM
|
|

New Topic/Question
This topic is locked



MultiQuote




|