Make error compiling master Topic is solved

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
User avatar
rocrail
Earned some good credits
Earned some good credits
Posts: 108
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Make error compiling master

Post by rocrail » Sat Jan 19, 2019 10:10 am

Hi,

I got a make error at compiling wxWidgets master.
I did start clean:

Code: Select all

git clone https://github.com/wxWidgets/wxWidgets.git
cd wxWidgets
mkdir macbuild
cd macbuild
../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-macosx-version-min=10.13 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl
The make can't find ../src/png/png.c
make: *** No rule to make target `../src/png/png.c', needed by `wxpng_png.o'. Stop.

Code: Select all

make
/Users/rob/Projects/wxWidgets/macbuild/bk-deps gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13 -c -o wxregex_regcomp.o -DNDEBUG -D__WXOSX_COCOA__  -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -I/Users/rob/Projects/wxWidgets/macbuild/lib/wx/include/osx_cocoa-unicode-3.1 -I../include -Wall -Wundef -O2 -fno-common -fvisibility=hidden ../src/regex/regcomp.c
/Users/rob/Projects/wxWidgets/macbuild/bk-deps gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13 -c -o wxregex_regexec.o -DNDEBUG -D__WXOSX_COCOA__  -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -I/Users/rob/Projects/wxWidgets/macbuild/lib/wx/include/osx_cocoa-unicode-3.1 -I../include -Wall -Wundef -O2 -fno-common -fvisibility=hidden ../src/regex/regexec.c
/Users/rob/Projects/wxWidgets/macbuild/bk-deps gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13 -c -o wxregex_regerror.o -DNDEBUG -D__WXOSX_COCOA__  -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -I/Users/rob/Projects/wxWidgets/macbuild/lib/wx/include/osx_cocoa-unicode-3.1 -I../include -Wall -Wundef -O2 -fno-common -fvisibility=hidden ../src/regex/regerror.c
/Users/rob/Projects/wxWidgets/macbuild/bk-deps gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.13 -c -o wxregex_regfree.o -DNDEBUG -D__WXOSX_COCOA__  -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -I/Users/rob/Projects/wxWidgets/macbuild/lib/wx/include/osx_cocoa-unicode-3.1 -I../include -Wall -Wundef -O2 -fno-common -fvisibility=hidden ../src/regex/regfree.c
rm -f /Users/rob/Projects/wxWidgets/macbuild/lib/libwxregexu-3.1.a
ar rc /Users/rob/Projects/wxWidgets/macbuild/lib/libwxregexu-3.1.a wxregex_regcomp.o wxregex_regexec.o wxregex_regerror.o wxregex_regfree.o
ranlib /Users/rob/Projects/wxWidgets/macbuild/lib/libwxregexu-3.1.a
make: *** No rule to make target `../src/png/png.c', needed by `wxpng_png.o'.  Stop.
What should I change to get it compiled? This procedure was till the last git pull always successful.
Best regards,
Rob.

Kvaz1r
Experienced Solver
Experienced Solver
Posts: 53
Joined: Tue Jun 07, 2016 1:07 pm

Re: Make error compiling master

Post by Kvaz1r » Sat Jan 19, 2019 10:53 am

There is also need to get submodules:
Building from Git Sources

User avatar
rocrail
Earned some good credits
Earned some good credits
Posts: 108
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Make error compiling master

Post by rocrail » Sat Jan 19, 2019 11:10 am

Thanks!
I should RTFM. 8)
Best regards,
Rob.

Post Reply