GithubHelp home page GithubHelp logo

'cannot find -libgrrlib' about grrlib HOT 22 CLOSED

grrlib avatar grrlib commented on May 28, 2024
'cannot find -libgrrlib'

from grrlib.

Comments (22)

Crayon2000 avatar Crayon2000 commented on May 28, 2024 1

Can you use the master branch. I have done a fix to create the directory structure before installing the lib. I think the make install is failing.

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

You should be able to see the GRRLIB library in the portlib folder once installed properly, ie:

root@dda07d576564:/opt/devkitpro/portlibs/wii/lib# ls -la *grrlib*
-rw-r--r-- 1 root root 354826 Feb 23 03:28 libgrrlib.a

libpngu must also be installed:

root@dda07d576564:/opt/devkitpro/portlibs/ppc/lib# ls -la *pngu*
-rw-r--r-- 1 root root 71226 Feb 23 03:12 libpngu.a

Make sure you don't have any warnings / errors when using make install

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

I checked the folders, and the libraries are there.

I also re-installed GRRLIB and libpngu just to double check there weren't any errors, and it seems like it was installed just fine.

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Do you have the same problem with all examples?

I have no idea why it's not working.
In examples/3D_CubedTileDemo/Makefile you have:

include $(DEVKITPPC)/wii_rules
#...
LIBDIRS	:= $(CURDIR)/$(GRRLIB) $(PORTLIBS)
#...
export LIBPATHS	:= -L$(LIBOGC_LIB) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)

In the wii_rules file you have:

include $(DEVKITPPC)/base_rules

PORTLIBS        :=      $(PORTLIBS_PATH)/wii $(PORTLIBS_PATH)/ppc

export PATH     :=      $(PORTLIBS_PATH)/wii/bin:$(PORTLIBS_PATH)/ppc/bin:$(PATH)

In base_rules you have:

include $(DEVKITPPC)/base_tools

In base_rules you have:

export PORTLIBS_PATH	:=	$(DEVKITPRO)/portlibs

The only problem might be that the DEVKITPRO environment variable is not set to your C:/devkitPro or /opt/devkitpro folder.

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

DEVKITPRO and DEVKITPPC are both set correctly. The makefiles are also as they should be.
When I use make, it looks like the program can find the path correctly, so it's definitely not an environment issue, as far as I can tell.

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

what is the output when you type echo $DEVKITPRO in your console?

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

/opt/devkitpro

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Can you try ls -lah $DEVKITPRO/portlibs/wii/lib/*grrlib*

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

ls: cannot access '/opt/devkitpro/portlibs/wii/lib/*grrlib*': Not a directory

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Are you using the master branch or the last tagged version?

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

I'm using the latest release.

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

mkdir: cannot create directory β€˜/opt/devkitpro/portlibs/wii/lib’: File exists
Should I delete the lib file?

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Maybe it's another problem. You need write access to the installation folder. So try sudo -E make install or something like that!
You can also copy manually the libgrrlib.a file to the /opt/devkitpro/portlibs/wii/lib directory.

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

I don't have a lib directory, I have a lib file.
Maybe that's the issue?

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

You should create the lib folder. Like I said, this is a bug in version 4.5.0. It was fixed in commit 8ca7a33

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

Now it lets me build, but when I run the examples I either get a black screen or a bunch of errors.
(With a few exceptions)

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Run on what, a Wii, a Wii U an emulator? The behavior from the same dol/elf file changes each time you run it?

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

Dolphin Emulator.
The behaviour for each dol file doesn't change, but some refuse to boot.
This also applies to elf files.

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Can you add a dol or elf file in attachment so I can test it in Dolphin on my PC.

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

3D_CubedTileDemo.zip

from grrlib.

Crayon2000 avatar Crayon2000 commented on May 28, 2024

Well it's working on my PC with your dol file: Dolphin_yBHrCt1Tjc
It might be a configuration problem with Dolphin.

from grrlib.

FuyukoAyumu avatar FuyukoAyumu commented on May 28, 2024

I see, thank you for your help.

from grrlib.

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.