Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Pau Garcia i Quiles <pgquiles-SAwgbyZpXJFAfugRpC6u6w <at> public.gmane.org>
Subject: Re: unrecognozed token: --out-implib
Newsgroups: gmane.comp.web.witty.general
Date: Wednesday 3rd September 2008 00:24:41 UTC (over 9 years ago)
Quoting John Giordano
:

I think I know where your problem is.

You are asking CMake to create MinGW makefiles, so CMake adds the  
--out-implib option to gcc because MinGW creates Win32 binaries, i. e.  
you need to create import libraries for exported symbols. The  
--out-implib parameter is MinGW-specific, because gcc only needs to  
generate import libraries for Win32 binaries.

Problem is, you are not actually using MinGW to compile, but the  
Nburn-provided gcc, which is a cross-compiler for a Unix-like  
operating system. The Nburn-provided gcc does not understand the  
--out-implib option.

My advice: try creating Unix Makefiles instead of MinGW makefiles and  
make sure you are using the Nburn versions of the tools. The easiest  
way to know what make, gcc, etc will be used to compile is to look at  
the advanced options in CMakeSetup (or ccmake).

You should also read the cross-compilation documentation in the CMake  
wiki: http://www.cmake.org/Wiki/CMake_Cross_Compiling

You may also want to subscribe to the CMake mailing list, where other  
people using CMake for cross-compilation may be able to help you:  
http://www.cmake.org/mailman/listinfo/cmake
(Alexander Neundorf, for  
instance, is quite knowledgeable on this matter)

> Hi:
>   Thanks for the response.
>   I am a little confused and probably need to do more research.
>   I have directories for MSYS, MinGW, and also the GNU binutils.
>   I am also using Eclipse but might have to build for a different
> target.
>   I also have 2 different make.exe programs.
>   One make program looks like the MinGW one and the other looks like the
> GNU one.
>   I am going to try and sort out what I have before I ask for help.
>   THANK YOU.
>            -- John Paul
>
>
>  Directory of C:\Nburn\gcc-m68k\bin
>
> 04/08/2008  03:08 PM           498,176 m68k-elf-addr2line.exe
> 04/08/2008  03:08 PM           515,072 m68k-elf-ar.exe
> 04/08/2008  03:08 PM           800,768 m68k-elf-as.exe
> 04/08/2008  03:08 PM           201,216 m68k-elf-c++.exe
> 04/08/2008  03:08 PM           497,152 m68k-elf-c++filt.exe
> 04/08/2008  03:08 PM           200,192 m68k-elf-cpp.exe
> 04/08/2008  03:08 PM           201,216 m68k-elf-g++.exe
> 04/08/2008  03:08 PM           198,656 m68k-elf-gcc-4.2.1.exe
> 04/08/2008  03:08 PM           198,656 m68k-elf-gcc.exe
> 04/08/2008  03:08 PM            47,104 m68k-elf-gcov.exe
> 04/08/2008  03:08 PM         2,407,424 m68k-elf-gdb.exe
> 04/08/2008  03:08 PM           561,152 m68k-elf-gprof.exe
> 04/08/2008  03:08 PM           753,152 m68k-elf-ld.exe
> 04/08/2008  03:08 PM           508,928 m68k-elf-nm.exe
> 04/08/2008  03:08 PM           644,096 m68k-elf-objcopy.exe
> 04/08/2008  03:08 PM           760,320 m68k-elf-objdump.exe
> 04/08/2008  03:08 PM           515,072 m68k-elf-ranlib.exe
> 04/08/2008  03:08 PM           263,680 m68k-elf-readelf.exe
> 04/08/2008  03:08 PM           500,736 m68k-elf-size.exe
> 04/08/2008  03:08 PM           500,224 m68k-elf-strings.exe
> 04/08/2008  03:08 PM           644,096 m68k-elf-strip.exe
> 04/08/2008  03:08 PM           173,056 make.exe           FIRST MAKE
> PROGRAM
> 04/08/2008  03:08 PM            45,568 rm.exe
>               23 File(s)     11,635,712 bytes
>
>  Directory of C:\Nburn\gcc-m68k\libexec\gcc\m68k-elf\4.2.1
>
> 04/07/2008  03:51 PM        15,559,616 cc1.exe
> 04/07/2008  03:51 PM        17,085,246 cc1plus.exe
> 04/07/2008  03:51 PM         1,096,951 collect2.exe
>                3 File(s)     33,741,813 bytes
>
>
>  Directory of C:\Nburn\gcc-m68k\m68k-elf\bin
>
> 04/08/2008  03:08 PM           515,072 ar.exe
> 04/08/2008  03:08 PM           800,768 as.exe
> 04/08/2008  03:08 PM           201,216 c++.exe
> 04/08/2008  03:08 PM           201,216 g++.exe
> 04/08/2008  03:08 PM           198,656 gcc.exe
> 04/08/2008  03:08 PM           753,152 ld.exe
> 04/08/2008  03:08 PM           508,928 nm.exe
> 04/08/2008  03:08 PM           644,096 objcopy.exe
> 04/08/2008  03:08 PM           760,320 objdump.exe
> 04/08/2008  03:08 PM           515,072 ranlib.exe
> 04/08/2008  03:08 PM           644,096 strip.exe
>               11 File(s)      5,742,592 bytes
>
>  Directory of C:\Nburn\gcc-m68k\msys\1.0\bin
>
> 01/19/2007  05:33 PM            15,872 basename.exe
> 07/06/2005  06:52 AM            75,776 bzip2.exe
> 01/19/2007  05:33 PM            18,432 cat.exe
> 01/19/2007  05:32 PM            31,232 chmod.exe
> 10/31/2002  10:34 AM            11,264 cmp.exe
> 01/19/2007  05:33 PM            17,920 comm.exe
> 01/19/2007  05:32 PM            50,688 cp.exe
> 01/19/2007  05:33 PM            25,088 cut.exe
> 01/19/2007  05:33 PM            49,152 date.exe
> 10/31/2002  10:34 AM            68,608 diff.exe
> 10/31/2002  10:34 AM            17,920 diff3.exe
> 01/19/2007  05:33 PM            16,384 dirname.exe
> 01/19/2007  05:33 PM            15,872 env.exe
> 01/19/2007  05:33 PM            68,096 expr.exe
> 01/19/2007  05:33 PM            10,752 false.exe
> 04/17/2002  06:51 AM            90,414 find.exe
> 01/19/2007  05:33 PM            18,432 fold.exe
> 01/12/2002  01:46 PM           149,504 gawk.exe
> 01/14/2002  07:21 AM            81,408 grep.exe
> 01/14/2002  07:30 AM            46,592 gzip.exe
> 01/19/2007  05:33 PM            26,112 head.exe
> 01/19/2007  05:33 PM            18,944 id.exe
> 12/06/2002  05:28 AM           163,840 info.exe
> 12/06/2002  05:28 AM            33,280 infokey.exe
> 12/06/2002  05:29 AM            41,472 install-info.exe
> 01/19/2007  05:32 PM            56,320 install.exe
> 08/10/2002  11:14 AM           147,937 less.exe
> 01/19/2007  05:32 PM            25,600 ln.exe
> 01/19/2007  05:32 PM            82,432 ls.exe
> 06/16/2002  10:19 AM           118,148 m4.exe
> 06/30/2003  06:20 AM           135,680 make.exe  SECOND MAKE PROGRAM
> 12/06/2002  05:28 AM           180,224 makeinfo.exe
> 01/19/2007  05:33 PM            31,232 md5sum.exe
> 01/19/2007  05:33 PM            26,112 mkdir.exe
> 01/12/2007  02:01 PM            29,218 mount.exe
> 01/19/2007  05:33 PM            59,392 mv.exe
> 01/19/2007  05:33 PM            34,304 od.exe
> 03/08/2002  07:30 AM            57,344 patch.exe
> 01/12/2007  02:01 PM            34,259 ps.exe
> 01/19/2007  05:33 PM            37,888 rm.exe
> 01/19/2007  05:33 PM            16,384 rmdir.exe
> 07/06/2005  05:07 AM           122,368 rxvt.exe
> 04/30/2002  06:26 AM            48,128 sed.exe
> 04/26/2002  12:09 PM           476,672 sh.exe
> 01/19/2007  05:33 PM            17,408 sleep.exe
> 01/19/2007  05:33 PM            39,936 sort.exe
> 01/19/2007  05:33 PM            26,112 split.exe
> 01/19/2007  05:33 PM            42,496 stty.exe
> 01/19/2007  05:33 PM            35,840 tail.exe
> 04/17/2002  06:19 AM           158,208 tar.exe
> 01/19/2007  05:33 PM            16,384 tee.exe
> 12/06/2002  05:29 AM            29,184 texindex.exe
> 01/19/2007  05:33 PM            36,352 touch.exe
> 01/19/2007  05:33 PM            31,232 tr.exe
> 01/19/2007  05:33 PM            10,752 true.exe
> 01/19/2007  05:33 PM            16,896 uname.exe
> 01/19/2007  05:33 PM            23,040 uniq.exe
> 01/15/2002  12:22 PM           551,936 vim.exe
> 01/19/2007  05:33 PM            20,480 wc.exe
> 04/17/2002  06:51 AM            36,954 xargs.exe
>               60 File(s)      3,975,906 bytes
>
>
>  Directory of C:\Nburn\NBEclipse
>
> 05/21/2008  11:38 AM           180,224 NBEclipse.exe
>                1 File(s)        180,224 bytes
>
>
> -----Original Message-----
> From:
[email protected]mane.org
>
[mailto:[email protected]mane.org]
On Behalf Of Pau
> Garcia i Quiles
> Sent: Tuesday, September 02, 2008 2:30 PM
> To: [email protected]
> Subject: Re: [Wt-interest] unrecognozed token: --out-implib
>
> Quoting John Giordano
:
>
>> Hi:
>>
>>   When using Cmake 2.6 to build for the environment "Eclipse CDT4 -
>> MinGW makefiles" I get unrecognized token for the import library
>> (--out-implib).
>>
>>   Any ideas....
>
> It's a bit off-topic here but, could you please paste your
> CMakeLists.txt here? What version of MinGW are you using?
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
>
>
> ------------------------------------------------------------------------
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>



-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
 
CD: 4ms