Git Product home page Git Product logo

Comments (11)

LucasMW avatar LucasMW commented on August 23, 2024 2

[100%] Built target EasyRPG_Editor_exe
Thank you, now it worked.
It appears I had bad configuration leftovers from in my cmake files.
Cleaning it with
rm -rf CMakeFiles
rm -f CMakeCache.txt
helped a lot.

from editor.

carstene1ns avatar carstene1ns commented on August 23, 2024 1

You need to use -DCMAKE_INSTALL_PREFIX=<path>. In the following asciicast I built a static liblcf, so I do not need to mess with shared library load paths afterwards (-DBUILD_SHARED_LIBS=OFF).
Important is that the Editor build finds liblcf in the right location
(in my case -- Found liblcf: /tmp/easyrpg/lib64/liblcf.a (found version "0.5.4").

asciicast

from editor.

carstene1ns avatar carstene1ns commented on August 23, 2024 1

Question is, where does tmp/easyrpg/lib come from? Note that I used /tmp folder in my asciicast as arbitrary directory, which you likely should replace with your /Users/lmenezes/Cloned_From_Github/easyRPG/ folder.

Clean your cmake caches in every project and try again:

rm -rf CMakeFiles
rm -f CMakeCache.txt

I still think you are doing something wrong, but I cannot guess. It is really not easy to help you when you only provide small bits of information. Would be good when you provide the exact commands you enter.

Also, you can simply drag/drop the CMakeCache.txt from the build folders here, they provide most necessary information.

from editor.

LucasMW avatar LucasMW commented on August 23, 2024

Attempted on Mac OS High Sierra

from editor.

LucasMW avatar LucasMW commented on August 23, 2024

This is the result of
$ cmake .

liblcf was built from git

from editor.

carstene1ns avatar carstene1ns commented on August 23, 2024

Did you just build liblcf (i.e. no installation)?, because it seems to me that the path to the config file is from the git checkout, not installation folder.
Also, how did you setup the paths?

from editor.

LucasMW avatar LucasMW commented on August 23, 2024

At liblcf directory the step 'sudo make install' fails

from editor.

carstene1ns avatar carstene1ns commented on August 23, 2024

You do not need to install it system-wide, you can also do locally (with "prefix").
Just needs to set the same path for Editor build then.

from editor.

LucasMW avatar LucasMW commented on August 23, 2024

How should I do that?
I have a folder called easyRPG.
Everything I cloned from easyRPG is subdirectory.
eg:
easyRPG$ ls
Editor Player RTP liblcf

from editor.

LucasMW avatar LucasMW commented on August 23, 2024

I've tried what you showed me, however, I keep getting this:

[ 97%] Linking CXX static library libEasyRPG_Editor.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libEasyRPG_Editor.a(dialogedit.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libEasyRPG_Editor.a(dialogedit.cpp.o) has no symbols
[ 97%] Built target EasyRPG_Editor
[ 98%] Building CXX object CMakeFiles/EasyRPG_Editor_exe.dir/src/main.cpp.o
[100%] Linking CXX executable easyrpg-editor
ld: can't map file, errno=22 file 'tmp/easyrpg/lib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [easyrpg-editor] Error 1
make[1]: *** [CMakeFiles/EasyRPG_Editor_exe.dir/all] Error 2
make: *** [all] Error 2

from editor.

carstene1ns avatar carstene1ns commented on August 23, 2024

Great that you got it to work. Closing then.

from editor.

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.