Thread: Compile Error: pgA1.3.6 (wx2.8.3, pgsql8.1.9)
Hi, I have a problem to compile pgadmin3-1.6.3 for PostgreSQL 8.1.9 in Ubuntu. The configuration and the installation of wxWidgets-2.8.3 as well as the configuration of pgadmin3-1.6.3 proceeded normally, but the compilation of pgadmin3-1.6.3 leaves me these error messages: ------ #>./configure ... config.status: executing depfiles commands PostgreSQL directory: /usr PostgreSQL pg_config binary: /usr/bin/pg_config PostgreSQL version: PostgreSQL 8.1.9 PostgreSQL SSL support: Present wxWidgets directory: /usr/local wxWidgets wx-config binary: /usr/local/bin/wx-config wxWidgets version: wxWidgets 2.8.3 Building a debug version of pgAdmin: No Statically linking pgAdmin: No Building a Mac OS X appbundle: No Include documentation: Yes pgAdmin configuration is now complete. You can now compile and install pgAdmin using 'make; make install'. ------ #>make ... Dans le fichier inclus à partir de ../src/include/pgAdmin3.h:22, à partir de ./pgAdmin3.cpp:13: ../src/include/ctl/ctlSQLBox.h:17:24: erreur: wx/stc/stc.h : Aucun fichier ou répertoire de ce type ./pgAdmin3.cpp:65:24: erreur: wx/ogl/ogl.h : Aucun fichier ou répertoire de ce type ../src/include/ctl/ctlSQLBox.h:37: erreur: expected class-name before «{» token ../src/include/ctl/ctlSQLBox.h:66: erreur: «wxStyledTextEvent» has not been declared ../src/include/frmMain.h:155: erreur: «wxStyledTextEvent» has not been declared ../src/include/frmMain.h: In member function «void frmMain::OnCopy(wxCommandEvent&)»: ../src/include/frmMain.h:149: erreur: «class ctlSQLBox» has no member named «Copy» ../src/include/frmQuery.h: At global scope: ../src/include/frmQuery.h:73: erreur: «wxStyledTextEvent» has not been declared ../src/include/frmQuery.h:74: erreur: «wxStyledTextEvent» has not been declared ./pgAdmin3.cpp: In member function «virtual bool pgAdmin3::OnInit()»: ./pgAdmin3.cpp:377: erreur: «wxOGLInitialize» was not declared in this scope make[2]: *** [pgAdmin3.o] Erreur 1 make[2]: quittant le répertoire « /usr/lib/pgadmin3-1.6.3/src » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /usr/lib/pgadmin3-1.6.3 » make: *** [all] Erreur 2 ------- I puts here the messages and the errors which I had during the compilation and the installation of wxWidgets-2.8.3: ------ #>./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=no' ... Configured wxWidgets 2.8.3 for `i686-pc-linux-gnu' Which GUI toolkit should wxWidgets use? GTK+ 2 Should wxWidgets be compiled into single library? noShould wxWidgets be compiled in debug mode? no Should wxWidgets be linked as a shared library? yesShould wxWidgets be compiled in Unicode mode? yes What level of wxWidgets compatibility should be enabled? wxWidgets 2.4 no wxWidgets 2.6 yes Whichlibraries should wxWidgets use? jpeg builtin png sys regex builtin tiff builtin zlib sys odbc no expat sys libmspack no sdl no ------ #>make (ok) ------ #>make install ...The installation of wxWidgets is finished. On certainplatforms (e.g. Linux) you'll now have to run ldconfigif you installeda shared library and also modify theLD_LIBRARY_PATH (or equivalent) environment variable. wxWidgets comes with no guarantees and doesn't claimto be suitable for any purpose. Read the wxWidgets Licence on licencing conditions.------------------------------------------------------ ---- Thanks to all who helped me fixing this. Rado R.
Hi. Probably, the contrib module has been forgotten. cd contrib gmake install Regards, Hiroshi Saito From: "DocSea - Rado RAMAHANDRY" > Configured wxWidgets 2.8.3 for `i686-pc-linux-gnu' > > Which GUI toolkit should wxWidgets use? GTK+ 2 > Should wxWidgets be compiled into single library? no > Should wxWidgets be compiled in debug mode? no > Should wxWidgets be linked as a shared library? yes > Should wxWidgets be compiled in Unicode mode? yes > What level of wxWidgets compatibility should be enabled? > wxWidgets 2.4 no > wxWidgets 2.6 yes > Which libraries should wxWidgets use? > jpeg builtin > png sys > regex builtin > tiff builtin > zlib sys > odbc no > expat sys > libmspack no > sdl no > ------ > #>make (ok) > ------ > #>make install > ... > The installation of wxWidgets is finished. On certain > platforms (e.g. Linux) you'll now have to run ldconfig > if you installed a shared library and also modify the > LD_LIBRARY_PATH (or equivalent) environment variable. > > wxWidgets comes with no guarantees and doesn't claim > to be suitable for any purpose. > > Read the wxWidgets Licence on licencing conditions. > ------------------------------------------------------
Hiroshi Saito a écrit : > Hi. > > Probably, the contrib module has been forgotten. > cd contrib > gmake install > > Regards, > Hiroshi Saito You are right, I had forgotten the contrib module and that's worked. However, if I run it: #>/usr/local/pgadmin3/bin/pgadmin3 /usr/local/pgadmin3/bin/pgadmin3: error while loading shared libraries: libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file or directory Thanks for your help, Rado R.
Hi. From: "DocSea - Rado RAMAHANDRY" > You are right, I had forgotten the contrib module and that's worked. > However, if I run it: > #>/usr/local/pgadmin3/bin/pgadmin3 > /usr/local/pgadmin3/bin/pgadmin3: error while loading shared libraries: > libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file > or directory Oops, are not it in /usr/local/lib? export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib: Regards, Hiroshi Saito
> Oops, are not it in /usr/local/lib? > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib: > > Regards, > Hiroshi Saito > Ah ok, it runs fine now. (after export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib) Thanks Hiroshi Saito, Rado R.