wxPdfDocument how to compile for code::blocs? Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxPdfDocument how to compile for code::blocs?

Post by cutecode »

Hello
I didn't find information on how to compile wxPdfDocument with mingw32 on Windows.
Is this command right?

Code: Select all

mingw32-make -f wxpdfdoc.make BUILD=release SHARED=1 -IE:\wx\lib\gcc_dll\mswu
Thank you
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxPdfDocument how to compile for code::blocs?

Post by utelle »

cutecode wrote: Wed Nov 25, 2020 12:18 am I didn't find information on how to compile wxPdfDocument with mingw32 on Windows.
The readme file coming with wxPdfDocument contains a few words about installing/compiling the library. It doesn't mention MinGW explicitly, but GCC (which is the compiler used by MinGW).

For building with GCC (resp MinGW) you use the Makefile located in subfolder build of the wxPdfDocument distribution. Additionally, you should adjust the configuratin file config.gcc to match your environment, if necessary.
cutecode wrote: Wed Nov 25, 2020 12:18 am Is this command right?

Code: Select all

mingw32-make -f wxpdfdoc.make BUILD=release SHARED=1 -IE:\wx\lib\gcc_dll\mswu
The easiest approach would be to use the default makefile. That is, invoke make as follows:

Code: Select all

mingw32-make [config=<configuration>] [<target>]
Default configuration is debug_win32, default target is all. Look into Makefile to find out which configurations and targets are available.
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxPdfDocument how to compile for code::blocs?

Post by cutecode »

thank you
this did help

Code: Select all

mingw32-make config=release_wxdll_win32  all
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
Post Reply