Menu

Problem building on Linux

Help
2006-09-10
2012-12-07
  • Nobody/Anonymous

    Hello,

    The configuration using ./configure seems to finish OK, but when I run 'make' I get:
    In file included from rule.h:5,
                     from xmlrulereader.h:10,
                     from housestyle.h:12,
                     from styledialog.h:12,
                     from xmlcopyeditor.cpp:12:
    wrapregex.h:7:18: pcre.h: No such file or directory
    In file included from rule.h:5,
                     from xmlrulereader.h:10,
                     from housestyle.h:12,
                     from styledialog.h:12,
                     from xmlcopyeditor.cpp:12:
    wrapregex.h:35: error: ISO C++ forbids declaration of `pcre' with no type
    wrapregex.h:35: error: expected `;' before '*' token
    wrapregex.h:36: error: ISO C++ forbids declaration of `pcre_extra' with no type
    wrapregex.h:36: error: expected `;' before '*' token

    I can't find pcre.h on my (RHEL) system - what package is it in?

    Thanks

     
    • Nobody/Anonymous

      OK, sorry, found PCRE on the freshmeat home page.

       
    • gnschmidt

      gnschmidt - 2006-09-10

      Yes, I think all dependencies are listed at http://freshmeat.net/projects/xmlcopyeditor/. If the build fails at any other point, just let us know and we'll do our best to help.

       
    • Roberto Rosselli Del Turco

      For Ubuntu Linux users: there's a nice and perfectly working deb binary package available on this site:

      http://www.getdeb.net/

      Current (23/09/2006) version is 1.0.7.5.

      rehdon

       
    • gnschmidt

      gnschmidt - 2006-09-23

      Yes, I've recently added the available Linux packages (Arch, Fedora and Ubuntu) to the home page. If anyone has built others, please let me know and I'll add them to the list.

       
    • Nobody/Anonymous

      Hi there, I am also having problems building in Ubuntu Linux (5.10). Any change of making a static build of xml copy editor?

       
    • gnschmidt

      gnschmidt - 2006-11-21

      There is a static build of an earlier version for Dapper Drake (http://www.getdeb.net/search.php?release=Dapper&keywords=xml+copy+editor), but I don't have any way of creating static Ubuntu builds right now.

      If the Dapper build doesn't work for you (or is too old; it's 1.0.7.6), a from-source build should work if you can find and build wxGTK 2.7.1 in Unicode mode, plus stc in the contrib folder (I need to update INSTALL, which still has wxGTK 2.6.3). The other libraries should be readily available.

      I will move the application to wxGTK-2.8 when it comes out in a week or two. As this won't be a development release I expect it will be taken up by most distros, and certainly by Ubuntu.

      Sorry I can't be of more help right now. My next VM may well be a Ubuntu one, which would allow me to offer an up-to-date, static Ubuntu build.

       
    • Sérgio Agostinho

      Thanks, I'll try it.
      Anyway, I've installed an earlier version in Fedora Core 4 (I use Ubuntu at work and FC at home) in here: ftp://rpmfind.net/linux/sourceforge/x/xm/xml-copy-editor/xmlcopyeditor-1.0.8.1-1.i386.rpm
      I don't know if it works in other distros/releases, but since this build is not at sourceforge, so I'm posting the link here, in case someone might find it usefull.

      Keep up the good work!

       
    • gnschmidt

      gnschmidt - 2006-11-22

      Thanks Sergio, I will update the home page to show the fc4 and fc5 rpms.

       
    • Sérgio Agostinho

      Still on the subject, are you aware of Autopackage (http://autopackage.org/)? It's a software that produces "Windows-like" (that is, self-contained) installation packages. The software is then distributed in .package binary files that install themselves and resolve dependencies without any external package manager (apt, yum, etc). The best thing about it is that it works on any distro. I've tried installing/unistalling AMSN (Alvaro's Messenger) and it went pretty smooth. Check out their site and see if it is worth, since it may save you (and us :)) some time.

       
      • gnschmidt

        gnschmidt - 2006-12-01

        Sergio, thanks for this. I will certainly take a look at autopackage.

         
    • Roberto Rosselli Del Turco

      Another way to solve inter-distributions problems is to use alien, with

      sudo alien -d /home/roby/Desktop/Download/xmlcopyeditor-1.0.8.5-fedora-fc5-i386.rpm

      I managed to build and install the latest version of XCE as a debian package. Of course this doesn't mean that all compatibility problems are automatically solved (unfortunately), I had to create a symbolic link to the libtiff library (I have libtiff4, XCE wants libtiff3: perhaps you could make this  requirement upward-compatible Gerald?), to install a library (libxerces26c2) and to convert with alien another one (lipcre.so.0) not available under Ubuntu 6.06. Seems to work fine so far...

      Having a developer/contributor willing to provide deb packages would be a definite plus, however, at least for "milestone" releases.

      rehdon

      PS I pointed the more recent versions to the getdeb site maintainer, but I suspect he's got his hands full or he's tired of my XCE blubbering because no updated packages showed up ;)

       
      • gnschmidt

        gnschmidt - 2006-12-05

        Thanks for your help, Roberto! I think the tiff3 dependency is set in the wxGTK Makefiles.

        I expect wxGTK2.8.0 (which is due out any day now) will resolve many of these issues. Taking my cue from a recent post, I will do my best to create an autopackage when wxGTK2.8.0 is out. (2.6.3, 2.7.1, 2.7.2 and 2.8.0rc1 all break several required APIs, which makes cross-distro compilation a nightmare right now.)

        I can't wait to get the program to compile with autopackage: as far as I can see, the two C++ dependencies (wxGTK and Xerces-C) will be the main obstacles.

        <Having a developer/contributor willing to provide deb packages would be a definite plus, however, at least for "milestone" releases.> Yes, that would be great. If anyone who reads this is interested, please get in touch!

         

Log in to post a comment.