Author Topic: wxWidgets 2.6 (MSW, GCC) installation instructions  (Read 145146 times)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #45 on: September 21, 2005, 06:50:18 pm »
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...

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #46 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 :(  :( :(
OS: LMDE2-32bit with Xfce

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #47 on: September 21, 2005, 08:23:23 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...

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #48 on: September 21, 2005, 08:38:23 pm »
 :( 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #49 on: September 21, 2005, 08:59:32 pm »
Can you post the errors please?
Be patient!
This bug will be fixed soon...

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #50 on: September 21, 2005, 09:04:53 pm »
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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #51 on: September 21, 2005, 09:22:33 pm »
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...

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #52 on: September 21, 2005, 09:31:40 pm »
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

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #53 on: September 21, 2005, 11:54:17 pm »
We'd appreciate it if you deleted your previous 3 "doesn't work" comments that you posted after our answers :lol:

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #54 on: September 22, 2005, 09:10:20 am »
:) 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  :)
« Last Edit: September 22, 2005, 09:16:15 am by Serge_Novik »
OS: LMDE2-32bit with Xfce

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #55 on: September 30, 2005, 01:08:47 am »
I messed with my setup & I cannot figure out what is wrong.  Does anyone have any ideas what could cause this?


Code
$ 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.

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #56 on: October 02, 2005, 09:38:44 am »
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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #57 on: October 02, 2005, 01:14:47 pm »
... 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."

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #58 on: October 12, 2005, 02:23:50 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.

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: wxWidgets 2.6 (MSW, GCC) installation instructions
« Reply #59 on: October 12, 2005, 11:28:08 am »
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