GithubHelp home page GithubHelp logo

Comments (7)

No-User avatar No-User commented on July 19, 2024

Try using cmake . before make

from samples.

Yoti avatar Yoti commented on July 19, 2024

@No-User cmake works, make using makefile won't.

from samples.

yne avatar yne commented on July 19, 2024

that's because debugScreen is now a new object file
ded5780#diff-40ca84316d1604ae66b8676544118b83

can you try putting the CMake line ../common/debugScreen.c before the main one ?
No idea why putting the main.c before the debugScreen.c one would fail tho.

from samples.

Yoti avatar Yoti commented on July 19, 2024

@yne
cmake works without any issues. Makefile won't.

from samples.

yne avatar yne commented on July 19, 2024

That's because the only job of CMake is to create a Makefile.
(why would we keep things simple when we can make them complicated huh).

And apparently it does not do it well.

So can you try something like this in your CMakelist.txt :

add_executable(${PROJECT_NAME}
  debugScreen.c
  src/main.c
)

or maybe

add_executable(${PROJECT_NAME}
  ../common/debugScreen.c
  src/main.c
)

from samples.

Yoti avatar Yoti commented on July 19, 2024

@yne
I'm using already existed makefile. It works on previous commit.

from samples.

yne avatar yne commented on July 19, 2024

Oh okay I thought you were using the cmake .. && make command
In this case I guess, the ../common/debugScreen.c shall be added to this line

But I still don't understand why does this folder have both a Makefile+CMakelist.

from samples.

Related Issues (18)

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.