I have a linux project I want to port to windows. Under Linux I did set up my makefile to run x86_64-w64-mingw32-g++ when I do call make ARCH=win The problem is that some headers I need (tcl.h and friends) are located under ‘/usr/include’ and if I pass that directory with the -I flag I will get a header collision for
Tag: makefile
Exclude list of file extensions from find in bash shell
I want to write a cleanup routine for my make file that removes every thing except the necessary source files in my folder. For example, my folder contains files with the following extensions: .f .f90 .F90 .F03 .o .h .out .dat .txt .hdf .gif. I know I can accomplish this with: Using negation, I can do this: But, when I
Helpp for install cstore_fdw
I’m actually trying to install sctore_fdw but I just have a little question for the installation. I follow a tutorial and it is asking to do this : you need to include the pg_config directory path in your make command This is my pg_config path: I have some difficulty with Linux and specifically with the make command, so what i’m
make using autotools gives undefined reference errors while custom Makefile works fine
I’m trying to convert the build mechanism of ccextractor (Open source closed caption extractor) from custom Makefile to Autotools generated Makefile. Current Makefile looks like this: Building through above Makefile works fine. My Makefile.am looks like this: If I run make after autoreconf -i on above file, build fails with error: If I run ./configure as ./configure LIBS=”-lm -lz” build
Using gnu make with a makefile, why is my .o file not deleted?
I have a simple makefile that works correctly with gnu make, except the object file named ‘txt.o’ is not removed, using ‘rm tst.o’. Here is the text from the makefile. Anyone know why the rm command here is not removing the ‘tst.o’ file? Thanks, Matt Answer What command did you enter for the make? If you just enter make, it
Compiling Python 3.6: Can I delete src folder after make install?
On my ubuntu 16.04 I just executed Can I delete src/Python-3.6.0 folder? Answer @realtbo As you make installations using sudo command in LINUX, it is never suggested to delete those files. Any file which is in user is always meant to be kept alive. Deleting these files may cause your environment to break, which is not a good sign. Anyways
Compiling standalone ASIO with Makefile on Linux
I’m trying to compile a small c++ program that captures an image from a camera using libv4l2 and then sends it over UDP to a separate computer using asio. The file structure of the project is: My Makefile for the project is: However, when I try to compile this, my compiler spits on dozens of undefined reference errors for ASIO
Using sed with regex to replace text on OSX and Linux
I am trying to replace some strings inside a file with sed using Regular Expressions. To complicate the matter, this is being done inside a Makefile script that needs to work on both osx and linux. Specifically, within file.tex I want to replace with (xxx and yyy are just example text.) Note, xxx could contain any letters, numbers, and _
LINUX GNU Create New user Postgres DB in Makefile
I’m new with Makefile. I need to automate create user for postgres terminal. I tried this example and it did not work for me: Neither @create user myusername; nor @/q works. When I ran make createuser and exit manually with q from postgres terminal, I receive this error: Answer When debugging makefiles, the @ modifier is unhelpful, as it no
Makefile as simlink: not found
Is it possible to have a Makefile referenced by a simlink, and try calling action using make? I am experiencing that calling make in a directory where Makefile is a simlink, Makefile is not found. I have a need to reduce replication of Makefiles, and I would prefer using simlinks. Suggestions? Answer It should work just fine: