Author Topic: C:\wxWidgets-2.8.10\lib: No such file: Permission denied  (Read 9889 times)

Offline kingfinn

  • Single posting newcomer
  • *
  • Posts: 4
C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« on: June 27, 2009, 10:29:25 am »
Hi all,

when I compiler I got the following Error:
Quote
C:\wxWidgets-2.8.10\lib: No such file: Permission denied
What could be the Issue and Howto fix it ?

Cheers,

kingfinn

Some more Infos:

Windows
Build: release, monolithic





« Last Edit: June 27, 2009, 11:02:19 am by kingfinn »

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #1 on: June 27, 2009, 02:45:16 pm »
Hello !

You give directories on the Linker settings whereas it should be libraries.
Search directories/Linker is the good place for C:\wxWidgets-2.8.10\lib

Dje

Offline cgarcia109

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #2 on: June 27, 2009, 02:59:21 pm »
For wx is enough you to define base value
then you can use that instead of full path
wx base --> C:\wxWidgets-2.8.10 [$(#wx)=C:\wxWidgets-2.8.10]


Search Directories -> Compiler  (include dirs)
Any configuration:
$(#wx)/include
$(#wx)/contrib/include

Release:
$(#wx)/lib/gcc_lib/msw

Debug:
$(#wx)/lib/gcc_lib/mswd


Search Directories -> Linker (lib dirs)

Any configuration:
$(#wx)\lib\gcc_lib

contrib folders if you need them
i usually generate contribs in same output folder as wxWidgets so i only use that line up

Search Directories -> Resource Compiler

Release:
$(#wx)/lib/gcc_lib/msw

Debug:
$(#wx)/lib/gcc_lib/mswd


Linker settings -> Link Libraries (here you specify library files to link against)

wxmsw28.a
...
...


(note: you are specifying here folders that are being understood as libraries that theyre not of course)


(note 2: i think paths are correct for non-unicode mono static build. Anyway i use mono unicode dll<so review them)
« Last Edit: June 27, 2009, 03:02:03 pm by cgarcia109 »

Offline kingfinn

  • Single posting newcomer
  • *
  • Posts: 4
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #3 on: June 27, 2009, 09:38:05 pm »

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #4 on: June 27, 2009, 09:45:14 pm »
Did you check the file exists ?
What is the full path ?
What did you put for the wx variable ?

There are often variables that tells if the lib is debug, unicode...
Did you try the wizard to generate your project?

Dje

Offline kingfinn

  • Single posting newcomer
  • *
  • Posts: 4
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #5 on: June 27, 2009, 10:11:42 pm »
the variable you can see above.
i did in the wizard --> release only. no dll, monolithic

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #6 on: June 28, 2009, 02:43:29 am »
Did you compile wxWidgets?
Or download an an already Compiled version? If yes, from where did you download it? (example wxpack)

I suggest turning on Full Compiler logging Mode.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S
« Last Edit: June 28, 2009, 02:48:25 am by stahta01 »
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 Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #7 on: June 28, 2009, 06:14:58 am »
1) You need to specify full import library name if you add .a extension to library name. So you need to add libwxmsw28.a

2) If you add these include directories, library directories and libraries to Compiler > Search directories, Code::Blocks will use them for all projects irrespective of project settings. So it's better you use them under project settings.
Be a part of the solution, not a part of the problem.

Offline cgarcia109

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #8 on: June 29, 2009, 03:18:16 am »
yes, you must specify full name

libwxmsw28.a

or not .a

wxmsw28

if you use .a the library name wont be auto completed (lib)wxmws28(.a)

This is about gcc compiler, the compiler option would be -lwxmsw28.a, so gcc understand thats the absolute name and search that file.
I think is better to use full names to avoid mistakes.
« Last Edit: June 29, 2009, 03:26:13 am by cgarcia109 »

Offline kingfinn

  • Single posting newcomer
  • *
  • Posts: 4
Re: C:\wxWidgets-2.8.10\lib: No such file: Permission denied
« Reply #9 on: July 03, 2009, 07:01:58 pm »
haha it works for me now :lol:

ich you compile rigth and choose the right options in the project dialog then,youhave to change nothing :P

cheers