project-navigation
Personal tools

Author Topic: Error when trying to compile the code  (Read 4269 times)

nicknasty

  • Guest
Error when trying to compile the code
« on: August 02, 2009, 10:48:49 pm »
Linking dynamic library: ..\..\base\game.dll
c:/development/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot open output file ..\..\base\game.dll: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 13 seconds)
1 errors, 0 warnings
 
I've tried everything what's causing this?

nicknasty

  • Guest
Re: Error when trying to compile the code
« Reply #1 on: August 02, 2009, 11:13:59 pm »
BTW I am trying to compile with code::blocks on Windows

I used the tutorial on how to compile and was able to do everything except this:

1)copy the dynamic libraries (*.dll) from contrib\dlls\ to the UFO:AI root dir, or into a directory in your path (e.g. c:\windows\system32). Or add the contrib\dlls directory to your path.

there is no \dlls\ directory in contrib!

2)You may also need to add the MingW\bin directory, and the c:\development\Codeblocks\MinGW\libexec\gcc\mingw32\3.4.2 directory to your path for the compiler to work. Code::Blocks will need a restart for this.
 
to what path?

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Error when trying to compile the code
« Reply #2 on: August 02, 2009, 11:19:15 pm »
Did you do an SVN checkout ? Or where did you take the source from ?

nicknasty

  • Guest
Re: Error when trying to compile the code
« Reply #3 on: August 02, 2009, 11:31:43 pm »
yeah i just checked out the SVN now, i guess I should have done that before, the source I had was from the redistributable

nicknasty

  • Guest
Re: Error when trying to compile the code
« Reply #4 on: August 02, 2009, 11:42:03 pm »
I found out what the problem was: In Vista you have to run Codeblocks as an administrator. Stupid Vista. This is also the reason why the map editor was crashing....

Maybe you should update the Coding tutorial to let people know to run codeblocks as adminstrator.
« Last Edit: August 03, 2009, 08:40:10 pm by nicknasty »

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Error when trying to compile the code
« Reply #5 on: August 03, 2009, 09:21:00 pm »
hi. you can also update it yourself, isnt it a wiki?

odie

  • Guest
Re: Error when trying to compile the code
« Reply #6 on: August 03, 2009, 11:10:44 pm »
hi. you can also update it yourself, isnt it a wiki?

Haha, tats ok now. I have edited this on his behalf on the CB page.

Also included a couple of "Take notes and advise".

Have not much of a health / time to update the wiki..... will work on it after i recover..... :D

Have fun!

nicknasty

  • Guest
Re: Error when trying to compile the code
« Reply #7 on: August 03, 2009, 11:15:35 pm »
Bayo: Point taken, never worked with a wiki before but I just signed up

odie

  • Guest
Re: Error when trying to compile the code
« Reply #8 on: August 25, 2009, 11:11:18 am »
nicknasty,

So, has everything worked for u up to now - the compilation in CB within WIN Vista?

U might want to take note that Destructavator has uploaded a new CB package, and that many compatibility breaks (2 major from geever's announcements) has been since, and requires a fresh campaign restart.

:D

Everything ok so far?

And on wiki, are u getting the hang of things?
:D