Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do I need to build this project? #1

Open
mix3d opened this issue Apr 12, 2022 · 5 comments
Open

What do I need to build this project? #1

mix3d opened this issue Apr 12, 2022 · 5 comments

Comments

@mix3d
Copy link

mix3d commented Apr 12, 2022

Just a simple Q, but if I wanted to recreate this, what kind of a build environment do I need? Awesome project!

@mix3d
Copy link
Author

mix3d commented Apr 13, 2022

Found the build chain docs on RaspberryPi.org. Ignore me!

@mix3d mix3d closed this as completed Apr 13, 2022
@mix3d mix3d reopened this Apr 13, 2022
@mix3d
Copy link
Author

mix3d commented Apr 13, 2022

Spent the last several hours getting my build tools setup, but I still feel like I'm missing something. I can build the example pico files from their repo, but am I missing a CMakeLists.txt somehow?

@chriszylstra
Copy link

@mix3d I have spent a few hours trying to build this project and have been unsuccessful as well.
I think we would appreciate if @dr-mod could give an explaination of how we can build/run this on our own Pi Pico

Thanks :)
-cz

@marcus-e-e
Copy link

marcus-e-e commented Jun 14, 2022

I have never toucht c++ and am not a programmer. But I managed to get it wokring after several weeks of learning and trial and error.

This is what I did:

Added /Fonts and /Config from here: https://github.com/waveshare/Pico_ePaper_Code/tree/main/c/lib
I commented out where font48 was used because I have not yet found one.

I added "pico_sdk_import.cmake" (probably not needed)

And this is my CMAkeList.txt file. There are probably things in there that are not needed.

cmake_minimum_required(VERSION 3.16.3)

# Pull in SDK (must be before project)
include(pico_sdk_import.cmake)
include(pico_extras_import.cmake)

project(little-sun-gazer)

pico_sdk_init()

add_subdirectory(ds3231)
add_subdirectory(Fonts)
add_subdirectory(Config)

include_directories(./utils)
include_directories(./ds3231)
include_directories(./Config)

add_executable(little-sun-gazer main.cpp)

pico_add_extra_outputs(little-sun-gazer)


target_link_libraries(little-sun-gazer
    ds3231
    pico_stdlib
    Fonts
    hardware_rtc
    hardware_sleep
    hardware_i2c
    hardware_adc
    hardware_spi
)

I hope it helps @mix3d and @chriszylstra

@jklap
Copy link

jklap commented Dec 29, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants