Author Topic: error couldn't create project directory  (Read 61053 times)

Offline Trendsdale

  • Single posting newcomer
  • *
  • Posts: 2
error couldn't create project directory
« on: January 13, 2011, 02:58:42 am »
I have just installed Code Blocks and when I try to start a project, it says "couldn't create project directory". I have tried re-installing the program and nothing still. Has anyone had this issue and how can I fix it?

I click 'console application'
'C++'
add title
then I get the error

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: error couldn't create project directory
« Reply #1 on: January 13, 2011, 04:01:41 am »
Use a location where you have rights to create a folder.
Note: Under "Program Files" is NOT a good location.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: error couldn't create project directory
« Reply #2 on: January 13, 2011, 09:41:52 am »
Which version of C::B and what's more which OS are you on ?

Offline Trendsdale

  • Single posting newcomer
  • *
  • Posts: 2
Re: error couldn't create project directory
« Reply #3 on: January 13, 2011, 07:27:04 pm »
thanks Tim. I had to choose a folder.

Offline PizzaNapoli

  • Single posting newcomer
  • *
  • Posts: 6
Re: error couldn't create project directory
« Reply #4 on: January 19, 2011, 04:37:45 pm »
Hi

I have a similar problem.

There is no problem to create a new project on my local drive, f.ex. c:\test\.

But if I want to create on a network path like \\server\JohnDoo\myProjects\ I got the same error: couldn't create the project directory.

Doesn't support cb UNC path ?

I'm working with cb10.05 on Windows 7 (x64) and have full access rights to server paths.

Thanks for feedback.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: error couldn't create project directory
« Reply #5 on: January 19, 2011, 04:52:31 pm »
Have you tried to mount (map) the network path to a drive?

p.s. there is a chance that gcc and gdb won't recognize networked/samba paths
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline PizzaNapoli

  • Single posting newcomer
  • *
  • Posts: 6
Re: error couldn't create project directory
« Reply #6 on: January 19, 2011, 05:35:05 pm »
No, I didn't mapped it.

But normally it's not nescessary. If I create the directories manually I can work, compile and link without problems.

So the gcc compiler works with UNC path.

The problem is only while creating a new project, f.ex. from a template like console application, irrlicht, ogre etc.


Offline PizzaNapoli

  • Single posting newcomer
  • *
  • Posts: 6
Re: error couldn't create project directory
« Reply #7 on: January 22, 2011, 03:46:05 pm »
So really no chance to use UNC paths  :( ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: error couldn't create project directory
« Reply #8 on: January 22, 2011, 04:08:04 pm »
Why do you want to have your project on a samba server?
Sharing with another person/computer?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline PizzaNapoli

  • Single posting newcomer
  • *
  • Posts: 6
Re: error couldn't create project directory
« Reply #9 on: January 22, 2011, 04:44:50 pm »
Yes, share with others or mainly with myself  :D
In the office, at home, everywhere where I am I have access to the server.

It's working with driver letter mapping. But I don't like that. It's very old fashioned for me.

Btw: It's not a samba server it's just a Windows XP computer.
« Last Edit: January 22, 2011, 04:54:04 pm by PizzaNapoli »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: error couldn't create project directory
« Reply #10 on: January 22, 2011, 08:38:49 pm »
Hm, have you tried to use proper VCS ( http://en.wikipedia.org/wiki/Revision_control )?
Something like subversion, git, mercurial?

p.s. I call all smb servers samba :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]