wxpdfdoc compilling error.

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
dkaip
Super wx Problem Solver
Super wx Problem Solver
Posts: 334
Joined: Wed Jan 20, 2010 1:15 pm

wxpdfdoc compilling error.

Post by dkaip »

In Mint Linux framework wxWidget i have compile with
../configure --enable-unicode --enable-monolithic --enable-debug --with-gtk --disable-shared --with-opengl --prefix=$(pwd)
For every project compiler and linkek i use..
`/home/a/wxWidgets/gtk-build/wx-config --cflags` and for linker `/home/a/wxWidgets/gtk-build/wx-config --libs all`
Downloading wxpdfdoc and making a folder asddddddddddddddddddd i use for configure ...
../configure --disable-shared --enable-static --with-wx-config="/home/a/wxWidgets/gtk-build/wx-config" --prefix=$(pwd) --with-pic
and for make...
make CXXFLAGS="-std=c++11" WX_CONFIG="/home/a/wxWidgets/gtk-build/wx-config --cflags" LIBS="/home/a/wxWidgets/gtk-build/wx-config --libs all"
But i take error ...
CXX samples/minimal/xmlwrite.o
CXXLD samples/minimal/minimal
g++: error: all: No such file or directory
g++: error: unrecognized command line option '--libs'
make: *** [samples/minimal/minimal] Error 1
With out --libs same condition without
g++: error: unrecognized command line option '--libs'
The folder is ...
/home/a/wxpdfdoc-temp/asddddddddddddddddddd/samples/minimal
How to compile?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxpdfdoc compilling error.

Post by ONEEYEMAN »

Hi,
You should compile wxPdfDoc with EXACTLY THE SAME set of options as wxWidgets. That also include all C{XX}/LDFLAGS you are trying to set up.

Thank you.
stahta01
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 550
Joined: Fri Nov 03, 2006 2:00 pm

Re: wxpdfdoc compilling error.

Post by stahta01 »

Code: Select all

make CXXFLAGS="-std=c++11" WX_CONFIG="/home/a/wxWidgets/gtk-build/wx-config --cflags" LIBS="/home/a/wxWidgets/gtk-build/wx-config --libs all"
Normally WX_CONFIG is set to the path to wx-config without "--cflags" option in it like "/home/a/wxWidgets/gtk-build/wx-config"
But, I forget what wxpdfdoc needs.

Tim S.
dkaip
Super wx Problem Solver
Super wx Problem Solver
Posts: 334
Joined: Wed Jan 20, 2010 1:15 pm

Re: wxpdfdoc compilling error.

Post by dkaip »

Finaly all are ok after many tries, like this... :)
../configure --disable-shared --enable-static --with-wx-config="/home/a/wxWidgets/gtk-build/wx-config" --prefix=$(pwd) --with-pic
make CXXFLAGS="-std=c++11" WX_CONFIG=/home/a/wxWidgets/gtk-build/wx-config
Thanks all for reply and help.
Jim.
Post Reply