Build v8 as a shared library in Cobalt - v8

I'm trying to build "v8" as a shared library in Cobalt using GYP. I set the variable "component" to "shared_library". When assembling an error pops up:
ninja: error: obj.host/v8/src/v8_libbase.ninja:85: unknown build rule 'solink_host'
build lib/host/libv8_libbase lib/host/libv8_libbase.TOC: solink_host $
^ near here
Does anyone know how to fix this?

This is not supported, Cobalt must be build as a monolithic binary.

Related

Native linking failed, duplicate symbol:"_cxa+throw" when enabling the AppCenter crash and analytics in Xamarin Forms iOS

I'm facing the below errors when enabling the AppCenter crash and analytics in the App.xaml.cs file like below,
protected override void OnStart()
{
AppCenter.Start("android={my secret code};" + "ios={my secret code}", typeof(Analytics), typeof(Crashes));
}
If comment on this code, I didn't get any errors.
Native linking failed. Please review the build log.
linker command failed with exit code 1 (use -v to see invocation)
Duplicate symbol in: /Users/macbook-02/Library/Caches/Xamarin/mtbs/builds/MyProject.iOS/fa397694646d06672e8f8c7f7683e7fe/obj/iPhoneSimulator/Debug/mtouch-cache/AppCenterCrashes.a(MSCrashesCXXExceptionHandler.o) (Location related to previous error)
Duplicate symbol in: /Users/macbook-02/Library/Caches/Xamarin/mtbs/builds/MyProject.iOS/fa397694646d06672e8f8c7f7683e7fe/obj/iPhoneSimulator/Debug/mtouch-cache/libHockeySDK.a(BITCrashCXXExceptionHandler.o) (Location related to previous error)
1 duplicate symbol for architecture x86_64
Native linking failed, duplicate symbol: ''___cxa_throw''.
Native linking failed. Please review the build log.
I try to fix it by the answer given in the below links but that's not resolving my issue,
Native linking failed, duplicate symbol: '_main' while adding native Binding Dll and Xamarin.Firebase.iOS.Database
https://github.com/xamarin/GoogleApisForiOSComponents/issues/111
I think you need to have a check with whether adding the App Center SDK to your solution .If you have followed up that , remember to add reference in project:
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
Then clean your project and rebuild it .
This happens when the native linker encounters duplicate symbols between all the native libraries. You can see detailed information on this error here https://learn.microsoft.com/en-us/xamarin/ios/troubleshooting/mtouch-errors#mt5212-native-linking-failed-duplicate-symbol- .
Try changing the Link type in your iOS project properties:
Right click iOS project > Properties
in iOS Build tab change Linker Behavior to Link Framework SDKs Only

Compile Error When compile gRPC that `‘-std=c++11’ is valid for C++/ObjC++ but not for C

I am trying to compile grpc_python_plugin. I downloaded the latest grpc package in Github. Following the instruction, I went into the grpc directory, and start to compile with
make grpc_python_plugin
, and get the following error:
wcf#wcf-OptiPlex-7060:~/resq/grpc$ make grpc_python_plugin
[C] Compiling third_party/address_sorting/address_sorting.c
cc1: error: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [-Werror]
cc1: all warnings being treated as errors
Makefile:2972: recipe for target '/home/wcf/resq/grpc/objs/opt/third_party/address_sorting/address_sorting.o' failed
make: *** [/home/wcf/resq/grpc/objs/opt/third_party/address_sorting/address_sorting.o] Error 1
Since the Makefile for grpc is so giant, I cannot find any way to solve the problem. Could you share some idea on my problem? Thank you for your time.
The problem may be that I install the protobuf outside the grpc git program. When I install protobuf in grpc's third_party. All things go well.
The way I made it work was deleting "-Werror" from CPPFLAGS in the Makefile. But yes, I also installed protobuf outside of grpc.

How can I fix this build error when building Qt 5.7 statically with MinGW?

When I tried to compile Qt 5.7 statically in order to get a standalone application for windows deployment with all dependencies as mentionned here i got the following errors:
C:\Qt\Qt5.7.0\5.7\Src\qtbase/qmake/library/qmakebuiltins.cpp: In member function 'QByteArray QMakeEvaluator::getCommandOutput(const QString&) const'
C:\Qt\Qt5.7.0\5.7\Src\qtbase/qmake/library/qmakebuiltins.cpp:419:94: error: '_popen' was not declared in this scope
+ QLatin1String(" && ") + args).toLocal8Bit().constData(), "r")) {
C:\Qt\Qt5.7.0\5.7\Src\qtbase/qmake/library/qmakebuiltins.cpp:427:23: error: '_pclose' was not declared in this scope
QT_PCLOSE(proc);
Makefile:204: recipe for target 'qmakebuiltins.o' failed
mingw32-make: *** [qmakebuiltins.o] Error 1
Building qmake failed, return code 2
My aim is to make the final release standalone and size optimized (only ncessary symbols that being used from the libs), also in the link i provided i don't see MinGw mentionned, I don't have nmake (and don't want to get it).
It's open source. All of our recipes and patches are released. MSYS2 has a track record of not being abandonware, but if you find places we can do better then please help out. MSYS2 is highly compatible .. with the rest of MSYS2. We can't promise more than that.

Windows 7 Qt Creator libqxt

SDK: Qt Creator 2.4.1 (Qt 4.7.4 (32 bit)) running on Windows 7
Software: libqxt
Final target platform: Harmattan (Nokia N9)
I am developing an application that is suppose to use qt-Brisa which in turn uses libqxt so I am trying to install libqxt.
In the end I am doing a Nokia N9 (Harmattan) application so I need static library of libqxt
However I get problems when trying to install libqxt both if I try the command prompt or with Qt Creator.
What is the correct approach, I assume using the Qt Creator is the correct way to build it?
Try 1
Using command Prompt approach (according to http://dev.libqxt.org/libqxt/wiki/user_guide)
C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin
configure.bat -static -no-db -debug_and_release
Testing for qmake...
Testing for mingw32-make...
Testing for nmake...
Testing for GNU make...
Using GNU make.
Testing for optional external libraries.
If tests fail, some features will not be available.
Testing for Zero Conf...
Zero Conf disabled.
Configuration successful.
Generating makefiles...
Project MESSAGE: building docs
Project MESSAGE: building core module
Project MESSAGE: building widgets module
Project MESSAGE: building network module
Project MESSAGE: building sql module
Project MESSAGE: building web module
Reading C:/temp/Project/libqxt/libqxt/tools/3rdparty/qdoc3/qdoc3.pro
Reading C:/temp/Project/libqxt/libqxt/src/core/core.pro
Reading C:/temp/Project/libqxt/libqxt/src/widgets/widgets.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/designer/designer.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/network/network.pro
Reading C:/temp/Project/libqxt/libqxt/tools/jsonrpcclient/jsonrpcclient.pro
Reading C:/temp/Project/libqxt/libqxt/src/sql/sql.pro
Reading C:/temp/Project/libqxt/libqxt/src/web/web.pro
Makefiles generated. Run make now.
make
Makefile:280: *** multiple target patterns. Stop.
Why is it using GNU make and not qmake or am I doing somethign wrong ?
Try 2
Using Qt Creator
I also tried to load the libqxt project into the Creator (which I would like to prefer)
but the compile output windows show the following
11:05:50: Running build steps for project libqxt...
11:05:50: Starting: "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe"
C:\temp\Project\libqxt\libqxt\libqxt.pro -r -spec win32-msvc2010 "CONFIG+=declarative_debug"
WARNING: features.path is not defined: install target not created
11:05:50: The process "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited normally.
11:05:50: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
jom 1.0.6 - empower your cores
11:05:51: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited normally.
But that did not compile either
(WARNING: features.path is not defined: install target not created)
When it compiles, how do I "add" the libqxt to the rest of the Qt environment so another project can "see" the libqxt libraries, is it by "Deploy All" ?
Regards Stefan

How to get Bjam to compile boost on cygwin

I am trying to build boost on cygwin but I cannot find a way to get bjam to start the compilation. May be I am missing something. Can someone give me a clue? FYI: I got following error message.
$ bjam --without-python --without-serialization toolset=gcc-android4.4.3 link=s
tatic runtime-link=static target-os=linux --stagedir=android
warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (bjam) is 03.1.18
warning: Boost.Build core (at /cygdrive/c/progra~1/android/android-ndk-r6b/sourc
es/boost/tools/build/v2) is 2011.04-svn
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/tools/build/v2/util/p
ath.jam:476: in path.makedirs
rule MAKEDIR unknown in module path.
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/tools/build/v2/build/
configure.jam:190: in configure.set-log-file
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/tools/build/v2/build-
system.jam:725: in load
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/tools/build/v2/kernel
/modules.jam:283: in import
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/tools/build/v2/kernel
/bootstrap.jam:142: in boost-build
/cygdrive/c/progra~1/android/android-ndk-r6b/sources/boost/boost-build.jam:17: i
n module scope
UPDATE: this was a problem of old bjam.exe placed in one of my system path. After using right bjam, the problem went away.

Resources