Author Topic: Cannot Build SVN 12799 From Source  (Read 3538 times)

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 149
Cannot Build SVN 12799 From Source
« on: April 20, 2022, 12:05:05 am »
Running into a problem trying to build a 64-bit version of CB from source. Downloaded and built wxWidgets-3.1.6 libraries. Using, Codeblocks_wx31_64.cbp on SVN 12777 host built with wxWidgets-3.1.5, the following file can't be found. wxmsw31u
Build Log portion
Code
 sdk\scripting\bindings\sc_utils.o .objs31_64\sdk\scripting\bindings\sc_wxtypes.o .objs31_64\sdk\scripting\bindings\scriptbindings.o .objs31_64\sdk\scriptingmanager.o .objs31_64\sdk\scriptsecuritywarningdlg.o .objs31_64\sdk\scrollingdialog.o .objs31_64\sdk\sdk_events.o .objs31_64\sdk\searchresultslog.o .objs31_64\sdk\selecttargetdlg.o .objs31_64\sdk\templatemanager.o .objs31_64\sdk\tinywxuni.o .objs31_64\sdk\toolsmanager.o .objs31_64\sdk\uservarmanager.o .objs31_64\sdk\workspaceloader.o .objs31_64\sdk\xtra_res.o  -o devel31_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -m64  -lshfolder -ltxml -lwxscintilla_cb -lsquirrel -lgdi32 -lwxmsw31u
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw31u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (10 minute(s), 13 second(s))
2 error(s), 0 warning(s) (10 minute(s), 14 second(s))
I can't find any reference to that file in any library. The only place that it shows up is in the Build Log so far. Am using a desktop platform with Windows 10 (64-bit).

Any ideas of whats going wrong?




Offline stahta01

  • Lives here!
  • ****
  • Posts: 7683
    • My Best Post
Re: Cannot Build SVN 12799 From Source
« Reply #1 on: April 20, 2022, 01:11:53 am »
You likely built wxWidgets wrong. How did you build it?

Tim S.
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 Frank_CB

  • Almost regular
  • **
  • Posts: 149
Re: Cannot Build SVN 12799 From Source
« Reply #2 on: April 20, 2022, 01:39:46 am »
@stahta01
cd %wxwin%\build\msw
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=1 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=1
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=0 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=0
mingw32-make.exe CFG=64 BUILD=Release SHARED=0 MONOLITHIC=0 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=0 MONOLITHIC=0

Command line superceeds configure.gcc where shared and monolithic are both set to 1.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7683
    • My Best Post
Re: Cannot Build SVN 12799 From Source
« Reply #3 on: April 20, 2022, 02:02:29 am »
@stahta01
cd %wxwin%\build\msw
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=1 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=1
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=0 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=1 MONOLITHIC=0
mingw32-make.exe CFG=64 BUILD=Release SHARED=0 MONOLITHIC=0 clean
mingw32-make.exe CFG=64 BUILD=Release SHARED=0 MONOLITHIC=0

Command line superceeds configure.gcc where shared and monolithic are both set to 1.

I never had good luck doing MONOLITHIC=0 and MONOLITHIC=1 in the same folder; I always had to delete and restart the build.

And, CB did not two years ago work with CFG=64; without editing the CB project.

CB needs SHARED=1 MONOLITHIC=1 build.

Tim S.
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 Frank_CB

  • Almost regular
  • **
  • Posts: 149
Re: Cannot Build SVN 12799 From Source
« Reply #4 on: April 20, 2022, 02:23:53 am »
Quote
And, CB did not two years ago work with CFG=64; without editing the CB project.

What did you actually have to edit?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7683
    • My Best Post
Re: Cannot Build SVN 12799 From Source
« Reply #5 on: April 20, 2022, 11:55:32 am »
Quote
And, CB did not two years ago work with CFG=64; without editing the CB project.

What did you actually have to edit?

Not sure anymore it might have been a custom variable or a lot more.

Edit: Try editing "WX_CFG"
Edit2: You might need to edit "WX_SUFFIX" because you likely built a debug version of wxWidgets.
Note: I suggest following the CB wxWidgets build directions because this is likely just a start of problems.
Edit3: https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#Build_wxWidgets_Library
Note: The building wxWidgets directions have changed some since I last read them.

Tim S.
« Last Edit: April 20, 2022, 05:34:53 pm 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 Frank_CB

  • Almost regular
  • **
  • Posts: 149
Re: Cannot Build SVN 12799 From Source
« Reply #6 on: April 20, 2022, 07:06:16 pm »
@stahta01
I have rebuilt wxwidgets316 with CFG=64, Shared=1 and MONOLITHIC=1. Deleted left-over obj31_64,  devel31_64 and output31_64 directories from previous successful build of SVN 12777 with wxwidgets315. Have always set WX_CFG TO 64. Re-ordered the Search Directories for the Compiler and Resource Compiler to ensure setup.h was included first. Have now successfully built the core of CB 12799.

The left-over directories were causing the error.

Thanks.