Thread: Building wxWindows on MacOS X
Howdy. I'm new here. Nice to meet y'all. I'm trying to make wxWindows on my MacOS 10.3 system (as a prereq for pgadmin), I get the following error: ./bk-deps g++ -c -o monodll_dc.o -Ilib/wx/include/mac-2.5 -I./include -I./src/png -I./src/jpeg -I./src/tiff -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fpascal-strings -I./src/mac/morefilex -I/Developer/Headers/FlatCarbon -D__WXMAC__ -I./include -I./src/tiff -I./src/jpeg -I./src/png -DwxUSE_BASE=1 -DWXMAKINGDLL -O2 -Wall -fno-common -dynamic -fPIC src/mac/dc.cpp src/mac/dc.cpp:1282: error: parse error before `<<' token src/mac/dc.cpp:1287: error: parse error before `short' make: *** [monodll_dc.o] Error 1 I'm using wxWindows-pgAdmin3-20030831.tar.gz. Unfortunately, I don't have enough C++ knowledge to troubleshoot this. Can anyone lend a hand? I'm looking forward to getting pgadmin working in OS X! Thanks! Leon
Leon Out wrote: > Howdy. I'm new here. Nice to meet y'all. > > I'm trying to make wxWindows on my MacOS 10.3 system (as a prereq for > pgadmin), I get the following error: > > ./bk-deps g++ -c -o monodll_dc.o -Ilib/wx/include/mac-2.5 -I./include > -I./src/png -I./src/jpeg -I./src/tiff -D_FILE_OFFSET_BITS=64 > -D_LARGE_FILES -fpascal-strings -I./src/mac/morefilex > -I/Developer/Headers/FlatCarbon -D__WXMAC__ -I./include -I./src/tiff > -I./src/jpeg -I./src/png -DwxUSE_BASE=1 -DWXMAKINGDLL -O2 -Wall > -fno-common -dynamic -fPIC src/mac/dc.cpp > src/mac/dc.cpp:1282: error: parse error before `<<' token > src/mac/dc.cpp:1287: error: parse error before `short' > make: *** [monodll_dc.o] Error 1 > > I'm using wxWindows-pgAdmin3-20030831.tar.gz. Unfortunately, I don't > have enough C++ knowledge to troubleshoot this. Can anyone lend a hand? > > I'm looking forward to getting pgadmin working in OS X! This very much sounds like a leftover of a cvs conflict, marking the conflicting lines. To start, please use our latest snapshot; the one you're using is too outdated for current pgAdmin3. Regards, Andreas
Thanks, Andreas. I got the snapshot recently mentioned here (wxWindows-pgAdmin3-20031010-8). wxWindows now builds nicely. However, I can't build contrib/src/stc. Here's what happens: --- BEGIN ERROR --- g++ -dynamiclib -single_module -o ../../../lib/libwx_mac_stc-2.5.1.0.0.dylib stcdll_PlatWX.o stcdll_ScintillaWX.o stcdll_stc.o stcdll_AutoComplete.o stcdll_CallTip.o stcdll_CellBuffer.o stcdll_ContractionState.o stcdll_Document.o stcdll_DocumentAccessor.o stcdll_Editor.o stcdll_ExternalLexer.o stcdll_Indicator.o stcdll_KeyMap.o stcdll_KeyWords.o stcdll_LexAVE.o stcdll_LexAda.o stcdll_LexAsm.o stcdll_LexBaan.o stcdll_LexBullant.o stcdll_LexCPP.o stcdll_LexCSS.o stcdll_LexConf.o stcdll_LexCrontab.o stcdll_LexEiffel.o stcdll_LexEScript.o stcdll_LexFortran.o stcdll_LexHTML.o stcdll_LexLisp.o stcdll_LexLout.o stcdll_LexLua.o stcdll_LexMMIXAL.o stcdll_LexMatlab.o stcdll_LexNsis.o stcdll_LexOthers.o stcdll_LexPOV.o stcdll_LexPS.o stcdll_LexPascal.o stcdll_LexPerl.o stcdll_LexPython.o stcdll_LexRuby.o stcdll_LexSQL.o stcdll_LexScriptol.o stcdll_LexVB.o stcdll_LineMarker.o stcdll_PropSet.o stcdll_RESearch.o stcdll_ScintillaBase.o stcdll_Style.o stcdll_StyleContext.o stcdll_UniConversion.o stcdll_ViewStyle.o stcdll_WindowAccessor.o stcdll_XPM.o -framework Carbon -framework System -L../../../lib -install_name /usr/local/lib/libwx_mac_stc-2.5.1.dylib -compatibility_version 2.5.1 -current_version 2.5.1 -lwxtiff -lwxjpeg -lwxpng -lwxexpat -framework Carbon -framework System -lz -lpthread -liconv -lwx_mac_core-2.5 -lwx_base_carbon-2.5 /usr/bin/libtool: can't locate file for: -lwxtiff /usr/bin/libtool: file: -lwxtiff is not an object file (not allowed in a library) /usr/bin/libtool: can't locate file for: -lwxjpeg /usr/bin/libtool: file: -lwxjpeg is not an object file (not allowed in a library) /usr/bin/libtool: can't locate file for: -lwxpng /usr/bin/libtool: file: -lwxpng is not an object file (not allowed in a library) /usr/bin/libtool: can't locate file for: -lwxexpat /usr/bin/libtool: file: -lwxexpat is not an object file (not allowed in a library) make: *** [../../../lib/libwx_mac_stc-2.5.1.0.0.dylib] Error 1 --- END ERROR --- I'm following the unix compilation instructions, but I did build wxWindows without GTK support. I'm assuming it's not required on the Mac. Is there a more OS X-centric install document anywhere? Thanks for your help! Leon On Dec 9, 2003, at 11:34 AM, Andreas Pflug wrote: > Leon Out wrote: > >> Howdy. I'm new here. Nice to meet y'all. >> >> I'm trying to make wxWindows on my MacOS 10.3 system (as a prereq for >> pgadmin), I get the following error: >> >> ./bk-deps g++ -c -o monodll_dc.o -Ilib/wx/include/mac-2.5 -I./include >> -I./src/png -I./src/jpeg -I./src/tiff -D_FILE_OFFSET_BITS=64 >> -D_LARGE_FILES -fpascal-strings -I./src/mac/morefilex >> -I/Developer/Headers/FlatCarbon -D__WXMAC__ -I./include -I./src/tiff >> -I./src/jpeg -I./src/png -DwxUSE_BASE=1 -DWXMAKINGDLL -O2 -Wall >> -fno-common -dynamic -fPIC src/mac/dc.cpp >> src/mac/dc.cpp:1282: error: parse error before `<<' token >> src/mac/dc.cpp:1287: error: parse error before `short' >> make: *** [monodll_dc.o] Error 1 >> >> I'm using wxWindows-pgAdmin3-20030831.tar.gz. Unfortunately, I don't >> have enough C++ knowledge to troubleshoot this. Can anyone lend a >> hand? >> >> I'm looking forward to getting pgadmin working in OS X! > > This very much sounds like a leftover of a cvs conflict, marking the > conflicting lines. To start, please use our latest snapshot; the one > you're using is too outdated for current pgAdmin3. > > Regards, > Andreas > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Leon Out wrote: > Thanks, Andreas. I got the snapshot recently mentioned here > (wxWindows-pgAdmin3-20031010-8). wxWindows now builds nicely. However, > I can't build contrib/src/stc. Here's what happens: > > --- BEGIN ERROR --- > g++ -dynamiclib -single_module -o > ../../../lib/libwx_mac_stc-2.5.1.0.0.dylib stcdll_PlatWX.o > stcdll_ScintillaWX.o stcdll_stc.o stcdll_AutoComplete.o > stcdll_CallTip.o stcdll_CellBuffer.o stcdll_ContractionState.o > stcdll_Document.o stcdll_DocumentAccessor.o stcdll_Editor.o > stcdll_ExternalLexer.o stcdll_Indicator.o stcdll_KeyMap.o > stcdll_KeyWords.o stcdll_LexAVE.o stcdll_LexAda.o stcdll_LexAsm.o > stcdll_LexBaan.o stcdll_LexBullant.o stcdll_LexCPP.o stcdll_LexCSS.o > stcdll_LexConf.o stcdll_LexCrontab.o stcdll_LexEiffel.o > stcdll_LexEScript.o stcdll_LexFortran.o stcdll_LexHTML.o > stcdll_LexLisp.o stcdll_LexLout.o stcdll_LexLua.o stcdll_LexMMIXAL.o > stcdll_LexMatlab.o stcdll_LexNsis.o stcdll_LexOthers.o stcdll_LexPOV.o > stcdll_LexPS.o stcdll_LexPascal.o stcdll_LexPerl.o stcdll_LexPython.o > stcdll_LexRuby.o stcdll_LexSQL.o stcdll_LexScriptol.o stcdll_LexVB.o > stcdll_LineMarker.o stcdll_PropSet.o stcdll_RESearch.o > stcdll_ScintillaBase.o stcdll_Style.o stcdll_StyleContext.o > stcdll_UniConversion.o stcdll_ViewStyle.o stcdll_WindowAccessor.o > stcdll_XPM.o -framework Carbon -framework System -L../../../lib > -install_name /usr/local/lib/libwx_mac_stc-2.5.1.dylib > -compatibility_version 2.5.1 -current_version 2.5.1 -lwxtiff > -lwxjpeg -lwxpng -lwxexpat -framework Carbon -framework System -lz > -lpthread -liconv -lwx_mac_core-2.5 -lwx_base_carbon-2.5 > /usr/bin/libtool: can't locate file for: -lwxtiff > /usr/bin/libtool: file: -lwxtiff is not an object file (not allowed in > a library) > /usr/bin/libtool: can't locate file for: -lwxjpeg > /usr/bin/libtool: file: -lwxjpeg is not an object file (not allowed in > a library) > /usr/bin/libtool: can't locate file for: -lwxpng > /usr/bin/libtool: file: -lwxpng is not an object file (not allowed in > a library) > /usr/bin/libtool: can't locate file for: -lwxexpat > /usr/bin/libtool: file: -lwxexpat is not an object file (not allowed > in a library) > make: *** [../../../lib/libwx_mac_stc-2.5.1.0.0.dylib] Error 1 > --- END ERROR --- > Hi Leon, I'm the wrong person to ask about MacOS, so I post it on pgadmin-hackers. Actually, I'm not sure if that wx version compiles successfully at all on MacOS X. Still, some suspect: Maybe you need some "enable-monolithic" option to build correctly, wouldn't be the first platform that needs it. In case you don't get it compiled in any way, and nobody of the Mac guys can help you, please use a current wx cvs snapshot and try if that compiles for you. If it does, I can help you further to add needed patches, and we'll be upgrading our snapshot to get pgadmin3 MacOSX10.3 compatible. Regards, Andreas
Hi Just for the record in case other stumble over the same problem (since you meanwhile used a newer wx snapshot) You should either get CVS with the 2.4 branch, or apply the following diff http://cvs.wxwindows.org/viewcvs.cgi/wxWindows/src/mac/dc.cpp.diff?r1=1.56.2 .11&r2=1.56.2.12 (the reason is not a cvs merge problem, but a newly defined macro and a bitwise shift op) Best, Stefan > -----Original Message----- > From: pgadmin-hackers-owner@postgresql.org [mailto:pgadmin-hackers- > owner@postgresql.org] On Behalf Of Leon Out > Sent: Dienstag, 9. Dezember 2003 17:26 > To: pgadmin-hackers@postgresql.org > Subject: [pgadmin-hackers] Building wxWindows on MacOS X > > Howdy. I'm new here. Nice to meet y'all. > > I'm trying to make wxWindows on my MacOS 10.3 system (as a prereq for > pgadmin), I get the following error: > > ./bk-deps g++ -c -o monodll_dc.o -Ilib/wx/include/mac-2.5 -I./include > -I./src/png -I./src/jpeg -I./src/tiff -D_FILE_OFFSET_BITS=64 > -D_LARGE_FILES -fpascal-strings -I./src/mac/morefilex > -I/Developer/Headers/FlatCarbon -D__WXMAC__ -I./include -I./src/tiff > -I./src/jpeg -I./src/png -DwxUSE_BASE=1 -DWXMAKINGDLL -O2 -Wall > -fno-common -dynamic -fPIC src/mac/dc.cpp > src/mac/dc.cpp:1282: error: parse error before `<<' token > src/mac/dc.cpp:1287: error: parse error before `short' > make: *** [monodll_dc.o] Error 1 > > I'm using wxWindows-pgAdmin3-20030831.tar.gz. Unfortunately, I don't > have enough C++ knowledge to troubleshoot this. Can anyone lend a hand? > > I'm looking forward to getting pgadmin working in OS X! > > Thanks! > > Leon > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html
Actually, the answer in my case was to add --with-libtiff --with-libpng --with-libjpeg --with-expat to my wxWindows configure. I was able to build wxWindows, stc, and xrc with no problems. pgadmin is compiling now. Leon On Dec 10, 2003, at 2:21 AM, Stefan Csomor wrote: > Hi Leon > > I fear you are using the wrong makefile for stc. You did run > ../configure > from a macbuild directory of some sort now you must descend into > contrib/src/stc of THIS macbuild directory, not into the toplevel > contrib. > > HTH > > Stefan > >> -----Original Message----- >> From: pgadmin-hackers-owner@postgresql.org [mailto:pgadmin-hackers- >> owner@postgresql.org] On Behalf Of Leon Out >> Sent: Dienstag, 9. Dezember 2003 21:55 >> To: pgadmin-hackers@postgresql.org >> Subject: Re: [pgadmin-hackers] Building wxWindows on MacOS X >> >> Thanks, Andreas. I got the snapshot recently mentioned here >> (wxWindows-pgAdmin3-20031010-8). wxWindows now builds nicely. However, >> I can't build contrib/src/stc. Here's what happens: >> >> --- BEGIN ERROR --- >> g++ -dynamiclib -single_module -o >> ../../../lib/libwx_mac_stc-2.5.1.0.0.dylib stcdll_PlatWX.o >> stcdll_ScintillaWX.o stcdll_stc.o stcdll_AutoComplete.o >> stcdll_CallTip.o stcdll_CellBuffer.o stcdll_ContractionState.o >> stcdll_Document.o stcdll_DocumentAccessor.o stcdll_Editor.o >> stcdll_ExternalLexer.o stcdll_Indicator.o stcdll_KeyMap.o >> stcdll_KeyWords.o stcdll_LexAVE.o stcdll_LexAda.o stcdll_LexAsm.o >> stcdll_LexBaan.o stcdll_LexBullant.o stcdll_LexCPP.o stcdll_LexCSS.o >> stcdll_LexConf.o stcdll_LexCrontab.o stcdll_LexEiffel.o >> stcdll_LexEScript.o stcdll_LexFortran.o stcdll_LexHTML.o >> stcdll_LexLisp.o stcdll_LexLout.o stcdll_LexLua.o stcdll_LexMMIXAL.o >> stcdll_LexMatlab.o stcdll_LexNsis.o stcdll_LexOthers.o stcdll_LexPOV.o >> stcdll_LexPS.o stcdll_LexPascal.o stcdll_LexPerl.o stcdll_LexPython.o >> stcdll_LexRuby.o stcdll_LexSQL.o stcdll_LexScriptol.o stcdll_LexVB.o >> stcdll_LineMarker.o stcdll_PropSet.o stcdll_RESearch.o >> stcdll_ScintillaBase.o stcdll_Style.o stcdll_StyleContext.o >> stcdll_UniConversion.o stcdll_ViewStyle.o stcdll_WindowAccessor.o >> stcdll_XPM.o -framework Carbon -framework System -L../../../lib >> -install_name /usr/local/lib/libwx_mac_stc-2.5.1.dylib >> -compatibility_version 2.5.1 -current_version 2.5.1 -lwxtiff >> -lwxjpeg >> -lwxpng -lwxexpat -framework Carbon -framework System -lz >> -lpthread >> -liconv -lwx_mac_core-2.5 -lwx_base_carbon-2.5 >> /usr/bin/libtool: can't locate file for: -lwxtiff >> /usr/bin/libtool: file: -lwxtiff is not an object file (not allowed in >> a library) >> /usr/bin/libtool: can't locate file for: -lwxjpeg >> /usr/bin/libtool: file: -lwxjpeg is not an object file (not allowed in >> a library) >> /usr/bin/libtool: can't locate file for: -lwxpng >> /usr/bin/libtool: file: -lwxpng is not an object file (not allowed in >> a >> library) >> /usr/bin/libtool: can't locate file for: -lwxexpat >> /usr/bin/libtool: file: -lwxexpat is not an object file (not allowed >> in >> a library) >> make: *** [../../../lib/libwx_mac_stc-2.5.1.0.0.dylib] Error 1 >> --- END ERROR --- >> >> I'm following the unix compilation instructions, but I did build >> wxWindows without GTK support. I'm assuming it's not required on the >> Mac. Is there a more OS X-centric install document anywhere? >> >> Thanks for your help! >> >> Leon >> >> >> On Dec 9, 2003, at 11:34 AM, Andreas Pflug wrote: >> >>> Leon Out wrote: >>> >>>> Howdy. I'm new here. Nice to meet y'all. >>>> >>>> I'm trying to make wxWindows on my MacOS 10.3 system (as a prereq >>>> for >>>> pgadmin), I get the following error: >>>> >>>> ./bk-deps g++ -c -o monodll_dc.o -Ilib/wx/include/mac-2.5 >>>> -I./include >>>> -I./src/png -I./src/jpeg -I./src/tiff -D_FILE_OFFSET_BITS=64 >>>> -D_LARGE_FILES -fpascal-strings -I./src/mac/morefilex >>>> -I/Developer/Headers/FlatCarbon -D__WXMAC__ -I./include >>>> -I./src/tiff >>>> -I./src/jpeg -I./src/png -DwxUSE_BASE=1 -DWXMAKINGDLL -O2 -Wall >>>> -fno-common -dynamic -fPIC src/mac/dc.cpp >>>> src/mac/dc.cpp:1282: error: parse error before `<<' token >>>> src/mac/dc.cpp:1287: error: parse error before `short' >>>> make: *** [monodll_dc.o] Error 1 >>>> >>>> I'm using wxWindows-pgAdmin3-20030831.tar.gz. Unfortunately, I don't >>>> have enough C++ knowledge to troubleshoot this. Can anyone lend a >>>> hand? >>>> >>>> I'm looking forward to getting pgadmin working in OS X! >>> >>> This very much sounds like a leftover of a cvs conflict, marking the >>> conflicting lines. To start, please use our latest snapshot; the one >>> you're using is too outdated for current pgAdmin3. >>> >>> Regards, >>> Andreas >>> >>> >>> ---------------------------(end of >>> broadcast)--------------------------- >>> TIP 2: you can get off all lists at once with the unregister command >>> (send "unregister YourEmailAddressHere" to >>> majordomo@postgresql.org) >> >> >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 1: subscribe and unsubscribe commands go to >> majordomo@postgresql.org >