How can I compile full project C language

I am currently using ubuntu 18.10 and i want to compile the source of this project but i dont know how The author says I should use Microsoft Visual Studio, Is there any way to compile these files in ubuntu and generally linux ??

https://github.com/hfiref0x/UACME/tree/master/Source/Akagi

https://github.com/hfiref0x/UACME

By the way , i use gcc and compile the main.c file and it gives me this error :

gcc main.c -o file.exe In file included from main.c:20: global.h:22:2: error: #error ANSI build is not supported #error ANSI build is not supported   ^~~~~ global.h:25:10: fatal error: shared\libinc.h: No such file or directory #include "shared\libinc.h"          ^~~~~~~~~~~~~~~~~ compilation terminated. 

static compile fails founding libs

For some rescue task I need to compile extundelete and some other tools with shared libraries within the binary file.

I’ve been searching through configure and make options as well as AskUbuntu entries, etc. I’ve found the suggestion of using the -strict option, (single hyphen). Unfortunately I wasn’t able to make it work.

I did the usual movements apt source install extundelete, ./configure, make, off course also by adding ‘-static’ to both ./configure and make. Nothing to do, don’t work.

Finally I got some hint by putting ‘-static’ in the LDFLAGS environment variable. Now at least I’ve got a specific error message!

./configure LDFLAGS=-static  Configuring extundelete 0.2.4 configure: error: Can't find ext2fs library 

All the suggestions I found point to the lack of e2fslibs-dev and/or libext2fs-dev packages. After install this packages the error message remains the same. Can't find ext2fs library

Just in case I checked the packages contents and in effect there is the ext2fs library, or so it would seem.

dpkg -L libext2fs-dev | grep ext2fs /usr/include/ext2fs /usr/include/ext2fs/bitops.h /usr/include/ext2fs/ext2_err.h /usr/include/ext2fs/ext2_ext_attr.h /usr/include/ext2fs/ext2_fs.h /usr/include/ext2fs/ext2_io.h /usr/include/ext2fs/ext2_types.h /usr/include/ext2fs/ext2fs.h /usr/include/ext2fs/ext3_extents.h /usr/include/ext2fs/qcow2.h /usr/include/ext2fs/tdb.h /usr/lib/x86_64-linux-gnu/libext2fs.a /usr/lib/x86_64-linux-gnu/pkgconfig/ext2fs.pc /usr/lib/x86_64-linux-gnu/libext2fs.so /usr/share/doc/libext2fs-dev 

At this point my hacking resources are exhausted. Any help will be very welcome. Tanks in advance.

Compile similar files together

I have a directory contains data files which are named related to the date (doy) in which every three, four or five files have the same date, I want to create new files in which to put every similar date files together Ex for files name (2019_100_001.bin ; 2019_100_002.bin ; 2019_100_003.bin ; 2019_101_001.bin ; 2019_101_002.bin ; 2019_102_001.bin ; 2019_102_002.bin ; 2019_102.003.bin ; 2019_102_004.bin ; 2019_103_001.bin)

Can we compile this function/distribution?

I would like to compile this function to make it faster:

logMultinormalDens2[x_, mean_, var2_] := Module[{},            t = 0.5*      Flatten[(x - mean)].LinearSolve[var2, Flatten[(x - mean)],         Method -> "Cholesky"];    (*Flatten - The LinearSolve receives only {} not {{}}*)     det = Det[2*Pi*var2]^(0.5);     -t - Log[det]     ]; 

I’ve tried writing :=Compile[{},Module[(...)];]; but it takes the same time to evaluate as before. I’ve also tried using Block, and it didn’t improve much either…

Edit: This function is called at least 300000 times (for each Time period. I want to use it several periods). Each time this distribution is called, we use a different mean and var2 (using some sum and matrix multiplication) from some other lists. Ex: mean_i = A_i+B_i, where A_i and B_i are in some other lists

error when compile sqlite

i got got this error when compile sqlite:

Makefile:743: recipe for target ‘alter.lo’ failed make[4]: * [alter.lo] Error 1 CMakeFiles/external_sqlite.dir/build.make:113: recipe for target ‘build/sqlite/src/external_sqlite-stamp/external_sqlite-build’ failed make[3]: * [build/sqlite/src/external_sqlite-stamp/external_sqlite-build] Error 2 CMakeFiles/Makefile2:1427: recipe for target ‘CMakeFiles/external_sqlite.dir/all’ failed make[2]: *** [CMakeFiles/external_sqlite.dir/all] Error

is there any deppdendenices i missed? how to solve this error? thanks

Which LESS files do you compile in a child theme?

I’m trying to create a theme based on Pixtron. I’m using Gulp rather than Grunt, but everything I’ve read about compiling LESS files has the same instructions: you have point to the source file(s) (e.g. styles-m.less or styles-l.less) in app/design/frontend/<Vendor>/<Theme>/web/css and point the destination files in pub/static/frontend/<Vendor>/<Theme>/<locale>/css.

Pixtron uses Magento/blank as its parent theme. So, I think because of that, there are no overarching theme files directly in the css folder. There are files inside the source subfolder to extend/override the blank theme. Here’s the folder structure:

<Theme_Dir> |  |-- web/ |  |  |-- css/ |  |  |  |-- source/ |  |  |  |  |-- _custom.less |  |  |  |  |-- _extends.less |  |  |  |  |-- _navigation.less |  |  |  |  |-- _theme.less 

So, I guess my question is which files should I be compiling when there aren’t any main theme files for me to use? Should I be using the styles-l/m files from the parent theme? Hopefully, my question makes sense.

How to modify and compile ONLY few java files among many thousands and deploy?

This is basically a code development question that deals with frequent changes to one or more java files among many thousands.

A few years ago, as a software intern, I was given a large java / jsp code base and my mentor set me up using intellij IDE to build a WAR file for a web application (a student portal). I would then copy the War file to the tomcat container and launch it. I don’t recall, but I recall to the effect that all I had to do was to press that one button (build?) to generate the WAR file. It took a long while to generate this War file. Intellij used an Ant file to build the war file. The team later migrated to Maven, but that’s when my term was up.

Software development was very slow because I wanted to write code, compile and test code often in the web browser. There wasn’t unit code testing.

So here’s my question:

What does the industry do (for example FANG) where if I wanted to just modify ONE java file, how would I go about in a much faster fashion to compile that one file instead of recompiling every file to create a WAR file and then put it into the tomcat container and run it?

I just want to minimize the amount of time from inserting code to checking out how it behaves.

I tried to write my own batch script but taking into account all the thousands of java dependency was a nightmare. this this post. This is my first post since many years ago. I appreciate for someone to shed light on how I can approach this.

I wasn’t happy with using this IDE solution because there was a very senior software engineer who didn’t use an ide, isntead, used emacs on his mac. He got things done fast, but I didn’t understand how he would go modify a few files and got it to run on tomcat. I can’t imagine that he’d recompile everything. So please share with me some work flow using IDE and also preferably not to use an IDE.

I did my research and google but couldn’t find an examnple tutorial of how such would be done. One reason I ask this question is because if I ever get a software engineering job, I would not want to modify one file and take forever to recompile everything.. it just doesn’t sound like the way to go. This wasn’t taught in school.

If there is a git project that deals with the above.. I’d be grateful if someone can send me an exampile git project that deals with the above webapp scenario.

Thank you. Gordon

Magento Compile Errors After upgrade from 2.2.2 to 2.3.2 PHP 7.2

Magento Compile Errors After upgrade from 2.2.2 to 2.3.2 PHP 7.2

I had a magento 2.2.2 site running PHP 7.1 which I am trying to upgrade to 2.3.2 after a few days I am getting issues when trying to run compile command in CLI

php bin/magento setup:di:compile

Giving me lots of errors mostly like these

[root@server public_html]# php bin/magento setup:di:compile Compilation was started. Repositories code generation… 1/7 [====>———————–] 14% 1 sec 80.5 MiB Fatal error: Declaration of Magento\Customer\Model\ResourceModel\Address\Attribute\Source\Country::getAllOptions() must be compatible with Magento\Eav\Model\Entity\Attribute\Source\Table::getAllOptions($ withEmpty = true, $ defaultValues = false) in /home/mysite/public_html/vendor/magento/module-customer/Model/ResourceModel/Address/ Attribute/Source/Country.php on line 21 [root@server public_html]#

I managed to changed several of the files mentioned in the errors

using help from this site https://mage2.pro/t/topic/5275

But he is running Magento 2 on PHP 7.2 and I have upgraded Magento 2.2 to 2.3.2 and using PHP 7.2 – So situations are different

but one after another they kept coming

Question This upgrade is really annoying please can someone explain when we upgrade should the files being used by Magento 2.3.2 get upgraded aswell otherwise what is the point all the paths in the errors are for Magento files not themes so what exactly is getting upgraded – if Magento 2.3.2 Only works with PHP 7.2 then why dont Magento update the files it needs – they way it needs them to be set so they can be used by Magento PHP 7.2 etc –

How to compile and run nosy (IEEE 1394 packet sniffer)

As far as I understand, nosy is an IEEE1394 FireWire packet sniffer for linux. I’m unsure as how to run it. It can be found in the linux repo.

When I cd to /lib/modules/4.15.0-55-generic/kernel/drivers/firewire, there’s a file called nosy.ko, which is a linux kernel module. I tried sudo insmod nosy.ko and loaded the module (can see it in the output of lsmod) but nothing happened.

Kernel: 4.15.0-55-generic

Distro: Ubuntu 18.04.2 LTS (bionic)

Any help is appreciated.