Code Monkey home page Code Monkey logo

Comments (5)

scheibel avatar scheibel commented on May 19, 2024

Can you specify the following information?

  • Your operating system
  • Your compiler
  • Do you build cppfs from source yourself or do you try to use it as a dependency?

from cppfs.

pheeque avatar pheeque commented on May 19, 2024

Hi @scheibel. Currently encountering the same problem while using the header files in my project. If you check here: https://github.com/cginternals/cppfs/tree/master/source/cppfs/include/cppfs, the header file cppfs_api.h requested from the AbstractFileSystem.h does not exist at all.
Nor does the file exist anywhere in the repository at all: https://github.com/cginternals/cppfs/find/master

Thanks.

from cppfs.

scheibel avatar scheibel commented on May 19, 2024

The file is not part of the source tree as it is generated during CMake build directory creation and configuration. That's why I asked for your build setup. You need to use an actual development package (either create it from source, where CMake get's executed and the cppfs_api.h is generated or use a pre-build cppfs package where this file is added, too).

from cppfs.

OverShifted avatar OverShifted commented on May 19, 2024

Hi. I wanna use this library in my game engine.
it currently builds with premake and CMake.
CMake works fine because it generates cppfs_api.h file + adds it to include directories.
Is there any possible way to build cppfs using premake? Has anyone done it?
Or should I drop premake support?

from cppfs.

sbusch42 avatar sbusch42 commented on May 19, 2024

Hi @OverShifted. As far as I can see, premake does not seem to support anything like cmake's configure_file or generate_export_header. If you want to support it, I guess it would be easiest to just add a static API header file instead of generating it, using some ifdefs to differentiate between the platforms you want to support , e.g., windows and unix. You can find plenty of examples how such a header file should look like, for example: https://stackoverflow.com/questions/19418908/creating-a-portable-library-to-run-on-both-linux-and-windows

from cppfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.