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

Restore build on Linux, Mac OS #125

Open
BradyBrenot opened this issue Apr 27, 2019 · 5 comments
Open

Restore build on Linux, Mac OS #125

BradyBrenot opened this issue Apr 27, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@BradyBrenot
Copy link
Owner

BradyBrenot commented Apr 27, 2019

NB to others who are trying to build Huestacean on Linux / Mac OS

Huestacean in Master currently doesn't build on any platform but Windows because I'm working on a rewrite on the Master branch directly. Please use tag v2.6 for now.

I don't intend to take PRs against 2.6 any longer, hence my not making a keeping a branch going for it.

@BradyBrenot BradyBrenot added the enhancement New feature or request label Apr 27, 2019
@BradyBrenot BradyBrenot added this to the v4.0 milestone Apr 27, 2019
@BradyBrenot BradyBrenot self-assigned this Apr 27, 2019
@BradyBrenot BradyBrenot added this to To Do in Huestacean NG via automation Apr 27, 2019
@BradyBrenot BradyBrenot pinned this issue Apr 27, 2019
This was referenced Apr 27, 2019
@threonin
Copy link

Added a 100$ bounty in bountysource: https://www.bountysource.com/issues/73426604-restore-build-on-linux-mac-os
I know it's not much, but maybe it helps getting the project going again.

@5ghz
Copy link

5ghz commented May 17, 2020

@threonin Which linux distro? Ubuntu 20.04 ok?

@jglauche
Copy link

jglauche commented Jun 3, 2020

I started working on this on my fork: https://github.com/jglauche/huestacean

I can get it compiled now with the exception of adding an #ifdef _WIN32 on the ::LoadLibrary part of chroma.cpp. This is windows specific and I need help refactoring this.

The thing I got stuck with is the linker.

[100%] Linking CXX executable huestacean /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../lib/Scrt1.o: in function _start': (.text+0x24): undefined reference to main' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/huestacean.dir/build.make:115: huestacean] Error 1 make[1]: *** [CMakeFiles/Makefile2:804: CMakeFiles/huestacean.dir/all] Error 2 make: *** [Makefile:161: all] Error 2
I'm currently lost at what causes it and my brain needs a pause from solving this puzzle.

@chilledfrogs
Copy link

chilledfrogs commented Jun 17, 2020

Fun fact (I just stumbled upon this by complete accident and was curious, I have absolutely none of the necessary equipment to do a physical test for this program 😅😅): on my machine (Arch Linux, x86_64), adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared") to @jglauche's fork as per https://stackoverflow.com/questions/11116399/crt1-o-in-function-start-undefined-reference-to-main-in-linux leads in both cases to a successful link, but an immediate segfault, no warnings from ld (unlike the accepted solution)...
Not sure if this is of any use to anyone, but this is my 2 cents, might be useful to check this idea, I might continue digging later

@jglauche
Copy link

@chilledfrogs I also tried to link it with -shared, it also segfaulted for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Huestacean NG
  
To Do
Development

Successfully merging a pull request may close this issue.

5 participants