News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wxWidgets 2.6 (MSW, GCC) installation instructions

Started by rickg22, April 24, 2005, 06:12:24 AM

Previous topic - Next topic

mandrav

You haven't built it as monolithic.
To link the sample code with your library, add all libwxmsw26_*.a files in the link libraries.
Be patient!
This bug will be fixed soon...

Serge2005

Thank you rickg22, thank you mandrav, I'm sorry, I recolmpiled all... I have libwxmsw26.a now (C:\wx\lib\gcc_lib\libwxmsw26.a), I'v set 
Settings->Compiler->Linker->Link libraries = C:\wx\lib\gcc_lib\libwxmsw26.a
but I get "ld.exe: cannot find -lwxmsw"-message... else and else :(  :( :(
OS: LMDE2-32bit with Xfce

mandrav

Quote from: Serge_Novik on September 21, 2005, 08:10:49 PM
Thank you rickg22, thank you mandrav, I'm sorry, I recolmpiled all... I have libwxmsw26.a now (C:\wx\lib\gcc_lib\libwxmsw26.a), I'v set
Settings->Compiler->Linker->Link libraries = C:\wx\lib\gcc_lib\libwxmsw26.a
but I get "ld.exe: cannot find -lwxmsw"-message... else and else :( :( :(


Settings->Compiler->Linker->Link libraries  is the global compiler options.
You should look in "Project->Build options" for the project-wide and per-target compiler/linker options.
Be patient!
This bug will be fixed soon...

Serge2005

 :( I'v done in "Project->Build options" now, I added in Linker->Link libraries = ..\..\..\wx\lib\gcc_lib\libwxmsw26.a (and relative and not)
Directories->Compiler = C:\wx\include (and relative and not)
Directories->Linker = C:\wx\lib\gcc_lib (and relative and not)
but I have same issue, it's something witchcraft  :( :( :( :(
OS: LMDE2-32bit with Xfce

mandrav

Be patient!
This bug will be fixed soon...

Serge2005

Project   : wxWidgets application
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Proj\CODEBLOCKS\wxW\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
Linking executable: C:\Proj\CODEBLOCKS\wxW\wxWidgets.exe
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 0 warnings

OS: LMDE2-32bit with Xfce

mandrav

You 're still having wxmsw as a link library.
I told you before: replace it by wxmsw26...
Be patient!
This bug will be fixed soon...

Serge2005

I have only libwxmsw26.a and added already it everywhere....
Project->Build options->Linker = C:\wx\lib\gcc_lib\libwxmsw26.a (both wxWidgets Application and default)
Project->Build options->Directories->Compiler = C:\wx\include (both wxWidgets Application and default)
Project->Build options->Directories->Linker = C:\wx\lib\gcc_lib (both wxWidgets Application and default)

:( I don't know where should I add libwxmsw26.a else? :(
OS: LMDE2-32bit with Xfce

rickg22

We'd appreciate it if you deleted your previous 3 "doesn't work" comments that you posted after our answers :lol:

Serge2005

#54
:) Thank you mandrav, thank you rickg22, you really help me  :) I fixed problem....  :)
I fogot delete "wxmsw" entry in Project->Build options->Linker string.......
now it's OK  :)
OS: LMDE2-32bit with Xfce

jmccay

I messed with my setup & I cannot figure out what is wrong.  Does anyone have any ideas what could cause this?


$ mingw32-make -f ./makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release
UNICODE=0 VENDOR=cb
if not exist gcc_mswdll mkdir gcc_mswdll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
c:\Program Files\CodeBlocks\bin\mingw32-make.exe: [gcc_mswdll] Error 258 (ignored)
if not exist ..\..\lib\gcc_dll\msw mkdir ..\..\lib\gcc_dll\msw
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
c:\Program Files\CodeBlocks\bin\mingw32-make.exe: *** [..\..\lib\gcc_dll\msw] Error 258


   I am answering my own question before I  post it in case someone else has a momentary lapse of intelligence and doesn't read the installation.  the the makefile.gcc doesn't work under msys.  It's for mingw using the windows command prompt.  :P

joe
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

Serge2005

Hello joe, try to compile separate MinGW's compilator... or without empty space in compiler's path (NOT c:\Program Files).
I compiled in MinGW successfully but without "./" i.e.  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb
OS: LMDE2-32bit with Xfce

thomas

Quote from: Serge_Novik on October 02, 2005, 09:38:44 AM... or without empty space in compiler's path (NOT c:\Program Files)
This is 99.99% certain the problem.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

jmccay

Quote from: thomas on October 02, 2005, 01:14:47 PM
Quote from: Serge_Novik on October 02, 2005, 09:38:44 AM... or without empty space in compiler's path (NOT c:\Program Files)
This is 99.99% certain the problem.

Actually, my problem was that I was trying to use msys to compile it, and it clearly says in the instructions to compile using the makefile under windows that it will not work with msys.
joe
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

David Perfors

hehe, no that isn't going to work :lol: was it so unclear that you didn't have to use msys?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring