Hi Katharina and Paul

On Fri, Nov 26, 2010 at 10:36 AM, Katharina Plugge
<[email protected]> wrote:
> I had problems building the test suite. Everything compiles, but all tests 
> fail. I think this is because something with my PIL installation went wrong. 
> I do not have the time at the moment to investigate this further, so I tested 
> the MultiTexturing by myself. Attached are the 2 files, which fix the 
> problem. It would be great if you could verify this with the test suite, 
> before submitting it to osg.

Thanks for the fix.  I'll await feedback from Paul on the whether the
fix works fine with the test suite.

I got the osgfltexport to compile on my Linux system with a small
tweak to the case of one of the includes but then could work out how
to "Build the RUN_TESTS project." as I can't find any reference to
this in the CMake files or the website.

svn diff
Index: test/convertToFlt.cpp
===================================================================
--- test/convertToFlt.cpp       (revision 9)
+++ test/convertToFlt.cpp       (working copy)
@@ -1,5 +1,5 @@
 #include <iostream>
-#include <osg/notify>
+#include <osg/Notify>
 #include <osgDB/ReadFile>
 #include <osgDB/WriteFile>

I've attached the modified file.

Once Paul gives the all clear I'll check your changes into svn/trunk.

Cheers,
Robert.
#include <iostream>
#include <osg/Notify>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>

int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        osg::notify(osg::FATAL)
            << "Usage: convertToFlt <inputFileName> <outputFileName>"
            << std::endl;
        return -1;
    }

    std::string inputFile = argv[1];
    std::string outputFile = argv[2];

    osg::ref_ptr<osgDB::ReaderWriter::Options> opts = 
        new osgDB::ReaderWriter::Options;

    // Set any required loader options here...
    //opts->setOptionString("preserveFace preserveObject readObjectRecordData");

    osg::ref_ptr<osg::Node> sg =
        osgDB::readNodeFile(inputFile, opts.get() );

    if (!sg.valid())
    {
        osg::notify(osg::FATAL)
            << "Unable to load data file '"
            << "cone-mat.flt"
            << "', aborting (is OSG_FILE_PATH set?)..."
            << std::endl;

        return -1;
    }

    bool writeSucceeded = osgDB::writeNodeFile( *(sg.get()), outputFile);

    if (!writeSucceeded)
    {
        return -1;
    }

    return 0;
}
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to