Menu

Cannot rebuild LDAP Explorer 0.6 for Windows

2004-11-05
2013-04-25
  • Nobody/Anonymous

    I am unable to rebuild the source code for version 06 using Visual C++ 6.0.
    I just use the .dsw (or .dsp) project:

    LB_BinaryDlg.cpp
    c:\wxwindows-2.4.2\include\wx\cursor.h(47) : error C2065: 'wxIsBusy' : undeclared identifier
    c:\wxwindows-2.4.2\include\wx\cursor.h(49) : error C2653: 'wxBusyCursor' : is not a class or namespace name
    c:\wxwindows-2.4.2\include\wx\cursor.h(49) : error C2065: 'GetStoredCursor' : undeclared identifier
    c:\wxwindows-2.4.2\include\wx\cursor.h(57) : error C2653: 'wxBusyCursor' : is not a class or namespace name

    There is also a missing project XRCProt.dsp in the source code...

    What file(s) should I modify for Windows?
    I have rebuilt wxWindows 2.4.2.

    It looks like LDAP Explorer does not understand any defintions starting with "wx"

    Thanks for help.

     
    • Laurent Ulrich

      Laurent Ulrich - 2004-11-06

      Hello,
      Don't worry about the missing project, XRCProt was an utility project, that has no use in LDAPExplorerTool.

      I have succeeded to rebuild LDAPExplorerTool using a fresh install of wxWindows 2.4.2 and the 0.6 version of LDAPExplorerTool.

      I think that your problem may be due to a wrong configuration of wxWindows or LDAPExplorerTool.

      Did you set the WXWIN system variable to the root path of wxWindows ? This variable is used in the VisualC++ project  to refer to wxWindows includes and  libraries.

       
    • Nobody/Anonymous

      I have already put the WXWIN in the environment variables (both user and system variables). In my case, it is C:\wxWindows-2.4.2.

      For example, the first error in LB_BinaryDlg.cpp:
      (c:\wxwindows-2.4.2\include\wx\cursor.h(47) : error C2065: 'wxIsBusy' : undeclared identifier )
      is pointing to the right directory but Visual C++ does not find the definition for wxIsBusy(): found in C:\wxWindows-2.4.2\src\msw\utils.cpp. ...

      I am using Visual C++ 6.0 on Windows XP Professional using Microsoft SDK libraries).
      I also have replaced the OpenLDAP SDK by Microsoft Wldap32.lib  (I have updated the OpenLdap headers by those required by Microsoft SDK).

      Did you have to modify any file ( .h or project files) to be able to recompile both projects (wxWindows and LDAPExplorerTool) on Windows XP and using VC++?

      Thanks for your help.

       
    • Laurent Ulrich

      Laurent Ulrich - 2004-11-08

      Well, your problem seems to be a bit strange...
      I think its nothing more than a configuration problem, but I can't imagine which it is.

      I didn't have to modify anything to build both wxWindows and LDAPExplorerTool and it worked at the first try.

      Did you build the same configurations for both wxWindows and LDAPExplorerTool ( I built "releases" ) ?

      Have you got any other include directories configured in your VisualC++ environement ( like in Tools/Options Directories tab ) that could interfere with wxWindows ones ?

      Are you able to build the samples in the wxWindows directory ?

      The last thing you could do is to begin a fresh installation of wxWindows and LDAPExplorerTool and try again.

       
    • Laurent Ulrich

      Laurent Ulrich - 2004-11-08

      I just thought about a question : what distribution did you use for wxWindows-2.4.2 ? Did you use the Win32 setup one (wxMSW-2.4.2-setup.zip)?

       
    • Nobody/Anonymous

      Thank you very much for your help and patience.

      I started again on a fresh directory.
      I use wxMSW-2.4.2-setup.zip and LDAPExplorerTool 0.6

      I have no problem rebuilding wxWindows-2.4.2 in debug mode.
      For the LDAPExplorerTool project, after deleting the XRCprot.dsp, I used LDAPExplorerTool.dsw to rebuild in Debug mode.

      And I got the following error:
      --------------------Configuration: LDAPExplorerTool - Win32 Debug--------------------
      Compiling...
      Precomp.cpp
      c:\ldapbrowsercode\wxwindows-2.4.2\include\wx\platform.h(85) : fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory
      Error executing cl.exe.
      LDAPExplorerTool.exe - 1 error(s), 0 warning(s)

      In fact, I cannot find any setup.h file in the directory..  but such a file exists in \include\wx\msw\   Should I use this one?

      Thanks

       
    • Nobody/Anonymous

      I forgot to mention that I have tried
      some samples in wxWindows directory:

      artprov   compiles and runs
      calendar compiles and runs
      notebook compiles and runs.

      But Console project:
      -Configuration: console - Win32 Debug--------------------
      Compiling...
      console.cpp
      ../../include\wx/platform.h(85) : fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory
      Error executing cl.exe.

      console.exe - 1 error(s), 0 warning(s)

      Thanks again

       
    • Laurent Ulrich

      Laurent Ulrich - 2004-11-10

      The setup.h file should have been created during the build of the wxWindows library into the lib/msw/wx directory of wxWindows.
      In the project settings of LDAPExplorerTool this directory is included like this ( wxWindows sources refer to setup.h by a #include <wx/setup.h>):
      $(WXWIN)/Lib/msw

      So if this directory does not exist in your wxWindows installation, just create it an copy into it the setup.h  that you have found in include/wx/msw (it is the one that the build should have copied)

      If this directory already exists, it means that your WXWIN environment variable does not point to the wxWindows root directory.

      Remember that you have to stop and start VisualC++ after you have updated WXWIN.

      I hope this will be helpful to you and let me know if you succeeded to build LDAPExplorerTool.

       
    • Nobody/Anonymous

      You were right: it was a configuration problem:

      Since the beginning, I was building both wxWindows and LDAPExplorerTool in debug mode.

      The setup.h file was found in $(WXWIN)/Lib/mswd (debug directory) and not in $(WXWIN)/Lib/msw (release directory).

      This explains why I got all the 'wx/setup.h' file not found errors and you were able to rebuild both projects in release mode.

      As a quick fix for now, I copied the setup.h file from mswd into msw. ( I will update my environment variables).

      Next thing: I was not able to run the application:
      It was not able to find the resources directory.

      From the log file:
      11/11/2004 10:39:46 AM: Can not enumerate files in directory 'resources\' (error 3: the system cannot find the path specified.)
      11/11/2004 10:39:46 AM: XRC resource 'main_frame' (class 'wxFrame') not found!
      11/11/2004 10:39:46 AM: Failed to find good MainFrame info in global resources object
      11/11/2004 10:39:46 AM: XRC resource 'main_menu' (class 'wxMenuBar') not found!
      11/11/2004 10:39:46 AM: XRC resource 'main_toolbar' (class 'wxToolBar') not found!
      11/11/2004 10:39:46 AM: XRC resource 'about_dialog' (class 'wxDialog') not found!

      To resolve this, I copied the files and directories from the directory where I have first installed the LDAPExplorerTool binaries to my development directory where I have the src, include, debian,  Win32_debug, etc.  directories.

      Now everything works fine.

      Thank you very much for your help and patience.
      This is a great tool to explore LDAP.

       

Log in to post a comment.