Dynamic Linking Error


Dave18

Member
Joined
Mar 16, 2003
Messages
352
Age
50
I have been trying to recompile some GP2X projects for the Wiz. All I have done is remove the -static from linker options.

I am getting the following error message:
ld.exe||cannot find /usr/lib/ inside c:\program files\codeblocks\devkitgp2x\arm-linux\bin\../../sysroot|
||=== Build finished: 1 errors, 0 warnings ===|

However I do have the following files installed in what appears to be the correct directory:
Directory of C:\Program Files\CodeBlocks\devkitGP2X\sysroot\usr\lib

08/03/2010 20:59 <DIR> .
08/03/2010 20:59 <DIR> ..
19/11/2005 23:58 2,912 crt1.o
19/11/2005 23:58 1,976 crti.o
19/11/2005 23:58 1,556 crtn.o
08/03/2010 20:59 0 dirlist.txt
08/03/2010 20:36 <DIR> gconv
19/11/2005 23:58 4,340 gcrt1.o
20/11/2005 04:56 12,850 libanl.a
20/11/2005 04:46 14,520 libanl.so
20/11/2005 04:56 13,402 libanl_p.a
20/11/2005 04:56 1,134 libBrokenLocale.a
20/11/2005 04:46 7,741 libBrokenLocale.so
20/11/2005 04:56 1,192 libBrokenLocale_p.a
20/11/2005 04:56 720 libbsd-compat.a
20/11/2005 04:56 2,670,826 libc.a
19/11/2005 23:58 209 libc.so
12/12/2005 22:04 576,200 libcairo.so
20/11/2005 04:56 24,006 libcrypt.a
20/11/2005 04:46 26,718 libcrypt.so
20/11/2005 04:56 24,606 libcrypt_p.a
20/11/2005 04:56 7,532 libc_nonshared.a
20/11/2005 04:56 2,763,960 libc_p.a
20/11/2005 04:56 7,126 libdl.a
20/11/2005 04:46 14,451 libdl.so
20/11/2005 04:56 7,682 libdl_p.a
12/12/2005 22:04 237,351 libexpat.so
12/12/2005 22:04 293,638 libfontconfig.so
12/12/2005 22:04 772,188 libfreetype.so
20/11/2005 04:56 720 libg.a
12/12/2005 22:04 212,956 libid3tag.so
20/11/2005 04:56 577 libieee.a
20/11/2005 04:56 1,083,794 libm.a
20/11/2005 04:46 736,498 libm.so
12/12/2005 22:04 133,967 libmad.so
20/11/2005 04:56 776 libmcheck.a
12/12/2005 22:04 492,511 libmikmod.so
20/11/2005 04:56 1,101,260 libm_p.a
20/11/2005 04:56 122,546 libnsl.a
20/11/2005 04:46 87,792 libnsl.so
20/11/2005 04:56 127,082 libnsl_p.a
20/11/2005 04:46 33,808 libnss_compat.so
20/11/2005 04:46 22,084 libnss_dns.so
20/11/2005 04:46 53,643 libnss_files.so
20/11/2005 04:46 22,920 libnss_hesiod.so
20/11/2005 04:46 48,877 libnss_nis.so
20/11/2005 04:46 52,750 libnss_nisplus.so
12/12/2005 22:04 247,147 libpng.so
12/12/2005 22:04 247,147 libpng12.so
12/12/2005 22:04 2,067,449 libpoppler.so
20/11/2005 04:56 144,904 libpthread.a
20/11/2005 00:05 199 libpthread.so
20/11/2005 04:56 1,096 libpthread_nonshared.a
20/11/2005 04:56 150,806 libpthread_p.a
20/11/2005 04:56 90,312 libresolv.a
20/11/2005 04:46 71,735 libresolv.so
20/11/2005 04:56 93,030 libresolv_p.a
20/11/2005 04:56 64,416 librt.a
20/11/2005 04:46 42,732 librt.so
20/11/2005 04:56 67,268 librt_p.a
12/12/2005 22:04 469,068 libSDL.so
12/12/2005 22:04 139,412 libSDL_gfx.so
12/12/2005 22:04 302,567 libSDL_image.so
12/12/2005 22:04 146,266 libSDL_mixer.so
12/12/2005 22:04 163,441 libSDL_svg.so
12/12/2005 22:04 41,561 libSDL_ttf.so
12/12/2005 22:04 310,721 libsvg-cairo.so
12/12/2005 22:04 113,838 libsvg.so
20/11/2005 04:46 28,361 libthread_db.so
20/11/2005 04:56 8,396 libutil.a
20/11/2005 04:46 13,423 libutil.so
20/11/2005 04:56 8,744 libutil_p.a
12/12/2005 22:04 123,205 libvorbisidec.so
12/12/2005 22:04 2,089,925 libxml2.so
19/11/2005 23:58 778 Mcrt1.o
19/11/2005 23:58 2,912 Scrt1.o
73 File(s) 19,074,256 bytes

Any help would be greatly appreciated.

Thanks

Dave
 
Dave18 said:
I have been trying to recompile some GP2X projects for the Wiz. All I have done is remove the -static from linker options.

I am getting the following error message:
ld.exe||cannot find /usr/lib/ inside c:\program files\codeblocks\devkitgp2x\arm-linux\bin\../../sysroot|
||=== Build finished: 1 errors, 0 warnings ===|

Dave


hm i think your folder settings are just messed? i think ld just cannot handle the absolute path "c:\program files\codeblocks\devkitgp2x\arm-linux\bin\" with the relative one "../../sysroot" inside. try to change that :)
 
Last edited by a moderator:
I'm using Codeblocks and I've gone through all the options I can find but cannot find one to change the directory used by ld.exe

I've tried adding the sysroot/usr/lib to the linker search directories but that hasn't fixed the problem.

Any advice on how to change the directory settings for Codeblocks?

Thanks

Dave
 
sorry i cant help you with the details of setting up code blocks. i recommend to go through the setup instructions http://wiki.gp2x.org/wiki/Using_CodeBlocks for the gp2x. it should be the same :)
 
I have seen this error once compiling statically for Wiz, but I don't remember if was solved. Can be a problem with the spaces in the path "c:\program files\..." passed to gcc. Try to install codeblocks in the root of C:. Check the path to libraries, includes and toolchain binaries in the options of the platform "DevkitGP2X GPL".
 
Back
Top