Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG] Failing to compile: program does not contain a static `main' method #179

Open
Labels
@AstralShadow

Description

Describe the bug
I'm getting 'error: program does not contain a static `main' method' when compiling with:

  • valac 0.56.4
  • cmake 3.25.3
  • gettext 0.21.1
  • gtk+ 3.24.37
  • glib 2.74.6
  • libcanberra 0.30-r7
  • libpeas 1.34.0
  • libayatana-appindicator 0.5.92

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/JMoerman/Go-For-It.git
  2. cd Go-For-It/
  3. mkdir build
  4. cd build
  5. cmake -D VALA_EXECUTABLE='/usr/bin/vala-0.56' ..
  6. make

Expected behavior
Successful compilation.

Screenshots
ps_2023年04月23日_22-06-58 909
The upper half is the console output i get when trying to compile.
The lower half contains the line that throws the error.

Command line output

error: program does not contain a static `main' method
make[2]: *** [src/CMakeFiles/com.github.jmoerman.go-for-it-0.dir/build.make:312: src/com.github.jmoerman.go-for-it-0_valac.stamp] Error 1
make[1]: *** [CMakeFiles/Makefile2:204: src/CMakeFiles/com.github.jmoerman.go-for-it-0.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

OS and application version:
OS: Gentoo
Application version: latest upstream / git: 0edb744

Additional context

Gentoo provides USE-flags which allows personalizing some compile-time flags for some applications.
That means it's possible that some of the dependencies i have installed may not contain everything you'd expect from a general build, but i don't think i'm disabling anything that might be necessary. (I believe the static main method that the error mentions should be withing Go-For-It's code, but i got no experience working with vala or GTK/GTK+, so correct me if i'm wrong)
I double checked my USE flags and i'm sure i set decent configuration there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /