undefined symbol: g_task_set_name in glib - glib

I am upgrading Glib in my project. I am building it using meson. But I am getting below error: undefined symbol: g_task_set_name
Any Solution? Thanks in Advance.

During building, meson should be using freshly-built new lib files of the current version, but somehow in your situation meson found the old 2.58 version lib files first, which lacked the g_task_set_name() symbol. Uninstall/remove/delete the current 2.58 glib lib should fix the problem.

Related

Unity to IOS Xcode ERROR Undefined Symbols ARFoundation /AR

I have created an own AR Foundation / ARkit Projekt with Unity 2020.3.25f1 for IOS and played it out to Xcode 14.0.
Now I want to build in XCode for Iphone but get the following errors:
error build: Undefined symbol: _ARFoundationSamples_GetCurrentThermalState
error build: Undefined symbol: _ARGeoTrackingConfiguration_class
error build: Undefined symbol: _ARSession_addGeoAnchor
error build: Undefined symbol: _DoSomethingWithSession
Unfortunately I have not found a solution yet. Same Error with the verifed Unity 2021 Version. Hope for your help.
I have now found the problem myself. In my Unity-Assets-Scenes folder there was an ARKit folder containing various cs. files that contain the aforementioned code.
I have deleted the folder completely. This solved the problem.
In general, it should be noted that most of the errors I have discovered in Unity could be fixed by simply removing files. In other cases, Unity has simply created the structures again itself and created them correctly.

Unable to cross compile iOS programs on linux

I know that someone already asked this question but it isn`t up to date anymore. Most of the links are dead and the commands are not relevant anymore.
I have read these
Compile IOS program from linux commandline
How to cross-compile clang/llvm for iOS?
For example, I have been trying to compile silversearcher-ag for my iPhone 6 (jailbroken). This is the project link https://github.com/ggreer/the_silver_searcher.
I am targeting iOS 12.4.
These are the commands that I`ve tried
./configure CC=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang CXX=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang++ --host=arm-apple-darwin11
make
I am using cctools-port to cross compile the project. My compiled cctools toolchain is located under /home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target and below is how the toolchain`s directory structure looks like
This is my configure log: https://del.dog/nugibonury
This is my make log:
CC src/ignore.o
In file included from src/ignore.c:11:
./src/options.h:7:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
^~~~~~~~
1 error generated.
make: *** [Makefile:494: src/ignore.o] Error 1
This is my GitHub repository containing the cross compile toolchain
https://github.com/GrowtopiaJaw/arm-apple-darwin11
Apple does not ship PCRE. You need to get the headers and dylib/tbd files manually.
If you're using checkra1n or unc0ver, then the deb on the APT repo contains headers as well, so you could just use that.
If you plan to package this into an APT/dpkg file, make sure to add pcre as a dependency.

Xcode 9.1 - Missing required architecture x86_64 in file

I am using the library SwipeCellKit and having problems since the update to Xcode 9.1. I've recompiled the library with Xcode 9.1 and reimported the .framework in my Project. But I still can't use the classes from the library. I am getting this warning:
ld: warning: ignoring file /Users/.../Frameworks/SwipeCellKit/SwipeCellKit.framework/SwipeCellKit, missing required architecture x86_64 in file /Users/.../Frameworks/SwipeCellKit/SwipeCellKit.framework/SwipeCellKit (2 slices)
I've tried what is suggested here and set Build Active Architecture Only to No when building the library. But it doesn't help. I've also cleaned the build folder many times, which doesn't solve the problem either.
Please always use Cocoapods to install libraries for your project, it will automatically manage all dependencies.
To setup you project for cocoapods please follow steps mentioned in http://cocoapods.org/ it will make your life easier believe me.
Once you setup cocoapods successfully,
then add
pod 'SwipeCellKit'
to your Podfile
and run terminal and goto your root project directory using cd ....
then type pod install
then open your root project folder using finder
and open YOUR_PROJECT_NAME.xcworkspace file and the issue will be gone gone,
let me know if you encounter any issue installing pods.
Thanks

OpenCV header file error in omnet++

I'm trying to build a project in omnet++ (the project uses OpenCV). My problem I believe is related to the linking between the project and the libraries.
The compiler throws these 2 erros :
fatal error: cxcore.h: No such file or directory WiseGuiWorldOpencv.h /M3WSN/src/gui/opencv line 18 C/C++ Problem
make: *** [out/gcc-debug//src/gui/opencv/WiseGuiWorldOpencv.o]
how can I fix it ?
you can use an older version of OpenCV 2.4.2 as that is one used in the M3WSN framework.I have installed successfully using the following configuration:
Ubuntu 14.4
Omnet++ 4.1
OpenCV 2.4.2 http://pkgs.fedoraproject.org/repo/pkgs/opencv/OpenCV-2.4.2.tar.bz2/059ef86fc1724d69b75832a0d2929ff5/

Compiling Z3 test examples gives build error

I've compiled Z3 from sources at codeplex. Configuration details:
Operation system Debian 5.0 (Lenny)
GLIBC 2.7
GCC 4.4.3
OpenMP 4.3.4 (package version)
When I try to build the c example I get:
../../lib/libz3.so: undefined reference to `std::ctype<char>::_M_widen_init() const#GLIBCXX_3.4.11'
When I try to build the c++ example I get:
../../lib/libz3.so: undefined reference to `omp_init_nest_lock#OMP_3.0'
../../lib/libz3.so: undefined reference to `omp_unset_nest_lock#OMP_3.0'
../../lib/libz3.so: undefined reference to `omp_set_nest_lock#OMP_3.0'
../../lib/libz3.so: undefined reference to `omp_destroy_nest_lock#OMP_3.0'.
The examples mentioned were downloaded previously from Z3 website. When I build the test_capi example, which comes along with the source code, I get the union of the error messages above.
What is the nature of the problem? Are there any prerequisites for the system for using Z3?
On another Debian 6.0 machine everything goes smoothly.
Thanks in advance.
I'm assuming you are using the official src release or master branch. If that is the case, could you try to compile test_capi using in the test_capi directory?
gcc -o test_capi -I ../lib test_capi.c -L ../bin/external -lz3 -lstdc++ -lgomp
In the command above we are explicitly telling gcc to link with the C++ standard and OMP libraries.
For the c++ example, you just need to include -lgomp, since g++ will link with the C++ standard library by default. You can find other missing dependencies using ldd:
ldd ../bin/external/libz3.o
That being said, I'm working on a new build system for Z3, you can try it by getting the unstable branch from codeplex. Could you give a try? It would be great to have your feedback to make the build to go smoothly in many more platforms.

Resources